Nadcab logo

X Layer RPC Guide: Node Options, Traces, and Scaling

Published on: 24 Oct 2026

Ai Overview

Teams often start by reading about the chain itself, then realize the real production questions are more concrete: which endpoint should serve wallet traffic, whether traces are available, how much historical state is needed, and what fails first when user volume rises. 99% gateway uptime target, and exposes a live status page. For budgeting, Nadcab RPC uses pay-as-you-go pricing at $0. 375 per 1M compute units, with Nadcab Cloud from $10 and no rate tiers.

Key Takeaways

  • X Layer RPC decisions should be driven by your workload shape, especially whether you need live reads, historical state, or trace-level debugging.
  • Full-node access is usually enough for wallets and basic DeFi flows, but archive and trace capabilities become important as analytics and support needs grow.
  • The X Layer endpoint on Nadcab RPC uses the slug xlayer and follows the format https://rpc.nadcab.com/xlayer/<your-api-key>.
  • Most production RPC issues come from request patterns like oversized log scans, read fan-out, and poor retry behavior rather than simple traffic volume.
  • Managed RPC is often the fastest path to production, while hybrid or dedicated models make sense when teams need more control, isolation, or compliance features.

X Layer RPC decisions can become messy fast. Teams often start by reading about the chain itself, then realize the real production questions are more concrete: which endpoint should serve wallet traffic, whether traces are available, how much historical state is needed, and what fails first when user volume rises.

That gap matters most on newer or fast-growing networks. A chain may be easy to understand at a high level, but shipping against it still depends on practical RPC behavior: method coverage, sync depth, WebSocket stability, error handling, and how your app reacts during traffic spikes. For wallets, DeFi backends, and indexers, RPC architecture becomes part of product architecture.

This guide keeps the focus on implementation. It explains what to expect from X Layer RPC access, when full versus archive-style access matters, how to connect using Nadcab RPC, and when it makes more sense to use managed infrastructure instead of self-running nodes from day one.

One API key. 70+ blockchains. Production-grade RPC.

Nadcab RPC gives you HTTPS and WebSocket endpoints across 150+ chain endpoints with smart routing and a 99.99% gateway uptime target. Pay as you go from $0.375 per 1M compute units.

Get Your Free API Key →Browse Supported Chains

What X Layer means for RPC users

For developers, a chain name does not tell you enough about production readiness. The more useful question is: what kind of RPC behavior will this network require from my app?

On a newer L2, teams usually care about four things first:

  • Compatibility: can existing EVM tools work with minimal changes?
  • Method coverage: are common JSON-RPC methods enough, or do you need debug and trace methods too?
  • History access: can your app read old state and transaction internals without maintaining custom pipelines?
  • Traffic handling: what happens when wallet reads, quote engines, and event subscribers all hit the same endpoint?

X Layer users often discover that endpoint strategy matters as much as chain strategy. A prototype may work with a single public endpoint, but production typically needs clearer separation between read-heavy requests, WebSocket subscriptions, and operations that are expensive to compute.

If you want a broader foundation on how nodes, RPC gateways, and APIs fit together, Nadcab Labs has a useful backgrounder on Web3 infrastructure explained: nodes, RPCs, and APIs.

X Layer node types and RPC method expectations

Most application teams are not really choosing “a node.” They are choosing a combination of sync depth, method support, and operational ownership.

Full nodes

A full node is usually enough for current-chain reads and recent transaction interactions. Typical use cases include:

  • eth_blockNumber for liveness checks
  • eth_getBalance for wallet balances
  • eth_call for token metadata and simulation-like reads
  • eth_getLogs over reasonable block ranges
  • eth_sendRawTransaction for user-submitted transactions

For many wallet and DeFi frontends, this is the minimum viable base.

Archive access

Archive-style access becomes relevant when your app needs historical state at older blocks, not just recent chain data. This usually appears in:

  • Portfolio history and tax reporting
  • Analytics backfills
  • Historical TVL or vault accounting
  • Contract state reconstruction for older snapshots

If your team is unsure whether historical queries justify archive access, see Archive Node vs Full Node: When RPC Users Need History.

Debug and trace methods

Debugging and tracing are often overlooked until there is a failed transaction in production. Then they become urgent.

On EVM-compatible chains, developers commonly look for methods such as:

  • debug_traceTransaction
  • trace_transaction
  • trace_block
  • eth_getTransactionReceipt paired with decoded logs

