bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 33쪽
prestateTracer, ignored for callTracer
</ParamField>
<ParamField type="boolean">
log for callTracer, ignored for prestateTracer
</ParamField>
</Expandable>
</ParamField>
</Expandable>
</ParamField>
**Returns**
<ResponseField name="result" type="object">
Array of trace result objects, one per transaction.
<Expandable title="properties">
<ResponseField name="txHash" type="string" />
<ResponseField name="result" type="object" />
</Expandable>
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "debug_traceBlockByNumber",
"params": [
"latest",
{
"tracer": "callTracer"
}
],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x..."
}
```
</CodeGroup>
## debug\_traceCall
Returns the tracing result by executing an eth call.
<a href="/reference/json-rpc/playground?method=debug_traceCall">
<span />
<span>Open in RPC Playground</span>
<svg>
<path />
</svg>
</a>
**Parameters**
<ParamField type="object">
Transaction call object.
<Expandable title="properties">
<ParamField type="string" />
<ParamField type="string" />
<ParamField type="string" />
<ParamField type="string" />
<ParamField type="string" />
<ParamField type="string" />
<ParamField type="string" />
<ParamField type="string" />
<ParamField type="string" />
<ParamField type="string" />
<ParamField type="string" />
<ParamField type="string" />
</Expandable>
</ParamField>
<ParamField type="string">
Block tag (`latest`, `safe`, `finalized`, `pending`) or 32-byte block hash.
</ParamField>
<ParamField type="object">
Tracer configuration object.
<Expandable title="properties">
<ParamField type="string">
Tracer type: `callTracer` or `prestateTracer`.
</ParamField>
<ParamField type="object">
<Expandable title="properties">
<ParamField type="boolean">
onlyTopCall for callTracer, ignored for prestateTracer
</ParamField>
<ParamField type="boolean">
diff mode for prestateTracer, ignored for callTracer
</ParamField>
<ParamField type="boolean">
log for callTracer, ignored for prestateTracer
</ParamField>
</Expandable>
</ParamField>
</Expandable>
</ParamField>
**Returns**
<ResponseField name="result" type="object">
The trace result. Structure depends on the tracer used.
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "debug_traceCall",
"params": [
{
"to": "0x...",
"data": "0x..."
},
"latest",
{
"tracer": "callTracer",
"tracerConfig": {
"onlyTopCall": false
}
}
],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x..."
}
```
</CodeGroup>
## debug\_traceTransaction
Returns all traces of a given transaction.
<a href="/reference/json-rpc/playground?method=debug_traceTransaction">
<span />
<span>Open in RPC Playground</span>
<svg>
<path />
</svg>
</a>
**Parameters**
<ParamField type="string">
32-byte transaction hash (hex-encoded).
</ParamField>
<ParamField type="object">
Tracer configuration object.
<Expandable title="properties">
<ParamField type="string">
Tracer type: `callTracer` or `prestateTracer`.
</ParamField>
<ParamField type="object">
<Expandable title="properties">
<ParamField type="boolean">
onlyTopCall for callTracer, ignored for prestateTracer
</ParamField>
<ParamField type="boolean">
diff mode for prestateTracer, ignored for callTracer
</ParamField>
<ParamField type="boolean">
log for callTracer, ignored for prestateTracer
</ParamField>
</Expandable>
</ParamField>
</Expandable>
</ParamField>
**Returns**
<ResponseField name="result" type="object">
The trace result object.
<Expandable title="properties">
<ResponseField name="type" type="string" />
<ResponseField name="from" type="string" />
<ResponseField name="to" type="string" />
<ResponseField name="value" type="string" />
<ResponseField name="gas" type="string" />
<ResponseField name="gasUsed" type="string" />
<ResponseField name="input" type="string" />
<ResponseField name="output" type="string" />
<ResponseField name="error" type="string" />
<ResponseField name="revertReason" type="string" />
<ResponseField name="logs" type="array" />
</Expandable>
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "debug_traceTransaction",
"params": [
"0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae",
{
"tracer": "callTracer"
}
],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x..."
}
```
</CodeGroup>
## admin\_ethCallStatistics
Returns statistics about eth\_call capacity including inactive executors and queued requests
<a href="/reference/json-rpc/playground?method=admin_ethCallStatistics">
<span />
<span>Open in RPC Playground</span>
<svg>
<path />
</svg>
</a>
**Parameters**
This method takes no parameters.
**Returns**
<ResponseField name="result" type="object">
Object with eth\_call capacity statistics.
<Expandable title="properties">
<ResponseField name="inactiveExecutors" type="string" />
<ResponseField name="queuedRequests" type="string" />
<ResponseField name="oldestRequestAgeMs" type="string" />
<ResponseField name="averageRequestAgeMs" type="string" />
<ResponseField name="totalRequests" type="string" />
<ResponseField name="totalErrors" type="string" />
<ResponseField name="queueRejections" type="string" />
</Expandable>
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "admin_ethCallStatistics",
"params": [],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x..."
}
```
</CodeGroup>
## net\_version
Returns the current network ID.
<a href="/reference/json-rpc/playground?method=net_version">
<span />
<span>Open in RPC Playground</span>
<svg>
<path />
</svg>
</a>
**Parameters**
This method takes no parameters.
**Returns**
<ResponseField name="result" type="string">
The current network/chain ID as a string.
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "net_version",
"params": [],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x..."
}
```
</CodeGroup>
## txpool\_statusByAddress
Returns the status of pending transactions from the given address.
<a href="/reference/json-rpc/playground?method=txpool_statusByAddress">
<span />
<span>Open in RPC Playground</span>
<svg>
<path />
</svg>
</a>
**Parameters**
<ParamField type="string">
20-byte account address (hex-encoded).
</ParamField>
**Returns**
<ResponseField name="result" type="object">
Map of nonce to transaction status.
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "txpool_statusByAddress",
"params": [
"0x407d73d8a49eeb85d32cf465507dd71d507100c1"
],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x..."
}
```
</CodeGroup>
## txpool\_statusByHash
Returns the status of a pending transaction by hash.
<a href="/reference/json-rpc/playground?method=txpool_statusByHash">
<span />
<span>Open in RPC Playground</span>
<svg>
<path />
</svg>
</a>
**Parameters**
<ParamField type="string">
32-byte transaction hash (hex-encoded).
</ParamField>
**Returns**
<ResponseField name="result" type="object">
Transaction status object.
<Expandable title="properties">
<ResponseField name="status" type="string" />
<ResponseField name="reason" type="string" />
</Expandable>
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "txpool_statusByHash",
"params": [
"0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae"
],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x..."
}
```
</CodeGroup>
## web3\_clientVersion
Returns the Monad client version.
<a href="/reference/json-rpc/playground?method=web3_clientVersion">
<span />
<span>Open in RPC Playground</span>
<svg>
<path />
</svg>
</a>
**Parameters**
This method takes no parameters.
**Returns**
<ResponseField name="result" type="string">
The Monad client version string.
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "web3_clientVersion",
"params": [],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x..."
}
```
</CodeGroup>
# JSON-RPC Overview
Source: https://docs.monad.xyz/reference/json-rpc/overview
JSON-RPC methods, differences from Ethereum, rate limits, and error codes
Monad supports a [JSON-RPC](https://www.jsonrpc.org/specification) interface for interacting with the blockchain. Monad aims to match the RPC behavior of [Geth](https://geth.ethereum.org/docs/interacting-with-geth/rpc) as closely as possible, but due to fundamental architectural differences, some behaviors deviate from Ethereum.
## Supported methods
| Method | Notes |
| - | - |
| [`eth_blockNumber`](/reference/json-rpc/api#eth_blocknumber) | |
| [`eth_call`](/reference/json-rpc/api#eth_call) | [Gas limits](#eth_call-%2F-eth_estimategas), [state availability limits](#state-availability) |
| [`eth_chainId`](/reference/json-rpc/api#eth_chainid) | |
| [`eth_createAccessList`](/reference/json-rpc/api#eth_createaccesslist) | [Storage keys deduplicated by page](/developer-essentials/opcode-pricing#storage-pages) |
| [`eth_estimateGas`](/reference/json-rpc/api#eth_estimategas) | [Gas limits](#eth_call-%2F-eth_estimategas) |
| [`eth_feeHistory`](/reference/json-rpc/api#eth_feehistory) | [Difference from Ethereum](#fee-estimation) |
| [`eth_fillTransaction`](/reference/json-rpc/api#eth_filltransaction) | |
| [`eth_gasPrice`](/reference/json-rpc/api#eth_gasprice) | |
| [`eth_getBalance`](/reference/json-rpc/api#eth_getbalance) | |
| [`eth_getBlockByHash`](/reference/json-rpc/api#eth_getblockbyhash) | |
| [`eth_getBlockByNumber`](/reference/json-rpc/api#eth_getblockbynumber) | |
| [`eth_getBlockReceipts`](/reference/json-rpc/api#eth_getblockreceipts) | |
| [`eth_getBlockTransactionCountByHash`](/reference/json-rpc/api#eth_getblocktransactioncountbyhash) | |
| [`eth_getBlockTransactionCountByNumber`](/reference/json-rpc/api#eth_getblocktransactioncountbynumber) | |
| [`eth_getCode`](/reference/json-rpc/api#eth_getcode) | |
| [`eth_getLogs`](/reference/json-rpc/api#eth_getlogs) | [Block range limits](#eth_getlogs) |
| [`eth_getStorageAt`](/reference/json-rpc/api#eth_getstorageat) | |
| [`eth_getTransactionByBlockHashAndIndex`](/reference/json-rpc/api#eth_gettransactionbyblockhashandindex) | |
| [`eth_getTransactionByBlockNumberAndIndex`](/reference/json-rpc/api#eth_gettransactionbyblocknumberandindex) | |
| [`eth_getTransactionByHash`](/reference/json-rpc/api#eth_gettransactionbyhash) | [Does not return pending txs](#transaction-lifecycle) |
| [`eth_getTransactionCount`](/reference/json-rpc/api#eth_gettransactioncount) | |
| [`eth_getTransactionReceipt`](/reference/json-rpc/api#eth_gettransactionreceipt) | |
| [`eth_maxPriorityFeePerGas`](/reference/json-rpc/api#eth_maxpriorityfeepergas) | [Returns hardcoded value](#fee-estimation) |
| [`eth_sendRawTransaction`](/reference/json-rpc/api#eth_sendrawtransaction) | [Async validation behavior](#transaction-lifecycle) |
| [`eth_sendRawTransactionSync`](/reference/json-rpc/api#eth_sendrawtransactionsync) | [Async validation behavior](#transaction-lifecycle) |
| [`eth_syncing`](/reference/json-rpc/api#eth_syncing) | |
| `eth_subscribe` | WebSocket only, see [WebSocket subscriptions](#websocket-subscriptions) |
| [`debug_getRawBlock`](/reference/json-rpc/api#debug_getrawblock) | |
| [`debug_getRawHeader`](/reference/json-rpc/api#debug_getrawheader) | |
| [`debug_getRawReceipts`](/reference/json-rpc/api#debug_getrawreceipts) | |
| [`debug_getRawTransaction`](/reference/json-rpc/api#debug_getrawtransaction) | |
| [`debug_traceBlockByHash`](/reference/json-rpc/api#debug_traceblockbyhash) | [Trace options required](#debug-%2F-tracing) |
| [`debug_traceBlockByNumber`](/reference/json-rpc/api#debug_traceblockbynumber) | [Trace options required](#debug-%2F-tracing) |
| [`debug_traceCall`](/reference/json-rpc/api#debug_tracecall) | [Trace options required](#debug-%2F-tracing) |
| [`debug_traceTransaction`](/reference/json-rpc/api#debug_tracetransaction) | [Trace options required](#debug-%2F-tracing) |
| [`admin_ethCallStatistics`](/reference/json-rpc/api#admin_ethcallstatistics) | Monad-specific |
| [`net_version`](/reference/json-rpc/api#net_version) | |
| [`txpool_statusByAddress`](/reference/json-rpc/api#txpool_statusbyaddress) | Monad-specific |
| [`txpool_statusByHash`](/reference/json-rpc/api#txpool_statusbyhash) | Monad-specific |
| [`web3_clientVersion`](/reference/json-rpc/api#web3_clientversion) | |
## Differences from Ethereum
Monad is Geth-compatible, but its architecture — including [asynchronous execution](/monad-arch/consensus/asynchronous-execution) and sub-second block times — introduces behavioral differences in several areas.
### Transaction lifecycle
**Deferred nonce/balance validation.** `eth_sendRawTransaction` may not immediately reject transactions with a nonce gap or insufficient gas balance. Because Monad's RPC server is designed for asynchronous execution, it may not have the latest account state at the time of submission. These transactions are initially accepted because they may become valid during block creation.
**No pending transaction queries.** `eth_getTransactionByHash` only returns transactions that have been included in a block. Querying a transaction that is still in the mempool returns `null`.
### State availability
`eth_call` invocations that reference old state (i.e. with an old block number) may fail, because full nodes do not provide access to arbitrary historic state. See [Historical Data](/developer-essentials/historical-data) for details on what state is available and how to access it.
### Fee estimation
**`eth_maxPriorityFeePerGas`** currently returns a hardcoded suggested fee of 2 gwei. This is temporary.
**`eth_feeHistory`** with `newest_block = latest`: by convention, this method returns the fee history for the requested range *plus* one extra projected fee for the next block. Monad does not have all the inputs required to compute the next block's base fee, so when the newest requested block is `latest`, the latest `baseFeePerGas` is returned twice.
### Debug / tracing
**Trace options parameter is required.** `debug_traceCall`, `debug_traceTransaction`, and related `debug_trace*` methods require the trace options object to be explicitly provided. Unlike standard EVM clients where this parameter is optional, Monad RPC returns error `-32602 Invalid params` if it is omitted. Always include the parameter, even if empty:
```json theme={null}
{
"method": "debug_traceCall",
"params": [
{
"to": "0x6b175474e89094c44da98b954eedeac495271d0f"
},
"latest",
{}
]
}
```
**Default tracer is `callTracer`.** When an empty trace options object `{}` is provided, Monad defaults to the `callTracer` instead of the struct logs tracer typical in other EVM clients. Monad does not currently support opcode-level struct logs at the VM level.
### Unsupported features
| Feature | Affected methods | Details |
| - | - | - |
| EIP-4844 (blob transactions) | `eth_sendRawTransaction`, `eth_call`, `eth_estimateGas` | Blob transaction type is rejected |
| `"syncing"` subscription | `eth_subscribe` | Not supported |
| `"newPendingTransactions"` subscription | `eth_subscribe` | Not supported |
## Block tags
Monad blocks progress through four [commitment states](/monad-arch/consensus/block-states): `Proposed`, `Voted`, `Finalized`, and `Verified`. The JSON-RPC API exposes these through standard Ethereum-compatible block tags.
| Block tag | Monad state | Guidance |
| - | - | - |
| `"latest"` | `Proposed` | Lowest-latency view, but backed by [speculative execution](/monad-arch/consensus/asynchronous-execution#speculative-execution) — no consensus vote yet. Use for read-heavy UIs where freshness matters more than certainty. |
| `"safe"` | `Voted` | Backed by a supermajority vote. Reverts require extremely [unlikely conditions](/monad-arch/consensus/monad-bft#the-only-loophole). |
| `"finalized"` | `Finalized` | Irreversible without a hard fork. Use for value settlement: bridges, deposits, payment crediting. |
<Note>The `"pending"` tag is supported but behaves the same as `"latest"`. [Learn more](/monad-arch/consensus/local-mempool).</Note>
### Unfinalized data
Any RPC response that includes data from a non-finalized block can change on a subsequent identical request.
* **Methods with a block number/tag parameter** (`eth_call`, `eth_getBalance`, `eth_getLogs`, etc.) — can return non-finalized data when called with `"latest"` or a non-finalized block number.
* **Transaction-hash lookups** (`eth_getTransactionByHash`, `eth_getTransactionReceipt`) — can match a transaction in a non-finalized block. The returned `blockNumber`, log indices, or even the result itself (`null`) can change.
* **Implicit-latest methods** (`eth_gasPrice`, `eth_maxPriorityFeePerGas`) — always return non-finalized data using the `"latest"` tag.
<Tip>
Treat data from non-finalized blocks as provisional. For transaction-hash lookups, compare the returned `blockNumber` against the `"finalized"` block height (tracked client-side) before acting on the result.
</Tip>
## Limits
### `eth_call` / `eth_estimateGas`
#### Gas limit per call
| Provider | Public RPC | Gas limit |
| - | - | - |
| QuickNode | `rpc.monad.xyz` | 200M gas |
| Alchemy | `rpc1.monad.xyz` | 200M gas |
| Ankr | `rpc3.monad.xyz` | 1B gas |
| Monad Foundation | `rpc-mainnet.monadinfra.com` | 200M gas |
<Note>
**Node operators**. Use `--eth-call-provider-gas-limit` (default 30M) and `--eth-estimate-gas-provider-gas-limit` (default 30M) to configure these limits.
</Note>
#### Gas limit resolution
When the caller specifies a gas **price** (`gasPrice` or `maxFeePerGas`), the effective gas limit is `min(gas limit allowance, provider gas limit)`, where the gas limit allowance is the maximum gas given the caller's balance and specified price. When no gas price is specified, the provider gas limit applies directly. This is consistent with Geth's behavior.
#### Dual-pool execution model
`eth_call` and `eth_estimateGas` requests are routed to one of two execution pools based on the caller-specified gas limit:
| Pool | Gas limit | Purpose |
| - | - | - |
| Low-gas | ≤ 8,100,000 | Most calls; higher throughput |
| High-gas | > 8,100,000 | Large simulations; limited concurrency |
When the caller does not specify a gas limit, the request is first attempted in the low-gas pool. If it runs out of gas, it is automatically retried in the high-gas pool.
<Note>
**Node operators**. Use `--eth-call-max-concurrent-requests` (default 1000) and `--eth-call-high-max-concurrent-requests` (default 20) to configure pool concurrency.
</Note>
### `eth_getLogs`
#### Block range limit per call
| Provider | Public RPC | Block range limit |
| - | - | - |
| QuickNode | `rpc.monad.xyz` | 100 blocks |
| Alchemy | `rpc1.monad.xyz` | 1,000 blocks and 10,000 logs (whichever is more constraining) |
| Ankr | `rpc3.monad.xyz` | 1,000 blocks |
| Monad Foundation | `rpc-mainnet.monadinfra.com` | 100 blocks |
<Note>
**Node operators**. Use `--eth-get-logs-max-block-range` to configure the block range limit.
</Note>
#### Why are block range limits low?
Monad produces a block every 300ms and can accommodate up to 3,750 transactions per block with computation up to 150M gas. Blocks are both extremely frequent and significantly larger than Ethereum blocks, which is the main motivation for keeping per-call 프로젝트로 돌아가기