---
updatedAt: 2026-08-19T16:00:21.000Z
---

Fetch the complete documentation index at: https://docs.blockdaemon.com/llms.txt. Use this file to discover all available pages before exploring further. Append .md to any documentation page URL to get its markdown version.

# X Layer

> 📘
>
> See the [X Layer RPC API connection guide](https://docs.blockdaemon.com/docs/access-xlayer-rpc).

### `eth`

| Method                                       | Notes                                                                                         | Compute Unit Value |
| -------------------------------------------- | --------------------------------------------------------------------------------------------- | ------------------ |
| `eth_blockNumber`                            | Returns the number of the most recent block.                                                  | 1                  |
| `eth_call`                                   | Executes a message call without creating a transaction on the blockchain.                     | 10                 |
| `eth_chainId`                                | Returns the chain identifier as a hexadecimal quantity.                                       | 1                  |
| `eth_estimateGas`                            | Estimates the gas required to execute a transaction.                                          | 50                 |
| `eth_feeHistory`                             | Returns fee-market data for a requested range of blocks.                                      | 1                  |
| `eth_gasPrice`                               | Returns the current gas price per unit of gas as a hexadecimal quantity.                      | 5                  |
| `eth_getBalance`                             | Returns an account's balance at a specified block.                                            | 5                  |
| `eth_getBlockByHash`                         | Returns a block by hash, with either full transaction objects or transaction hashes.          | 5                  |
| `eth_getBlockByNumber`                       | Returns a block by number or block tag.                                                       | 5                  |
| `eth_getBlockReceipts`                       | Returns the transaction receipts for a specified block.                                       | 5                  |
| `eth_getBlockTransactionCountByHash`         | Returns the number of transactions in a block identified by hash.                             | 5                  |
| `eth_getBlockTransactionCountByNumber`       | Returns the number of transactions in a block identified by number or tag.                    | 5                  |
| `eth_getCode`                                | Returns the code stored at an address at a specified block.                                   | 5                  |
| `eth_getFilterChanges`                       | Returns changes since the last poll for a filter.                                             | 5                  |
| `eth_getFilterLogs`                          | Returns all logs matching an existing filter.                                                 | 5                  |
| `eth_getLogs`                                | Returns logs matching a filter object.                                                        | 50                 |
| `eth_getProof`                               | Returns account and storage proofs for an address at a specified block.                       | 5                  |
| `eth_getRawTransactionByBlockHashAndIndex`   | Returns a raw transaction by block hash and transaction index.                                | 5                  |
| `eth_getRawTransactionByBlockNumberAndIndex` | Returns a raw transaction by block number or tag and transaction index.                       | 5                  |
| `eth_getStorageAt`                           | Returns the value stored at a specified storage position for an address at a block.           | 5                  |
| `eth_getTransactionByBlockHashAndIndex`      | Returns a transaction by block hash and transaction index.                                    | 5                  |
| `eth_getTransactionByBlockNumberAndIndex`    | Returns a transaction by block number or tag and transaction index.                           | 5                  |
| `eth_getTransactionByHash`                   | Returns a transaction by its hash.                                                            | 5                  |
| `eth_getTransactionCount`                    | Returns the number of transactions sent from an address at a specified block.                 | 10                 |
| `eth_getTransactionReceipt`                  | Returns the receipt for a transaction hash.                                                   | 5                  |
| `eth_getUncleByBlockHashAndIndex`            | Returns the uncle at an index in a block identified by hash; X Layer returns no uncle data.   | 5                  |
| `eth_getUncleByBlockNumberAndIndex`          | Returns the uncle at an index in a block identified by number; X Layer returns no uncle data. | 5                  |
| `eth_getUncleCountByBlockHash`               | Returns the uncle count for a block identified by hash; X Layer returns zero.                 | 5                  |
| `eth_getUncleCountByBlockNumber`             | Returns the uncle count for a block identified by number; X Layer returns zero.               | 5                  |
| `eth_maxPriorityFeePerGas`                   | Returns a suggested priority fee per gas.                                                     | 1                  |
| `eth_newBlockFilter`                         | Creates a filter that reports newly added blocks.                                             | 5                  |
| `eth_newFilter`                              | Creates a filter for logs matching supplied criteria.                                         | 5                  |
| `eth_protocolVersion`                        | Returns the current Ethereum protocol version.                                                | 1                  |
| `eth_sendRawTransaction`                     | Submits a signed, serialized transaction and returns its transaction hash.                    | 100                |
| `eth_subscribe`                              | Creates a subscription for supported events over WebSocket.                                   | 1                  |
| `eth_syncing`                                | Returns synchronization status or `false` when the node is not syncing.                       | 1                  |
| `eth_uninstallFilter`                        | Removes a filter and returns whether it was removed.                                          | 5                  |
| `eth_unsubscribe`                            | Cancels an existing WebSocket subscription.                                                   | 1                  |

### `debug`

> 🚧
>
> These methods can only be used if the request parameters contain `tracer: callTracer`.

| Method                     | Notes                                                                                          | Compute Unit Value |
| -------------------------- | ---------------------------------------------------------------------------------------------- | ------------------ |
| `debug_traceBlock`         | Traces an RLP-encoded block and returns execution traces for its transactions.                 | 50                 |
| `debug_traceTransaction`   | Replays a transaction identified by hash and returns the selected execution trace.             | 50                 |
| `debug_traceBlockByHash`   | Replays a block identified by hash and returns execution traces for its transactions.          | 50                 |
| `debug_traceBlockByNumber` | Replays a block identified by number or tag and returns execution traces for its transactions. | 50                 |

### `net`

| Method          | Notes                                              | Compute Unit Value |
| --------------- | -------------------------------------------------- | ------------------ |
| `net_version`   | Returns the current network identifier.            | 1                  |
| `net_peerCount` | Returns the number of peers connected to the node. | 1                  |

### `web3`

| Method               | Notes                                             | Compute Unit Value |
| -------------------- | ------------------------------------------------- | ------------------ |
| `web3_clientVersion` | Returns the current client version.               | 1                  |
| `web3_sha3`          | Returns the Keccak-256 hash of the supplied data. | 1                  |

### `trace`

| Method                          | Notes                                                                                 | Compute Unit Value |
| ------------------------------- | ------------------------------------------------------------------------------------- | ------------------ |
| `trace_block`                   | Returns execution traces for every transaction in a specified block.                  | 20                 |
| `trace_call`                    | Simulates a call without broadcasting it and returns the requested trace data.        | 20                 |
| `trace_callMany`                | Simulates multiple calls in order and returns the requested trace data for each call. | 40                 |
| `trace_filter`                  | Returns traces matching a block range and from/to address criteria.                   | 20                 |
| `trace_get`                     | Returns a specific trace from a transaction by trace address.                         | 20                 |
| `trace_replayBlockTransactions` | Replays every transaction in a block and returns the requested trace types.           | 40                 |
| `trace_replayTransaction`       | Replays a transaction and returns the requested trace types.                          | 40                 |
| `trace_transaction`             | Returns all traces generated by a transaction.                                        | 20                 |