Even when base JSON-RPC calls are available, debug or trace support may differ by deployment model, sync mode, or provider configuration. That means your RPC plan should be based on the exact methods your observability and support workflows require, not just “EVM compatibility.”

WebSocket expectations

Wallet notifications, live trading interfaces, and backend workers often depend on subscriptions like:

  • newHeads
  • logs
  • newPendingTransactions where supported

WebSockets can reduce polling overhead, but they also introduce a different reliability profile: disconnects, reconnect storms, duplicate events, and backfill logic after gaps. That is one reason teams often prefer a managed gateway with both HTTPS and WebSocket support rather than exposing a single self-managed node directly.

When developers need full, archive, debug, or trace access

It helps to classify your app by operational behavior instead of industry label.

Workload Usually enough Often needed later Why it matters
Wallet app Full node + WebSocket Archive for historical balances, traces for failed swaps Users expect live updates and understandable failures
DEX frontend/backend Full node + reliable mempool/receipt reads Trace methods for debugging execution paths Quotes and transaction status are latency-sensitive
Indexer Full node for current ingestion Archive for backfills, larger log scans Historical completeness matters more than UI latency
Monitoring tool Full node Debug and trace methods Root-cause analysis needs more than receipts
Analytics pipeline Limited current reads Archive access State-at-block queries become common

A simple way to decide is to ask two questions:

  1. Do we only care about the latest state, or do we need old state at exact block heights?
  2. When a transaction fails, is a receipt enough, or do we need call-level execution details?

If the answer to either question is the more demanding option, your RPC plan should include archive or tracing from the start, even if you do not expose those features to users on day one.

For major EVM chains, Nadcab RPC offers archive data and MEV protection, which is especially useful when production systems need more than standard reads on Ethereum, BNB Smart Chain, Polygon, Arbitrum, Optimism, and Base. X Layer should still be evaluated method by method according to your actual workload.

Connect to X Layer in one line

Swap your current endpoint for Nadcab RPC and keep your existing ethers, viem, web3.js or Solana code:

https://rpc.nadcab.com/xlayer/<your-api-key>

Get a X Layer Endpoint →

Common X Layer RPC workloads for wallets, DeFi, and indexers

Wallet workloads

Wallets usually generate many small reads:

  • Native balance checks
  • ERC-20 balance queries
  • Nonce reads before signing
  • Gas estimate requests
  • Receipt polling after submission

The challenge is not one expensive request. It is fan-out. A single wallet screen may trigger dozens of calls across tokens, prices, NFTs, and transaction history. If all of that goes to one unoptimized backend path, latency grows quickly.

Good practice:

  • Cache token metadata aggressively
  • Batch read-only calls where your client library supports it
  • Separate user-triggered calls from background refresh loops
  • Prefer WebSocket subscriptions for live updates, with polling fallback

DeFi workloads

DeFi systems tend to combine read bursts with write-critical flows:

  • Pool state reads for pricing
  • eth_call simulations before order submission
  • Gas estimation for swaps, staking, or leverage actions
  • Transaction broadcast and confirmation tracking
  • Event scans for settlements and accounting

These workloads expose two common issues. First, quote engines can overload shared endpoints with repetitive contract calls. Second, user-facing transactions suffer when reads and writes compete for the same capacity.

That is why many teams split concerns: one path for hot reads, another for transaction submission and monitoring, and a separate path for indexing or analytics jobs.

Indexer workloads

Indexers stress RPC in a different way. They need continuity, not just low latency.

  • Sequential block ingestion
  • Large or repeated eth_getLogs ranges
  • Reorg handling
  • Backfills after worker downtime
  • Historical state enrichment

On any busy EVM network, a naive indexer can cause its own outages. Large log windows, retry storms, and duplicate scans are common failure modes. A managed gateway with smart routing can help absorb some variability, but application design still matters more.

For implementation guidance around authentication, retries, and transport choices, the Nadcab Labs post on how to integrate Web3 APIs is a practical companion.

How to connect to X Layer RPC with one API key

X Layer is available on Nadcab RPC using the network slug xlayer. The endpoint format is:

https://rpc.nadcab.com/xlayer/<your-api-key>

You can create and manage keys from the Nadcab console or start from Get a free API key. Supported networks and slugs are listed on the chain list.

ethers.js example

import { ethers } from "ethers";

