ing" />
<ResponseField name="from" type="string" />
<ResponseField name="gasPrice" type="string" />
</Expandable>
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "eth_getTransactionByBlockHashAndIndex",
"params": [
"0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae",
"0x1"
],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"type": "0x2",
"chainId": "0x1",
"nonce": "0x16d",
"gas": "0x46a02",
"maxFeePerGas": "0x7fc1a20a8",
"maxPriorityFeePerGas": "0x59682f00",
"to": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45",
"value": "0x4a6ed55bbcc180",
"accessList": [],
"input": "0x5ae401dc...",
"r": "0x7f2153019a74025d83a73effdd91503ceecefac7e35dd933adc1901c875539aa",
"s": "0x334ab2f714796d13c825fddf12aad01438db3a8152b2fe3ef7827707c25ecab3",
"yParity": "0x0",
"v": "0x0",
"hash": "0x0e07d8b53ed3d91314c80e53cf25bcde02084939395845cbb625b029d568135c",
"blockHash": "0x883f974b17ca7b28cb970798d1c80f4d4bb427473dc6d39b2a7fe24edc02902d",
"blockNumber": "0xe26e6d",
"transactionIndex": "0xad",
"from": "0x3cf412d970474804623bb4e3a42de13f9bca5436",
"gasPrice": "0x50101df3a"
}
}
```
</CodeGroup>
## eth\_getTransactionByBlockNumberAndIndex
Returns information about a transaction by block number and transaction index position.
<a href="/reference/json-rpc/playground?method=eth_getTransactionByBlockNumberAndIndex">
<span />
<span>Open in RPC Playground</span>
<svg>
<path />
</svg>
</a>
**Parameters**
<ParamField type="string">
Block number (hex) or tag: `latest`, `safe`, `finalized`, `pending`.
</ParamField>
<ParamField type="string">
Transaction index position (hex-encoded integer).
</ParamField>
**Returns**
<ResponseField name="result" type="object">
The transaction object, or `null` if not found.
<Expandable title="properties">
<ResponseField name="type" type="string" />
<ResponseField name="chainId" type="string" />
<ResponseField name="nonce" type="string" />
<ResponseField name="gas" type="string" />
<ResponseField name="maxFeePerGas" type="string" />
<ResponseField name="maxPriorityFeePerGas" type="string" />
<ResponseField name="to" type="string" />
<ResponseField name="value" type="string" />
<ResponseField name="accessList" type="array" />
<ResponseField name="input" type="string" />
<ResponseField name="r" type="string" />
<ResponseField name="s" type="string" />
<ResponseField name="yParity" type="string" />
<ResponseField name="v" type="string" />
<ResponseField name="hash" type="string" />
<ResponseField name="blockHash" type="string" />
<ResponseField name="blockNumber" type="string" />
<ResponseField name="transactionIndex" type="string" />
<ResponseField name="from" type="string" />
<ResponseField name="gasPrice" type="string" />
</Expandable>
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "eth_getTransactionByBlockNumberAndIndex",
"params": [
"latest",
"0x1"
],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"type": "0x2",
"chainId": "0x1",
"nonce": "0x16d",
"gas": "0x46a02",
"maxFeePerGas": "0x7fc1a20a8",
"maxPriorityFeePerGas": "0x59682f00",
"to": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45",
"value": "0x4a6ed55bbcc180",
"accessList": [],
"input": "0x5ae401dc...",
"r": "0x7f2153019a74025d83a73effdd91503ceecefac7e35dd933adc1901c875539aa",
"s": "0x334ab2f714796d13c825fddf12aad01438db3a8152b2fe3ef7827707c25ecab3",
"yParity": "0x0",
"v": "0x0",
"hash": "0x0e07d8b53ed3d91314c80e53cf25bcde02084939395845cbb625b029d568135c",
"blockHash": "0x883f974b17ca7b28cb970798d1c80f4d4bb427473dc6d39b2a7fe24edc02902d",
"blockNumber": "0xe26e6d",
"transactionIndex": "0xad",
"from": "0x3cf412d970474804623bb4e3a42de13f9bca5436",
"gasPrice": "0x50101df3a"
}
}
```
</CodeGroup>
## eth\_getTransactionByHash
Returns the information about a transaction requested by transaction hash.
<a href="/reference/json-rpc/playground?method=eth_getTransactionByHash">
<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">
The transaction object, or `null` if not found.
<Expandable title="properties">
<ResponseField name="type" type="string" />
<ResponseField name="chainId" type="string" />
<ResponseField name="nonce" type="string" />
<ResponseField name="gas" type="string" />
<ResponseField name="maxFeePerGas" type="string" />
<ResponseField name="maxPriorityFeePerGas" type="string" />
<ResponseField name="to" type="string" />
<ResponseField name="value" type="string" />
<ResponseField name="accessList" type="array" />
<ResponseField name="input" type="string" />
<ResponseField name="r" type="string" />
<ResponseField name="s" type="string" />
<ResponseField name="yParity" type="string" />
<ResponseField name="v" type="string" />
<ResponseField name="hash" type="string" />
<ResponseField name="blockHash" type="string" />
<ResponseField name="blockNumber" type="string" />
<ResponseField name="transactionIndex" type="string" />
<ResponseField name="from" type="string" />
<ResponseField name="gasPrice" type="string" />
</Expandable>
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "eth_getTransactionByHash",
"params": [
"0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae"
],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"type": "0x2",
"chainId": "0x1",
"nonce": "0x16d",
"gas": "0x46a02",
"maxFeePerGas": "0x7fc1a20a8",
"maxPriorityFeePerGas": "0x59682f00",
"to": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45",
"value": "0x4a6ed55bbcc180",
"accessList": [],
"input": "0x5ae401dc...",
"r": "0x7f2153019a74025d83a73effdd91503ceecefac7e35dd933adc1901c875539aa",
"s": "0x334ab2f714796d13c825fddf12aad01438db3a8152b2fe3ef7827707c25ecab3",
"yParity": "0x0",
"v": "0x0",
"hash": "0x0e07d8b53ed3d91314c80e53cf25bcde02084939395845cbb625b029d568135c",
"blockHash": "0x883f974b17ca7b28cb970798d1c80f4d4bb427473dc6d39b2a7fe24edc02902d",
"blockNumber": "0xe26e6d",
"transactionIndex": "0xad",
"from": "0x3cf412d970474804623bb4e3a42de13f9bca5436",
"gasPrice": "0x50101df3a"
}
}
```
</CodeGroup>
## eth\_getTransactionCount
Returns the number of transactions sent from an address.
<a href="/reference/json-rpc/playground?method=eth_getTransactionCount">
<span />
<span>Open in RPC Playground</span>
<svg>
<path />
</svg>
</a>
**Parameters**
<ParamField type="string">
20-byte account address (hex-encoded).
</ParamField>
<ParamField type="string">
Block tag (`latest`, `safe`, `finalized`, `pending`) or 32-byte block hash.
</ParamField>
**Returns**
<ResponseField name="result" type="string">
The number of transactions sent from this address, hex-encoded.
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "eth_getTransactionCount",
"params": [
"0x407d73d8a49eeb85d32cf465507dd71d507100c1",
"latest"
],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x..."
}
```
</CodeGroup>
## eth\_getTransactionReceipt
Returns the receipt of a transaction by transaction hash.
<a href="/reference/json-rpc/playground?method=eth_getTransactionReceipt">
<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">
The transaction receipt object, or `null` if not found.
<Expandable title="properties">
<ResponseField name="type" type="string" />
<ResponseField name="status" type="string" />
<ResponseField name="cumulativeGasUsed" type="string" />
<ResponseField name="logs" type="array" />
<ResponseField name="logsBloom" type="string" />
<ResponseField name="transactionHash" type="string" />
<ResponseField name="transactionIndex" type="string" />
<ResponseField name="blockHash" type="string" />
<ResponseField name="blockNumber" type="string" />
<ResponseField name="gasUsed" type="string" />
<ResponseField name="effectiveGasPrice" type="string" />
<ResponseField name="from" type="string" />
<ResponseField name="to" type="string" />
<ResponseField name="contractAddress" type="string" />
</Expandable>
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": [
"0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae"
],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"type": "0x2",
"status": "0x1",
"cumulativeGasUsed": "0xa42aec",
"logs": [
{
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"topics": [
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
],
"data": "0x00000000000000000000000000000000000000000052b7d2dcc80cd2e4000000",
"blockHash": "0x4acbdefb861ef4adedb135ca52865f6743451bfbfa35db78076f881a40401a5e",
"blockNumber": "0x129f4b9",
"transactionHash": "0x21f6554c28453a01e7276c1db2fc1695bb512b170818bfa98fa8136433100616",
"transactionIndex": "0x7f",
"logIndex": "0x118",
"removed": false
}
],
"logsBloom": "0x00000000...",
"transactionHash": "0x21f6554c28453a01e7276c1db2fc1695bb512b170818bfa98fa8136433100616",
"transactionIndex": "0x7f",
"blockHash": "0x4acbdefb861ef4adedb135ca52865f6743451bfbfa35db78076f881a40401a5e",
"blockNumber": "0x129f4b9",
"gasUsed": "0xbde1",
"effectiveGasPrice": "0xfb0f6e8c9",
"from": "0x9a53bfba35269414f3b2d20b52ca01b15932c7b2",
"to": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"contractAddress": null
}
}
```
</CodeGroup>
## eth\_maxPriorityFeePerGas
Returns the current maxPriorityFeePerGas per gas in wei.
<a href="/reference/json-rpc/playground?method=eth_maxPriorityFeePerGas">
<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 max priority fee per gas in wei, hex-encoded.
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "eth_maxPriorityFeePerGas",
"params": [],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x4b7"
}
```
</CodeGroup>
## eth\_sendRawTransaction
Submits a raw transaction. For EIP-4844 transactions, the raw form must be the network form.
This means it includes the blobs, KZG commitments, and KZG proofs.
<a href="/reference/json-rpc/playground?method=eth_sendRawTransaction">
<span />
<span>Open in RPC Playground</span>
<svg>
<path />
</svg>
</a>
**Parameters**
<ParamField type="string">
Signed transaction data (hex-encoded).
</ParamField>
**Returns**
<ResponseField name="result" type="string">
The 32-byte transaction hash.
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "eth_sendRawTransaction",
"params": [
"0x..."
],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x..."
}
```
</CodeGroup>
## eth\_sendRawTransactionSync
<a href="/reference/json-rpc/playground?method=eth_sendRawTransactionSync">
<span />
<span>Open in RPC Playground</span>
<svg>
<path />
</svg>
</a>
**Parameters**
<ParamField type="string">
Signed transaction data (hex-encoded).
</ParamField>
<ParamField type="integer" />
**Returns**
<ResponseField name="result" type="object">
<Expandable title="properties">
<ResponseField name="type" type="string" />
<ResponseField name="status" type="string" />
<ResponseField name="cumulativeGasUsed" type="string" />
<ResponseField name="logs" type="array" />
<ResponseField name="logsBloom" type="string" />
<ResponseField name="transactionHash" type="string" />
<ResponseField name="transactionIndex" type="string" />
<ResponseField name="blockHash" type="string" />
<ResponseField name="blockNumber" type="string" />
<ResponseField name="gasUsed" type="string" />
<ResponseField name="effectiveGasPrice" type="string" />
<ResponseField name="from" type="string" />
<ResponseField name="to" type="string" />
<ResponseField name="contractAddress" type="string" />
</Expandable>
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "eth_sendRawTransactionSync",
"params": [
"0x...",
"0x..."
],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"type": "0x2",
"status": "0x1",
"cumulativeGasUsed": "0xa42aec",
"logs": [
{
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"topics": [
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
],
"data": "0x00000000000000000000000000000000000000000052b7d2dcc80cd2e4000000",
"blockHash": "0x4acbdefb861ef4adedb135ca52865f6743451bfbfa35db78076f881a40401a5e",
"blockNumber": "0x129f4b9",
"transactionHash": "0x21f6554c28453a01e7276c1db2fc1695bb512b170818bfa98fa8136433100616",
"transactionIndex": "0x7f",
"logIndex": "0x118",
"removed": false
}
],
"logsBloom": "0x00000000...",
"transactionHash": "0x21f6554c28453a01e7276c1db2fc1695bb512b170818bfa98fa8136433100616",
"transactionIndex": "0x7f",
"blockHash": "0x4acbdefb861ef4adedb135ca52865f6743451bfbfa35db78076f881a40401a5e",
"blockNumber": "0x129f4b9",
"gasUsed": "0xbde1",
"effectiveGasPrice": "0xfb0f6e8c9",
"from": "0x9a53bfba35269414f3b2d20b52ca01b15932c7b2",
"to": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"contractAddress": null
}
}
```
</CodeGroup>
## eth\_syncing
Returns an object with data about the sync status or false.
<a href="/reference/json-rpc/playground?method=eth_syncing">
<span />
<span>Open in RPC Playground</span>
<svg>
<path />
</svg>
</a>
**Parameters**
This method takes no parameters.
**Returns**
<ResponseField name="result" type="boolean">
`false` if not syncing, or an object with sync status data.
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "eth_syncing",
"params": [],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": false
}
```
</CodeGroup>
## debug\_getRawBlock
Returns an RLP-encoded block.
<a href="/reference/json-rpc/playground?method=debug_getRawBlock">
<span />
<span>Open in RPC Playground</span>
<svg>
<path />
</svg>
</a>
**Parameters**
<ParamField type="string">
Block number (hex) or tag: `latest`, `safe`, `finalized`, `pending`.
</ParamField>
**Returns**
<ResponseField name="result" type="string">
The RLP-encoded block data.
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "debug_getRawBlock",
"params": [
"latest"
],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x..."
}
```
</CodeGroup>
## debug\_getRawHeader
Returns an RLP-encoded header.
<a href="/reference/json-rpc/playground?method=debug_getRawHeader">
<span />
<span>Open in RPC Playground</span>
<svg>
<path />
</svg>
</a>
**Parameters**
<ParamField type="string">
Block number (hex) or tag: `latest`, `safe`, `finalized`, `pending`.
</ParamField>
**Returns**
<ResponseField name="result" type="string">
The RLP-encoded header data.
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "debug_getRawHeader",
"params": [
"latest"
],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x..."
}
```
</CodeGroup>
## debug\_getRawReceipts
Returns an array of EIP-2718 binary-encoded receipts.
<a href="/reference/json-rpc/playground?method=debug_getRawReceipts">
<span />
<span>Open in RPC Playground</span>
<svg>
<path />
</svg>
</a>
**Parameters**
<ParamField type="string">
Block number (hex) or tag: `latest`, `safe`, `finalized`, `pending`.
</ParamField>
**Returns**
<ResponseField name="result" type="array">
Array of EIP-2718 binary-encoded receipts.
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "debug_getRawReceipts",
"params": [
"latest"
],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": [
"0x..."
]
}
```
</CodeGroup>
## debug\_getRawTransaction
Returns an array of EIP-2718 binary-encoded transactions.
<a href="/reference/json-rpc/playground?method=debug_getRawTransaction">
<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="string">
The EIP-2718 binary-encoded transaction.
</ResponseField>
**Example**
<CodeGroup>
```json Request theme={null}
{
"jsonrpc": "2.0",
"method": "debug_getRawTransaction",
"params": [
"0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae"
],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x..."
}
```
</CodeGroup>
## debug\_traceBlockByHash
Returns the tracing result by executing all transactions in the block specified by the block hash with a tracer.
<a href="/reference/json-rpc/playground?method=debug_traceBlockByHash">
<span />
<span>Open in RPC Playground</span>
<svg>
<path />
</svg>
</a>
**Parameters**
<ParamField type="string">
32-byte block 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">
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_traceBlockByHash",
"params": [
"0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae",
{
"tracer": "callTracer"
}
],
"id": 1
}
```
```json Response theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x..."
}
```
</CodeGroup>
## debug\_traceBlockByNumber
Returns the tracing result by executing all transactions in the block specified by the block number with a tracer.
<a href="/reference/json-rpc/playground?method=debug_traceBlockByNumber">
<span />
<span>Open in RPC Playground</span>
<svg>
<path />
</svg>
</a>
**Parameters**
<ParamField type="string">
Block number (hex) or tag: `latest`, `safe`, `finalized`, `pending`.
</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 프로젝트로 돌아가기