const rpcUrl = "https://rpc.nadcab.com/xlayer/<your-api-key>";
const provider = new ethers.JsonRpcProvider(rpcUrl);

async function main() {
  const [blockNumber, feeData] = await Promise.all([
    provider.getBlockNumber(),
    provider.getFeeData()
  ]);

  console.log("Latest block:", blockNumber);
  console.log("Fee data:", feeData);
}

main().catch(console.error);

viem example

import { createPublicClient, http } from "viem";

const client = createPublicClient({
  transport: http("https://rpc.nadcab.com/xlayer/<your-api-key>")
});

async function main() {
  const blockNumber = await client.getBlockNumber();
  console.log("Block number:", blockNumber);
}

main().catch(console.error);

Raw JSON-RPC example

curl https://rpc.nadcab.com/xlayer/<your-api-key> 
  -X POST 
  -H "Content-Type: application/json" 
  --data '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "eth_blockNumber",
    "params": []
  }'

If you are rolling out to multiple chains, the same key can be reused across 70+ networks and 150+ endpoints, which simplifies environment management. Nadcab RPC supports both HTTPS and WebSocket transports and documents usage in the developer docs.

Pick the RPC setup that fits your stage

  • Nadcab Cloud: shared, auto-scaling endpoints for dApps and wallets
  • Nadcab Core: bring your own nodes and add our smart routing engine
  • Nadcab Craft: dedicated clusters, custom auth, compliance logging and enterprise SLA
  • Nadcab for Chains: RPC infrastructure for new L1 and L2 networks

Start Building Free →Read the Docs

X Layer RPC performance bottlenecks and scaling patterns

Most RPC incidents are caused by request shape, not raw request count alone.

1. Expensive read amplification

One frontend action can fan out into many contract reads. Token lists, NFT lookups, allowances, quotes, and balances multiply quickly.

Pattern: combine multicall-style reads where appropriate, cache stable data, and debounce UI refreshes.

2. Oversized log ranges

Large eth_getLogs ranges are a common source of timeouts and retries.

Pattern: scan in bounded block windows, checkpoint progress, and make workers idempotent.

3. Shared endpoint contention

Using one RPC target for user reads, transaction submission, and indexing jobs creates avoidable competition.

Pattern: separate workloads logically, even if they still use the same gateway vendor underneath.

4. WebSocket reconnect storms

When workers restart together, subscription traffic can spike. Some teams assume WebSockets remove polling cost entirely, then get hit by event replay problems.

Pattern: store the last processed block, resubscribe safely, and backfill missed logs after reconnect.

5. Poor retry logic

Blind retries can turn a short upstream issue into a longer outage.

Pattern: use exponential backoff, classify errors, and avoid retrying deterministic failures such as bad parameters or reverted calls.

These are exactly the cases where a gateway layer helps. Nadcab RPC uses smart routing across providers and regions, has a 99.99% gateway uptime target, and exposes a live status page. That does not replace application-level resilience, but it reduces the operational burden of handling transport variability yourself.

Managed RPC vs self-hosted nodes for X Layer

The decision is usually less about ideology and more about team shape.

Option Best fit Advantages Tradeoffs
Self-hosted node Teams with infrastructure depth and custom needs Direct control over config, sync strategy, and internal routing Ops overhead, failover design, upgrades, and monitoring are yours
Managed shared RPC Startups and product teams shipping quickly Fast rollout, less maintenance, simpler scaling Less infrastructure-level customization
Hybrid managed + owned nodes Growing apps with stricter reliability goals Keep your own nodes while using a routing layer Still requires node ownership and operational discipline
Dedicated clusters Enterprise or regulated workloads Custom auth, logging, isolation, tighter controls More architecture planning and likely longer setup

Nadcab structures this choice cleanly:

For many X Layer applications, the practical path is simple: start managed, instrument real workloads, then decide whether any component truly needs self-hosted specialization.

If you are comparing operating models more broadly, the Nadcab Labs article on node infrastructure for dApps and RPC providers is a helpful planning reference.

Stop overpaying for RPC requests

Nadcab Cloud starts at $10 with no rate tiers: you pay $0.375 per 1M compute units and scale up or down without contracts. Every plan includes archive and WebSocket access on supported networks.

See RPC Pricing →or start free

Checklist for choosing an X Layer RPC provider

Before committing, review your provider against an operational checklist instead of a feature list.

  • Does it support X Layer directly? Confirm the exact network slug and endpoint format.
  • Are HTTPS and WebSocket both available? Many apps need both.
  • Which methods are available? Verify standard JSON-RPC, debug, and trace requirements in advance.
  • How is historical access handled? Ask whether your use case needs archive-style reads.
  • What is the routing model? Single node exposure is very different from a smart gateway.
  • Is there a visible status page? This matters during incident response.
  • How does pricing scale? Understand request economics before indexers or analytics jobs go live.
  • Can you keep one key across multiple networks? Multi-chain products benefit from fewer secrets and less config drift.
  • Is there a migration path? Shared endpoints, owned nodes, and dedicated clusters should not require a complete rewrite.

For budgeting, Nadcab RPC uses pay-as-you-go pricing at $0.375 per 1M compute units, with Nadcab Cloud from $10 and no rate tiers. That structure is useful for teams that want predictable unit economics instead of reshaping traffic to fit arbitrary tier boundaries.

If your product roadmap includes wallet, DeFi, or cross-chain features, Nadcab Labs also provides implementation services for crypto wallet development, DeFi development, and cross-chain bridge development.

Final Thoughts

X Layer RPC planning should be based on workloads, not headlines. The important questions are whether your app needs only current state or also historical state, whether receipts are enough or traces are required, and whether reads, writes, and indexing can safely share the same backend path.

For many teams, the best starting point is a managed gateway with strong multi-chain ergonomics, visible status reporting, and room to grow into dedicated or hybrid models later. On X Layer, that means validating method support early, testing your actual query patterns, and choosing infrastructure that matches how your application behaves in production rather than how it looked in the prototype.

Ship faster on infrastructure you don’t have to babysit

Get one API key for 70+ networks, HTTPS and WebSocket endpoints, smart routing and a live status page. Building something bigger? Our blockchain team can design and run the full stack with you.

Get Your Free API Key →Talk to Our Experts

Pay as you go · No rate tiers · 99.99% gateway uptime target

Frequently Asked Questions

Q1.What is the X Layer RPC endpoint format?

A1.

The Nadcab RPC endpoint format for X Layer is https://rpc.nadcab.com/xlayer/. You use the network slug xlayer plus your API key. This lets you connect through standard JSON-RPC clients over HTTPS, and you can manage keys through the Nadcab console.

Q2.Do I need an archive node for X Layer?

A2.

Not always. If your app only needs current balances, recent logs, transaction submission, and standard contract reads, full-node access is usually enough. You need archive-style access when querying historical state at older block heights, backfilling analytics, or reconstructing past contract conditions precisely.

Q3.How do I know if my X Layer app needs trace or debug methods?

A3.

If transaction receipts and emitted logs are enough to explain failures, you may not need traces right away. If you run DeFi flows, simulation-heavy products, support tooling, or internal observability systems, trace and debug methods become much more valuable for root-cause analysis and execution inspection.

Q4.Should I self-host X Layer nodes or use managed RPC?

A4.

Self-hosting makes sense when your team wants deep control over node configuration, failover, and internal routing. Managed RPC is usually better for faster delivery because it reduces operational overhead and simplifies scaling. Many teams start managed, then add owned nodes later if a clear technical reason appears.

Q5.What are the most common X Layer RPC performance problems?

A5.

The usual bottlenecks are large eth_getLogs scans, too many repeated eth_call requests from UIs or quote engines, WebSocket reconnect gaps, and retry logic that turns short disruptions into larger incidents. Good batching, checkpointing, caching, and workload separation solve more problems than simply adding more raw endpoint capacity.

Explore Services

Reviewed by

Aman Vaths profile photo

Aman Vaths

Founder of Nadcab Labs

Aman Vaths is the Founder & CTO of Nadcab Labs, a global digital engineering company delivering enterprise-grade solutions across AI, Web3, Blockchain, Big Data, Cloud, Cybersecurity, and Modern Application Development. With deep technical leadership and product innovation experience, Aman has positioned Nadcab Labs as one of the most advanced engineering companies driving the next era of intelligent, secure, and scalable software systems. Under his leadership, Nadcab Labs has built 2,000+ global projects across sectors including fintech, banking, healthcare, real estate, logistics, gaming, manufacturing, and next-generation DePIN networks. Aman’s strength lies in architecting high-performance systems, end-to-end platform engineering, and designing enterprise solutions that operate at global scale.