Node API - Fantom
API AuthenticationClick to view API Authentication details
Authorization
request header or URL
property. Calls are made to one of the Fantom Node API endpoints found in your app's dashboard. For example:
https://ftm--mainnet--rpc-archive.datahub.figment.io
- Fetch with Header
- Fetch with Parameter
- CURL with Header
- CURL with Parameter
fetch("https://ftm--mainnet--rpc-archive.datahub.figment.io", {
method: 'POST', // can also be 'GET', 'PUT' or any appropriate method
headers: {
"Authorization" : "<api_key>",
"Content-Type": "application/json" // if method is 'POST'
},
body: JSON.stringify({
// JSON Payload
})
})
fetch("https://ftm--mainnet--rpc-archive.datahub.figment.io/apikey/{{apikey}}", {
method: 'POST', // can also be 'GET', 'PUT' or any appropriate method
headers: {
"Content-Type": "application/json" // if method is 'POST'
},
body: JSON.stringify({
// JSON Payload
})
})
curl -X POST 'https://ftm--mainnet--rpc-archive.datahub.figment.io' \
--header 'Content-Type: application/json' \
--header 'Authorization: <api_key>' \
--data '{
// JSON Payload
}'
curl -X POST 'https://ftm--mainnet--rpc-archive.datahub.figment.io/apikey/{{apikey}}' \
--header 'Content-Type: application/json' \
--data '{
// JSON Payload
}'
Available Methods
dag_getHeads
dag_getHeads
returns IDs of all the epoch events with no descendants in a given epoch.
{
"jsonrpc": "2.0",
"id": 1,
"result": [
"0x0002078c00000e08a7a882aa37937ccb2253c7d29a588715ad2b9d0c5530e3c4"
]
}
SpecificationView Specification
Parameters
string
- epoch number (in hex format) and for specific epoch (pass “latest”
for latest epoch; pass “pending”
for latest sealed epoch).
Response
array
- Array of event IDs
dag_getEvent
dag_getEvent
returns Lachesis event by hash or short ID.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"anyBlockVotes": false,
"anyEpochVote": false,
"anyMisbehaviourProofs": false,
"anyTxs": false,
"creationTime": "0x1705b14e32f13550",
"creator": "0x38",
"epoch": "0x219e4",
"extraData": "0x",
"frame": "0x77",
"gasPowerLeft": {
"longTerm": "0x6a1115cd",
"shortTerm": "0x11af0e90"
},
"gasPowerUsed": "0x61a8",
"id": "0x000219e40000062aa41a16d91f4d84cc7a45af0b7ac5fe0dfc42ce693752e6a9",
"lamport": "0x62a",
"medianTime": "0x1705b14e1aa7a2b6",
"networkVersion": "0x0",
"parents": [
"0x000219e400000622da29ffeb5bae2b0baeca7f8bf8e0127a6401e868824f2134",
"0x000219e40000062733a46efe5dd24c68ccd038c087eb95340dc2c882b78dcd2a",
"0x000219e40000062965473a803e45a5147c451271a23590e4e76072c34f9daf7f"
],
"payloadHash": "0x2fd8996df84d1ab44b758d0c383c2596b9c34d46a980a7a9f7a389020002fe7c",
"prevEpochHash": null,
"seq": "0xe8",
"version": "0x1"
}
}
SpecificationView Specification
Parameters
string
- The full event ID (in hex format, 32 bytes) or short event ID.
Response
version
- event versionepoch
- event epoch numberseq
- event sequence numberhash
-DATA
full event IDframe
- event frame numbercreator
- the address of the event creator / validatorprevEpochHash
- the hash of the state of previous epochparents
- array of event IDsgasPowerLeft
- event's not spent gas powergasPowerUsed
- gas power spent on eventlamport
- Lamport index of the eventcreationTime
- the UnixNano timestamp of creator's local creation timemedianTime
- the UnixNano timestamp of the secure median timeextraData
- the "extra data" field of the eventtransactionsRoot
- the root of the transaction trie of the event. If no event found it returnsnull
dag_getEventPayload
dag_getEventPayload
returns event (including transactions) by hash or short ID.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"anyBlockVotes": false,
"anyEpochVote": false,
"anyMisbehaviourProofs": false,
"anyTxs": false,
"creationTime": "0x1705b14e32f13550",
"creator": "0x38",
"epoch": "0x219e4",
"extraData": "0x",
"frame": "0x77",
"gasPowerLeft": {
"longTerm": "0x6a1115cd",
"shortTerm": "0x11af0e90"
},
"gasPowerUsed": "0x61a8",
"id": "0x000219e40000062aa41a16d91f4d84cc7a45af0b7ac5fe0dfc42ce693752e6a9",
"lamport": "0x62a",
"medianTime": "0x1705b14e1aa7a2b6",
"networkVersion": "0x0",
"parents": [
"0x000219e400000622da29ffeb5bae2b0baeca7f8bf8e0127a6401e868824f2134",
"0x000219e40000062733a46efe5dd24c68ccd038c087eb95340dc2c882b78dcd2a",
"0x000219e40000062965473a803e45a5147c451271a23590e4e76072c34f9daf7f"
],
"payloadHash": "0x2fd8996df84d1ab44b758d0c383c2596b9c34d46a980a7a9f7a389020002fe7c",
"prevEpochHash": null,
"seq": "0xe8",
"size": "0xb3",
"transactions": [],
"version": "0x1"
}
}
SpecificationView Specification
Parameters
string
- The full event ID (in hex format, 32 bytes) or short event ID.boolean
- Returns the full transaction objects, if it false then returns only the hashes of the transactions.
Response
version
- event versionepoch
- event epoch numberseq
- event sequence numberhash
-DATA
full event IDframe
- event frame numbercreator
- the address of the event creator / validatorprevEpochHash
- the hash of the state of previous epochparents
- array of event IDsgasPowerLeft
- event's not spent gas powergasPowerUsed
- gas power spent on eventlamport
- Lamport index of the eventcreationTime
- the UnixNano timestamp of creator's local creation timemedianTime
- the UnixNano timestamp of the secure median timeextraData
- the "extra data" field of the eventtransactionsRoot
- the root of the transaction trie of the event. If no event found it returnsnull
eth_getBlockByHash
Returns information about a block by hash.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"baseFeePerGas": "0x4a583926",
"difficulty": "0x0",
"extraData": "0x",
"gasLimit": "0xffffffffffff",
"gasUsed": "0x32a322",
"hash": "0x000205e0000001f07b3da5c29ebe91fb149afcdf252bcf0aa1922513067ec26d",
"logsBloom": "0x0020000000010100040000008000000004080000000000080000000000040020000800000100100000800000000000000180002440010000202a000000200000001000000008040000000008020010a0811000000a80010020000000000000000000000004000000400000900100008100020000002000800000001000000008400000000000000022000080000000000000020004104088000000c040020000020080000000000002c0000000000000000000800000010020000000000020000000088240000000004000040000000000000004000000100600000000000000023000001000200400200800030000000000008200400010000000041000400a",
"miner": "0x0000000000000000000000000000000000000000",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": "0x289bf01",
"parentHash": "0x000205e0000001e46ea2941205a107e1b1c62d8124aa666c70253bdc2942a836",
"receiptsRoot": "0x5fdd9666385701056702dc82c3d5c091f0c3c86266e1d6200406072714c8554d",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0xde7",
"stateRoot": "0xdde03aa0992235be86d4609766f7b560d5c0c648789f999f5d64c550a10687db",
"timestamp": "0x62cd2b5e",
"timestampNano": "0x17010660d4309eee",
"totalDifficulty": "0x0",
"transactions": [
{
"blockHash": "0x000205e0000001f07b3da5c29ebe91fb149afcdf252bcf0aa1922513067ec26d",
"blockNumber": "0x289bf01",
"from": "0x0d50f86b3b1f51be88712ebfa0a5f9217c8fa08c",
"gas": "0x1e8480",
"gasPrice": "0xbfad36bf",
"hash": "0x43a1d16687af3830cab3ddfa3f7ccc6c468579708ec44436776110a664bc999b",
"input": "0x000005017a656b342e14f745e2b164890e88017e27ae7320dc301622e621166bd8e82f2ca0a26c13ad0be355020002007ed0cddb9bb6c6dfea6fb63e117c8305479b8d7d21be370d5312f44cb42ce377bc9b8a0cef1a4c8326f200000061983225502f76e12315a1d84fdfee51ed1ad3f559c6606ed2af925f270733e378d6af7829b5b3cf26fc000000c6a39463dd3c3c39f736c51d81f044b2e718843321be370d5312f44cb42ce377bc9b8a0cef1a4c8326fc0000002b4c76d0dc16be1c31d4c1dc53bf9b45987fc75c04068da6c83afcfa0e13ba15a6696662335d5b7526fc000000000000000000000000000002fb65b00000000000000000000000000000000000",
"nonce": "0x143c",
"to": "0x0000000000085a12481aedb59eb3200332aca597",
"transactionIndex": "0x0",
"value": "0x0",
"type": "0x0",
"v": "0x217",
"r": "0x25cb27fc513e38f095b93b3f839317c2827a2c7fc3c5c152171897e2726ef3e3",
"s": "0x1159d589e74cc1066a864c552ea6a60f2a835a920313168e1cd0aa6d4e426bc9"
}
],
"transactionsRoot": "0xd29c1170f87846d7ab63faddfa7b589de56d2964ffe5c140e03bf0453ff6aaa8",
"uncles": []
}
}
SpecificationView Specification
Parameters
DATA
, 32 Bytes - Hash of a block.Boolean
- Iftrue
it returns the full transaction objects, iffalse
only the hashes of the transactions.
Response
Object
- A block object, or null
when no block was found:
number
:QUANTITY
- the block number.null
when its pending block.hash
:DATA
, 32 Bytes - hash of the block.null
when its pending block.parentHash
:DATA
, 32 Bytes - hash of the parent block.nonce
:DATA
, 8 Bytes - hash of the generated proof-of-work.null
when its pending block.sha3Uncles
:DATA
, 32 Bytes - SHA3 of the uncles data in the block.logsBloom
:DATA
, 256 Bytes - the bloom filter for the logs of the block.null
when its pending block.transactionsRoot
:DATA
, 32 Bytes - the root of the transaction trie of the block.stateRoot
:DATA
, 32 Bytes - the root of the final state trie of the block.receiptsRoot
:DATA
, 32 Bytes - the root of the receipts trie of the block.miner
:DATA
, 20 Bytes - the address of the beneficiary to whom the mining rewards were given.difficulty
:QUANTITY
- integer of the difficulty for this block.totalDifficulty
:QUANTITY
- integer of the total difficulty of the chain until this block.extraData
:DATA
- the "extra data" field of this block.size
:QUANTITY
- integer the size of this block in bytes.gasLimit
:QUANTITY
- the maximum gas allowed in this block.gasUsed
:QUANTITY
- the total used gas by all transactions in this block.timestamp
:QUANTITY
- the unix timestamp for when the block was collated.transactions
:Array
- Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.uncles
:Array
- Array of uncle hashes.
eth_getBlockByNumber
Returns information about a block by block number.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"baseFeePerGas": "0x4a583926",
"difficulty": "0x0",
"extraData": "0x",
"gasLimit": "0xffffffffffff",
"gasUsed": "0x32a322",
"hash": "0x000205e0000001f07b3da5c29ebe91fb149afcdf252bcf0aa1922513067ec26d",
"logsBloom": "0x0020000000010100040000008000000004080000000000080000000000040020000800000100100000800000000000000180002440010000202a000000200000001000000008040000000008020010a0811000000a80010020000000000000000000000004000000400000900100008100020000002000800000001000000008400000000000000022000080000000000000020004104088000000c040020000020080000000000002c0000000000000000000800000010020000000000020000000088240000000004000040000000000000004000000100600000000000000023000001000200400200800030000000000008200400010000000041000400a",
"miner": "0x0000000000000000000000000000000000000000",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": "0x289bf01",
"parentHash": "0x000205e0000001e46ea2941205a107e1b1c62d8124aa666c70253bdc2942a836",
"receiptsRoot": "0x5fdd9666385701056702dc82c3d5c091f0c3c86266e1d6200406072714c8554d",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0xde7",
"stateRoot": "0xdde03aa0992235be86d4609766f7b560d5c0c648789f999f5d64c550a10687db",
"timestamp": "0x62cd2b5e",
"timestampNano": "0x17010660d4309eee",
"totalDifficulty": "0x0",
"transactions": [
{
"blockHash": "0x000205e0000001f07b3da5c29ebe91fb149afcdf252bcf0aa1922513067ec26d",
"blockNumber": "0x289bf01",
"from": "0x0d50f86b3b1f51be88712ebfa0a5f9217c8fa08c",
"gas": "0x1e8480",
"gasPrice": "0xbfad36bf",
"hash": "0x43a1d16687af3830cab3ddfa3f7ccc6c468579708ec44436776110a664bc999b",
"input": "0x000005017a656b342e14f745e2b164890e88017e27ae7320dc301622e621166bd8e82f2ca0a26c13ad0be355020002007ed0cddb9bb6c6dfea6fb63e117c8305479b8d7d21be370d5312f44cb42ce377bc9b8a0cef1a4c8326f200000061983225502f76e12315a1d84fdfee51ed1ad3f559c6606ed2af925f270733e378d6af7829b5b3cf26fc000000c6a39463dd3c3c39f736c51d81f044b2e718843321be370d5312f44cb42ce377bc9b8a0cef1a4c8326fc0000002b4c76d0dc16be1c31d4c1dc53bf9b45987fc75c04068da6c83afcfa0e13ba15a6696662335d5b7526fc000000000000000000000000000002fb65b00000000000000000000000000000000000",
"nonce": "0x143c",
"to": "0x0000000000085a12481aedb59eb3200332aca597",
"transactionIndex": "0x0",
"value": "0x0",
"type": "0x0",
"v": "0x217",
"r": "0x25cb27fc513e38f095b93b3f839317c2827a2c7fc3c5c152171897e2726ef3e3",
"s": "0x1159d589e74cc1066a864c552ea6a60f2a835a920313168e1cd0aa6d4e426bc9"
}
],
"transactionsRoot": "0xd29c1170f87846d7ab63faddfa7b589de56d2964ffe5c140e03bf0453ff6aaa8",
"uncles": []
}
}
SpecificationView Specification
Parameters
QUANTITY|TAG
- integer of a block number, or the string"earliest"
,"latest"
or"pending"
, as in the default block parameterBoolean
- Iftrue
it returns the full transaction objects, iffalse
only the hashes of the transactions.
Response
Object
- A block object, or null
when no block was found:
number
:QUANTITY
- the block number.null
when its pending block.hash
:DATA
, 32 Bytes - hash of the block.null
when its pending block.parentHash
:DATA
, 32 Bytes - hash of the parent block.nonce
:DATA
, 8 Bytes - hash of the generated proof-of-work.null
when its pending block.sha3Uncles
:DATA
, 32 Bytes - SHA3 of the uncles data in the block.logsBloom
:DATA
, 256 Bytes - the bloom filter for the logs of the block.null
when its pending block.transactionsRoot
:DATA
, 32 Bytes - the root of the transaction trie of the block.stateRoot
:DATA
, 32 Bytes - the root of the final state trie of the block.receiptsRoot
:DATA
, 32 Bytes - the root of the receipts trie of the block.miner
:DATA
, 20 Bytes - the address of the beneficiary to whom the mining rewards were given.difficulty
:QUANTITY
- integer of the difficulty for this block.totalDifficulty
:QUANTITY
- integer of the total difficulty of the chain until this block.extraData
:DATA
- the "extra data" field of this block.size
:QUANTITY
- integer the size of this block in bytes.gasLimit
:QUANTITY
- the maximum gas allowed in this block.gasUsed
:QUANTITY
- the total used gas by all transactions in this block.timestamp
:QUANTITY
- the unix timestamp for when the block was collated.transactions
:Array
- Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.uncles
:Array
- Array of uncle hashes.
eth_getBlockTransactionCountByHash
Returns the number of transactions in a block from a block matching the given block hash.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x8"
}
SpecificationView Specification
Parameters
DATA
, 32 Bytes - hash of a block
Response
QUANTITY
- integer of the number of transactions in this block.
eth_getBlockTransactionCountByNumber
Returns the number of transactions in a block matching the given block number.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x8"
}
SpecificationView Specification
Parameters
QUANTITY|TAG
- integer of a block number, or the string"earliest"
,"latest"
or"pending"
, as in the default block parameter.
Response
QUANTITY
- integer of the number of transactions in this block.
eth_getUncleCountByBlockHash
Returns the number of uncles in a block from a block matching the given block hash.
{
"jsonrpc": "2.0",
"id": 0,
"result": "0x0"
}
SpecificationView Specification
Parameters
DATA
, 32 Bytes - hash of a block
Response
QUANTITY
- integer of the number of uncles in this block.
eth_getUncleCountByBlockNumber
Returns the number of uncles in a block from a block matching the given block number.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0"
}
SpecificationView Specification
Parameters
QUANTITY|TAG
- integer of a block number, or the string "latest", "earliest" or "pending", see the default block parameter
Response
QUANTITY
- integer of the number of uncles in this block.
eth_getUncleByBlockHashAndIndex
Returns information about a uncle of a block by hash and uncle index position.
{
"jsonrpc": "2.0",
"id": 1,
"result": null
}
SpecificationView Specification
Parameters
DATA
, 32 Bytes - The hash of a block.QUANTITY
- The uncle's index position.
Response
Object
- A block object, or null
when no block was found:
number
:QUANTITY
- the block number.null
when its pending block.hash
:DATA
, 32 Bytes - hash of the block.null
when its pending block.parentHash
:DATA
, 32 Bytes - hash of the parent block.nonce
:DATA
, 8 Bytes - hash of the generated proof-of-work.null
when its pending block.sha3Uncles
:DATA
, 32 Bytes - SHA3 of the uncles data in the block.logsBloom
:DATA
, 256 Bytes - the bloom filter for the logs of the block.null
when its pending block.transactionsRoot
:DATA
, 32 Bytes - the root of the transaction trie of the block.stateRoot
:DATA
, 32 Bytes - the root of the final state trie of the block.receiptsRoot
:DATA
, 32 Bytes - the root of the receipts trie of the block.miner
:DATA
, 20 Bytes - the address of the beneficiary to whom the mining rewards were given.difficulty
:QUANTITY
- integer of the difficulty for this block.totalDifficulty
:QUANTITY
- integer of the total difficulty of the chain until this block.extraData
:DATA
- the "extra data" field of this block.size
:QUANTITY
- integer the size of this block in bytes.gasLimit
:QUANTITY
- the maximum gas allowed in this block.gasUsed
:QUANTITY
- the total used gas by all transactions in this block.timestamp
:QUANTITY
- the unix timestamp for when the block was collated.transactions
:Array
- Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.uncles
:Array
- Array of uncle hashes.Returns information about a block by hash. Note: An uncle doesn't contain individual transactions.
eth_getUncleByBlockNumberAndIndex
Returns information about a uncle of a block by number and uncle index position.
{
"jsonrpc": "2.0",
"id": 1,
"result": null
}
SpecificationView Specification
Parameters
QUANTITY|TAG
- a block number, or the string"earliest"
,"latest"
or"pending"
, as in the default block parameterQUANTITY
- the uncle's index position.
Response
Object
- A block object, or null
when no block was found:
number
:QUANTITY
- the block number.null
when its pending block.hash
:DATA
, 32 Bytes - hash of the block.null
when its pending block.parentHash
:DATA
, 32 Bytes - hash of the parent block.nonce
:DATA
, 8 Bytes - hash of the generated proof-of-work.null
when its pending block.sha3Uncles
:DATA
, 32 Bytes - SHA3 of the uncles data in the block.logsBloom
:DATA
, 256 Bytes - the bloom filter for the logs of the block.null
when its pending block.transactionsRoot
:DATA
, 32 Bytes - the root of the transaction trie of the block.stateRoot
:DATA
, 32 Bytes - the root of the final state trie of the block.receiptsRoot
:DATA
, 32 Bytes - the root of the receipts trie of the block.miner
:DATA
, 20 Bytes - the address of the beneficiary to whom the mining rewards were given.difficulty
:QUANTITY
- integer of the difficulty for this block.totalDifficulty
:QUANTITY
- integer of the total difficulty of the chain until this block.extraData
:DATA
- the "extra data" field of this block.size
:QUANTITY
- integer the size of this block in bytes.gasLimit
:QUANTITY
- the maximum gas allowed in this block.gasUsed
:QUANTITY
- the total used gas by all transactions in this block.timestamp
:QUANTITY
- the unix timestamp for when the block was collated.transactions
:Array
- Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.uncles
:Array
- Array of uncle hashes.Returns information about a block by hash. Note: An uncle doesn't contain individual transactions.
eth_chainId
Returns the chain ID of the current network.
{
"jsonrpc": "2.0",
"id": 0,
"result": "0xfa"
}
SpecificationView Specification
Parameters
none
Response
quantity
- EIP155 Chain ID.
eth_syncing
Returns an object with data about the sync status or false
.
{
"jsonrpc": "2.0",
"id": 1,
"result": false
}
SpecificationView Specification
Parameters
None
Response
Object|Boolean
, An object with sync status data or FALSE
, when not syncing:
startingBlock
:QUANTITY
- The block at which the import started (will only be reset, after the sync reached his head)currentBlock
:QUANTITY
- The current block, same as eth_blockNumberhighestBlock
:QUANTITY
- The estimated highest block
eth_coinbase
Returns the client coinbase address.
{
"jsonrpc": "2.0",
"id": 64,
"result": "0x0000000000000000000000000000000000000000"
}
SpecificationView Specification
Parameters
None
Response
DATA, 20 bytes - the current coinbase address.
eth_accounts
Returns a list of addresses owned by client.
{
"jsonrpc": "2.0",
"id": 1,
"result": []
}
SpecificationView Specification
Parameters
None
Response
Array of DATA, 20 Bytes - addresses owned by the client.
eth_blockNumber
Returns the number of most recent block.
{
"jsonrpc": "2.0",
"id": 83,
"result": "0x28b3bdd"
}
SpecificationView Specification
Parameters
None
Response
QUANTITY
- integer of the current block number the client is on.
eth_call
Executes a new message call immediately without creating a transaction on the block chain.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x"
}
SpecificationView Specification
Parameters
Object
- The transaction call object
from
:DATA
, 20 Bytes - (optional) The address the transaction is sent from.to
:DATA
, 20 Bytes - The address the transaction is directed to.gas
:QUANTITY
- (optional) Integer of the gas provided for the transaction execution. eth_call consumes zero gas, but this parameter may be needed by some executions.gasPrice
:QUANTITY
- (optional) Integer of the gasPrice used for each paid gasvalue
:QUANTITY
- (optional) Integer of the value sent with this transactiondata
:DATA
- (optional) Hash of the method signature and encoded parameters. For details see Ethereum Contract ABI in the Solidity documentation
QUANTITY|TAG
- integer block number, or the string"latest"
,"earliest"
or"pending"
, see the default block parameter
Response
DATA
- the return value of executed contract.
eth_estimateGas
Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain. Note that the estimate may be significantly more than the amount of gas actually used by the transaction, for a variety of reasons including EVM mechanics and node performance.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x5208"
}
SpecificationView Specification
Parameters
See eth_call parameters, expect that all properties are optional. If no gas limit is specified geth uses the block gas limit from the pending block as an upper bound. As a result the returned estimate might not be enough to executed the call/transaction when the amount of gas is higher than the pending block gas limit.
Response
QUANTITY
- the amount of gas used.
eth_gasPrice
Returns the current price per gas in wei.
{
"jsonrpc": "2.0",
"id": 73,
"result": "0x24ca4c045"
}
SpecificationView Specification
Parameters
None
Response
QUANTITY
- integer of the current gas price in wei.
eth_feeHistory
Returns the transaction fee history.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"oldestBlock": "0x28b3c8a",
"reward": [
[
"0x182758cef",
"0x1f1a9cc80"
],
[
"0x182758cef",
"0x1f1a9cc80"
],
[
"0x182758cef",
"0x1f1a9cc80"
],
[
"0x182758cef",
"0x1f1a9cc80"
]
],
"baseFeePerGas": [
"0xa98fb0e6",
"0xa98fb0e6",
"0xa98fb0e6",
"0xa98fb0e6"
],
"gasUsedRatio": [
0.99,
0.99,
0.99,
0.99
]
}
}
SpecificationView Specification
Parameters
BLOCKCOUNT
- Number of blocks in the requested range. 1 ~ 1024 blocks can be requested in a single query. Less than requested may be returned if not all blocks are available.
NEWESTBLOCK
- Highest number of blocks in the requested range.
REWARDPERCENTILES
- (optional) Percentage values between 0 and 100, sampled in ascending order.
Response
OLDESTBLOCK
- Smallest number block of the returned range.
BASEFEEPERGAS
- An array of block base fees per gas. This includes the next block after the newest of the returned range, because this value can be derived from the newest block. Zeroes are returned for pre-EIP-1559 blocks.
GASUSEDRATIO
- An array of gas usage. Which is calculated as the ratio of gasUsed and gasLimit.
REWARD
- (Optional) An array of effective priority fee per gas data points from a single block. All zeroes are returned if the block is empty.
eth_newFilter
Creates a filter object, based on filter options, to notify when the state changes (logs).
{
"jsonrpc": "2.0",
"id": 0,
"result": "0x5af88426fcfda59f156b16a551b8accc"
}
SpecificationView Specification
To check if the state has changed, call eth_getFilterChanges. A note on specifying topic filters: Topics are order-dependent. A transaction with a log with topics [A, B] will be matched by the following topic filters:
[]
"anything"[A]
"A in first position (and anything after)"[null, B]
"anything in first position AND B in second position (and anything after)"[A, B]
"A in first position AND B in second position (and anything after)"[[A, B], [A, B]]
"(A OR B) in first position AND (A OR B) in second position (and anything after)"-
Parameters
Object
- The filter options:
fromBlock
:QUANTITY|TAG
- (optional, default:"latest"
) Integer block number, or"latest"
for the last mined block or"pending"
,"earliest"
for not yet mined transactions.toBlock
:QUANTITY|TAG
- (optional, default:"latest"
) Integer block number, or"latest"
for the last mined block or"pending"
,"earliest"
for not yet mined transactions.address
:DATA|Array
, 20 Bytes - (optional) Contract address or a list of addresses from which logs should originate.topics
:Array of DATA
, - (optional) Array of 32 BytesDATA
topics. Topics are order-dependent. Each topic can also be an array of DATA with "or" options.
Response
QUANTITY
- A filter id.
eth_newBlockFilter
Creates a filter in the node, to notify when a new block arrives.
{
"jsonrpc": "2.0",
"id": 73,
"result": "0xf15721759c3996c25f45c3120fd7ae9a"
}
SpecificationView Specification
To check if the state has changed, call eth_getFilterChanges.
Parameters
None
Response
QUANTITY
- A filter id.
eth_newPendingTransactionFilter
Creates a filter in the node, to notify when new pending transactions arrive.
{
"jsonrpc": "2.0",
"id": 73,
"result": "0x27d030b2e2bd6b9b7c7a2cead35ba103"
}
SpecificationView Specification
To check if the state has changed, call eth_getFilterChanges.
Parameters
None
Response
QUANTITY
- A filter id.
eth_uninstallFilter
Uninstalls a filter with given id. Should always be called when watch is no longer needed. Additionally Filters timeout when they aren't requested with eth_getFilterChanges for a period of time.
{
"jsonrpc": "2.0",
"id": 73,
"result": true
}
SpecificationView Specification
Parameters
QUANTITY
- The filter id.
Response
Boolean
- true
if the filter was successfully uninstalled, otherwise false
.
eth_getFilterChanges
Polling method for a filter, which returns an array of logs which occurred since last poll.
{
"jsonrpc": "2.0",
"id": 73,
"result": [
"0x00021c790000008ad6d2c7ca27b065229650904f767d37f5d062567d52a5a6a4",
"0x00021c79000000a62a5accf8dbea30030916f6ce72e3bc6bd2394d1877155fca",
"0x00021c7900000392ce7d90e28340a2ec976958fdcfc4426f19a300ffecf16841"
]
}
SpecificationView Specification
Parameters
QUANTITY
- the filter id.
Response
Array
- Array of log objects, or an empty array if nothing has changed since last poll.
- For filters created with
eth_newBlockFilter
the return are block hashes (DATA
, 32 Bytes), e.g.["0x3454645634534..."]
. - For filters created with
eth_newPendingTransactionFilter
the return are transaction hashes (DATA
, 32 Bytes), e.g.["0x6345343454645..."]
. - For filters created with
eth_newFilter
logs are objects with following params:removed
:TAG
-true
when the log was removed, due to a chain reorganization.false
if its a valid log.logIndex
:QUANTITY
- integer of the log index position in the block.null
when its pending log.transactionIndex
:QUANTITY
- integer of the transactions index position log was created from.null
when its pending log.transactionHash
:DATA
, 32 Bytes - hash of the transactions this log was created from.null
when its pending log.blockHash
:DATA
, 32 Bytes - hash of the block where this log was in.null
when its pending.null
when its pending log.blockNumber
:QUANTITY
- the block number where this log was in.null
when its pending.null
when its pending log.address
:DATA
, 20 Bytes - address from which this log originated.data
:DATA
- contains one or more 32 Bytes non-indexed arguments of the log.topics
:Array of DATA
- Array of 0 to 4 32 BytesDATA
of indexed log arguments. (In solidity: The first topic is the hash of the signature of the event (e.g.Deposit(address,bytes32,uint256)
), except you declared the event with theanonymous
specifier.)
eth_getFilterLogs
Returns an array of all logs matching filter with given id.
{
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"logIndex": "0x1",
"blockNumber": "0x1b4",
"blockHash": "0x8216c5785ac562ff41e2dcfdf5785ac562ff41e2dcfdf829c5a142f1fccd7d",
"transactionHash": "0xdf829c5a142f1fccd7d8216c5785ac562ff41e2dcfdf5785ac562ff41e2dcf",
"transactionIndex": "0x0",
"address": "0x16c5785ac562ff41e2dcfdf829c5a142f1fccd7d",
"data": "0x0000000000000000000000000000000000000000000000000000000000000000",
"topics": [
"0x59ebeb90bc63057b6515673c3ecf9438e5058bca0f92585014eced636878c9a5"
]
}
]
}
SpecificationView Specification
Parameters
QUANTITY
- The filter id.`
Response
Array
- Array of log objects, or an empty array if nothing has changed since last poll.
- For filters created with
eth_newBlockFilter
the return are block hashes (DATA
, 32 Bytes), e.g.["0x3454645634534..."]
. - For filters created with
eth_newPendingTransactionFilter
the return are transaction hashes (DATA
, 32 Bytes), e.g.["0x6345343454645..."]
. - For filters created with
eth_newFilter
logs are objects with following params:removed
:TAG
-true
when the log was removed, due to a chain reorganization.false
if its a valid log.logIndex
:QUANTITY
- integer of the log index position in the block.null
when its pending log.transactionIndex
:QUANTITY
- integer of the transactions index position log was created from.null
when its pending log.transactionHash
:DATA
, 32 Bytes - hash of the transactions this log was created from.null
when its pending log.blockHash
:DATA
, 32 Bytes - hash of the block where this log was in.null
when its pending.null
when its pending log.blockNumber
:QUANTITY
- the block number where this log was in.null
when its pending.null
when its pending log.address
:DATA
, 20 Bytes - address from which this log originated.data
:DATA
- contains one or more 32 Bytes non-indexed arguments of the log.topics
:Array of DATA
- Array of 0 to 4 32 BytesDATA
of indexed log arguments. (In solidity: The first topic is the hash of the signature of the event (e.g.Deposit(address,bytes32,uint256)
), except you declared the event with theanonymous
specifier.)
eth_getLogs
Returns an array of all logs matching a given filter object.
{
"jsonrpc": "2.0",
"id": 0,
"result": [
{
"address": "0x49c290ff692149a4e16611c694fded42c954ab7a",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x000000000000000000000000ac0fa95058616d7539b6eecb6418a68e7c18a746",
"0x000000000000000000000000d0ad79e5acc51afdf4693d8304f40a1a221abe9e"
],
"data": "0x000000000000000000000000000000000000000000000000001919b51f5bfc9e",
"blockNumber": "0x28b3c23",
"transactionHash": "0x2e9a97b1d6ecf2e95902258f997f02e738e1cba6c27b8bd0d9964ac4f942067a",
"transactionIndex": "0x1",
"blockHash": "0x0002079d000006a2aa0f0a9f65e909800cea82623069e58145ed0cf83778d4f3",
"logIndex": "0x0",
"removed": false
}
]
}
SpecificationView Specification
Parameters
Object
- The filter options:
fromBlock
:QUANTITY|TAG
- (optional, default:"latest"
) Integer block number, or"latest"
for the last mined block or"pending"
,"earliest"
for not yet mined transactions.toBlock
:QUANTITY|TAG
- (optional, default:"latest"
) Integer block number, or"latest"
for the last mined block or"pending"
,"earliest"
for not yet mined transactions.address
:DATA|Array
, 20 Bytes - (optional) Contract address or a list of addresses from which logs should originate.topics
:Array of DATA
, - (optional) Array of 32 BytesDATA
topics. Topics are order-dependent. Each topic can also be an array of DATA with "or" options.blockhash
:DATA
, 32 Bytes - (optional, future) With the addition of EIP-234,blockHash
will be a new filter option which restricts the logs returned to the single block with the 32-byte hashblockHash
. UsingblockHash
is equivalent tofromBlock
=toBlock
= the block number with hashblockHash
. IfblockHash
is present in in the filter criteria, then neitherfromBlock
nortoBlock
are allowed.
Response
Array
- Array of log objects, or an empty array if nothing has changed since last poll.
- For filters created with
eth_newBlockFilter
the return are block hashes (DATA
, 32 Bytes), e.g.["0x3454645634534..."]
. - For filters created with
eth_newPendingTransactionFilter
the return are transaction hashes (DATA
, 32 Bytes), e.g.["0x6345343454645..."]
. - For filters created with
eth_newFilter
logs are objects with following params:removed
:TAG
-true
when the log was removed, due to a chain reorganization.false
if its a valid log.logIndex
:QUANTITY
- integer of the log index position in the block.null
when its pending log.transactionIndex
:QUANTITY
- integer of the transactions index position log was created from.null
when its pending log.transactionHash
:DATA
, 32 Bytes - hash of the transactions this log was created from.null
when its pending log.blockHash
:DATA
, 32 Bytes - hash of the block where this log was in.null
when its pending.null
when its pending log.blockNumber
:QUANTITY
- the block number where this log was in.null
when its pending.null
when its pending log.address
:DATA
, 20 Bytes - address from which this log originated.data
:DATA
- contains one or more 32 Bytes non-indexed arguments of the log.topics
:Array of DATA
- Array of 0 to 4 32 BytesDATA
of indexed log arguments. (In solidity: The first topic is the hash of the signature of the event (e.g.Deposit(address,bytes32,uint256)
), except you declared the event with theanonymous
specifier.)
eth_hashrate
Returns the number of hashes per second that the node is mining with.
{
"jsonrpc": "2.0",
"id": 71,
"result": "0x0"
}
SpecificationView Specification
Parameters
None
Response
QUANTITY
- number of hashes per second.
eth_sign
The sign method calculates an Ethereum specific signature with: sign(keccak256("\x19Ethereum Signed Message:\n" + len(message) + message)))
.
{
"id": 1,
"jsonrpc": "2.0",
"result": "0xa3f20717a250c2b0b729b7e5becbff67fdaef7e0699da4de7ca5895b02a170a12d887fd3b17bfdce3481f10bea41f45ba9f709d39ce8325427b57afcfc994cee1b"
}
SpecificationView Specification
By adding a prefix to the message makes the calculated signature recognizable as an Ethereum specific signature. This prevents misuse where a malicious dapp can sign arbitrary data (e.g. transaction) and use the signature to impersonate the victim. Note: the address to sign with must be unlocked.
Parameters
DATA
, 20 Bytes - addressDATA
, N Bytes - message to sign
Response
DATA
: Signature
eth_signTransaction
Signs a transaction that can be submitted to the network at a later time using with eth_sendRawTransaction.
{
"id": 1,
"jsonrpc": "2.0",
"result": "0xa3f20717a250c2b0b729b7e5becbff67fdaef7e0699da4de7ca5895b02a170a12d887fd3b17bfdce3481f10bea41f45ba9f709d39ce8325427b57afcfc994cee1b"
}
SpecificationView Specification
Parameters
Object
- The transaction object
from
:DATA
, 20 Bytes - The address the transaction is sent from.to
:DATA
, 20 Bytes - (optional when creating new contract) The address the transaction is directed to.gas
:QUANTITY
- (optional, default: 90000) Integer of the gas provided for the transaction execution. It will return unused gas.gasPrice
:QUANTITY
- (optional, default: To-Be-Determined) Integer of the gasPrice used for each paid gas, in Wei.value
:QUANTITY
- (optional) Integer of the value sent with this transaction, in Wei.data
:DATA
- The compiled code of a contract OR the hash of the invoked method signature and encoded parameters.nonce
:QUANTITY
- (optional) Integer of a nonce. This allows to overwrite your own pending transactions that use the same nonce.
Response
DATA
, The signed transaction object.
eth_getBalance
Returns the balance of the account of given address.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xbe23eb8b535c8d486b39f"
}
SpecificationView Specification
Parameters
DATA
, 20 Bytes - address to check for balance.QUANTITY|TAG
- integer block number, or the string"latest"
,"earliest"
or"pending"
, see the default block parameter
Response
QUANTITY
- integer of the current balance in wei.
eth_getStorageAt
Returns the value from a storage position at a given address.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
SpecificationView Specification
Parameters
DATA
, 20 Bytes - address of the storage.QUANTITY
- integer of the position in the storage.QUANTITY|TAG
- integer block number, or the string"latest"
,"earliest"
or"pending"
Response
DATA
- the value at this storage position.
eth_getTransactionCount
Returns the number of transactions sent from an address.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xda4bd"
}
SpecificationView Specification
Parameters
DATA
, 20 Bytes - address.QUANTITY|TAG
- integer block number, or the string"latest"
,"earliest"
or"pending"
Response
QUANTITY
- integer of the number of transactions send from this address.
eth_getCode
Returns code at a given address.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x"
}
SpecificationView Specification
Parameters
DATA
, 20 Bytes - addressQUANTITY|TAG
- integer block number, or the string"latest"
,"earliest"
or"pending"
Response
DATA
- the code from the given address.
eth_sendTransaction
Creates new message call transaction or a contract creation, if the data field contains code.
{
"id": 1,
"jsonrpc": "2.0",
"result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
}
SpecificationView Specification
Parameters
Object
- The transaction object
from
:DATA
, 20 Bytes - The address the transaction is sent from.to
:DATA
, 20 Bytes - (optional when creating new contract) The address the transaction is directed to.gas
:QUANTITY
- (optional, default: 90000) Integer of the gas provided for the transaction execution. It will return unused gas.gasPrice
:QUANTITY
- (optional, default: To-Be-Determined) Integer of the gasPrice used for each paid gas.value
:QUANTITY
- (optional) Integer of the value sent with this transaction.data
:DATA
- The compiled code of a contract OR the hash of the invoked method signature and encoded parameters.nonce
:QUANTITY
- (optional) Integer of a nonce. This allows to overwrite your own pending transactions that use the same nonce.
Response
DATA
, 32 Bytes - the transaction hash, or the zero hash if the transaction is not yet available.
Use eth_getTransactionReceipt to get the contract address, after the transaction was mined, when you created a contract.
eth_sendRawTransaction
Creates new message call transaction or a contract creation for signed transactions.
{
"id": 1,
"jsonrpc": "2.0",
"result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
}
SpecificationView Specification
Parameters
DATA
, The signed transaction data.
Response
DATA
, 32 Bytes - the transaction hash, or the zero hash if the transaction is not yet available.
Use eth_getTransactionReceipt to get the contract address, after the transaction was mined, when you created a contract.
eth_getTransactionByHash
Returns the information about a transaction requested by transaction hash.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x000205ed0000052d3fca34940e4a5e9f2077cf8376cc3bd40c736c5a097afb05",
"blockNumber": "0x289c986",
"from": "0xebf4fbb9c81b84dd5cf89bc75588e5d0018501b3",
"gas": "0x186a0",
"gasPrice": "0xe6a68478",
"hash": "0xc42f865fc3fa2cd1478e1c231493a0f1f64b74240c4f86b8628d39de76d5f3a2",
"input": "0x",
"nonce": "0xda055",
"to": "0x63768b35160bb166eff044045aec8dc419923724",
"transactionIndex": "0x2",
"value": "0xde0b6b3a76400000",
"type": "0x0",
"v": "0x218",
"r": "0x8ea4b2bb4096b1bb3fd98af6337c67ff5e26c41ca2e85b02992e97b10db5fc7a",
"s": "0x6e0821c57544a2e25363e905714de8fd01fe9df624f249c06783faee64ce7cc0"
}
}
SpecificationView Specification
Parameters
DATA
, 32 Bytes - hash of a transaction
Response
Object
- A transaction object, or null
when no transaction was found:
blockHash
:DATA
, 32 Bytes - hash of the block where this transaction was in.null
when its pending.blockNumber
:QUANTITY
- block number where this transaction was in.null
when its pending.from
:DATA
, 20 Bytes - address of the sender.gas
:QUANTITY
- gas provided by the sender.gasPrice
:QUANTITY
- gas price provided by the sender in Wei.hash
:DATA
, 32 Bytes - hash of the transaction.input
:DATA
- the data send along with the transaction.nonce
:QUANTITY
- the number of transactions made by the sender prior to this one.to
:DATA
, 20 Bytes - address of the receiver.null
when its a contract creation transaction.transactionIndex
:QUANTITY
- integer of the transactions index position in the block.null
when its pending.value
:QUANTITY
- value transferred in Wei.v
:QUANTITY
- ECDSA recovery idr
:QUANTITY
- ECDSA signature rs
:QUANTITY
- ECDSA signature s
eth_getTransactionByBlockHashAndIndex
Returns information about a transaction by block hash and transaction index position.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x000205e0000001f07b3da5c29ebe91fb149afcdf252bcf0aa1922513067ec26d",
"blockNumber": "0x289bf01",
"from": "0x0d50f86b3b1f51be88712ebfa0a5f9217c8fa08c",
"gas": "0x1e8480",
"gasPrice": "0xbfad36bf",
"hash": "0x43a1d16687af3830cab3ddfa3f7ccc6c468579708ec44436776110a664bc999b",
"input": "0x000005017a656b342e14f745e2b164890e88017e27ae7320dc301622e621166bd8e82f2ca0a26c13ad0be355020002007ed0cddb9bb6c6dfea6fb63e117c8305479b8d7d21be370d5312f44cb42ce377bc9b8a0cef1a4c8326f200000061983225502f76e12315a1d84fdfee51ed1ad3f559c6606ed2af925f270733e378d6af7829b5b3cf26fc000000c6a39463dd3c3c39f736c51d81f044b2e718843321be370d5312f44cb42ce377bc9b8a0cef1a4c8326fc0000002b4c76d0dc16be1c31d4c1dc53bf9b45987fc75c04068da6c83afcfa0e13ba15a6696662335d5b7526fc000000000000000000000000000002fb65b00000000000000000000000000000000000",
"nonce": "0x143c",
"to": "0x0000000000085a12481aedb59eb3200332aca597",
"transactionIndex": "0x0",
"value": "0x0",
"type": "0x0",
"v": "0x217",
"r": "0x25cb27fc513e38f095b93b3f839317c2827a2c7fc3c5c152171897e2726ef3e3",
"s": "0x1159d589e74cc1066a864c552ea6a60f2a835a920313168e1cd0aa6d4e426bc9"
}
}
SpecificationView Specification
Parameters
DATA
, 32 Bytes - hash of a block.QUANTITY
- integer of the transaction index position.
Response
Object
- A transaction object, or null
when no transaction was found:
blockHash
:DATA
, 32 Bytes - hash of the block where this transaction was in.null
when its pending.blockNumber
:QUANTITY
- block number where this transaction was in.null
when its pending.from
:DATA
, 20 Bytes - address of the sender.gas
:QUANTITY
- gas provided by the sender.gasPrice
:QUANTITY
- gas price provided by the sender in Wei.hash
:DATA
, 32 Bytes - hash of the transaction.input
:DATA
- the data send along with the transaction.nonce
:QUANTITY
- the number of transactions made by the sender prior to this one.to
:DATA
, 20 Bytes - address of the receiver.null
when its a contract creation transaction.transactionIndex
:QUANTITY
- integer of the transactions index position in the block.null
when its pending.value
:QUANTITY
- value transferred in Wei.v
:QUANTITY
- ECDSA recovery idr
:QUANTITY
- ECDSA signature rs
:QUANTITY
- ECDSA signature s
eth_getTransactionByBlockNumberAndIndex
Returns information about a transaction by block number and transaction index position.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x000205e0000001f07b3da5c29ebe91fb149afcdf252bcf0aa1922513067ec26d",
"blockNumber": "0x289bf01",
"from": "0x0d50f86b3b1f51be88712ebfa0a5f9217c8fa08c",
"gas": "0x1e8480",
"gasPrice": "0xbfad36bf",
"hash": "0x43a1d16687af3830cab3ddfa3f7ccc6c468579708ec44436776110a664bc999b",
"input": "0x000005017a656b342e14f745e2b164890e88017e27ae7320dc301622e621166bd8e82f2ca0a26c13ad0be355020002007ed0cddb9bb6c6dfea6fb63e117c8305479b8d7d21be370d5312f44cb42ce377bc9b8a0cef1a4c8326f200000061983225502f76e12315a1d84fdfee51ed1ad3f559c6606ed2af925f270733e378d6af7829b5b3cf26fc000000c6a39463dd3c3c39f736c51d81f044b2e718843321be370d5312f44cb42ce377bc9b8a0cef1a4c8326fc0000002b4c76d0dc16be1c31d4c1dc53bf9b45987fc75c04068da6c83afcfa0e13ba15a6696662335d5b7526fc000000000000000000000000000002fb65b00000000000000000000000000000000000",
"nonce": "0x143c",
"to": "0x0000000000085a12481aedb59eb3200332aca597",
"transactionIndex": "0x0",
"value": "0x0",
"type": "0x0",
"v": "0x217",
"r": "0x25cb27fc513e38f095b93b3f839317c2827a2c7fc3c5c152171897e2726ef3e3",
"s": "0x1159d589e74cc1066a864c552ea6a60f2a835a920313168e1cd0aa6d4e426bc9"
}
}
SpecificationView Specification
Parameters
QUANTITY|TAG
- a block number, or the string"earliest"
,"latest"
or"pending"
, as in the default block parameterQUANTITY
- the transaction index position.
Response
Object
- A transaction object, or null
when no transaction was found:
blockHash
:DATA
, 32 Bytes - hash of the block where this transaction was in.null
when its pending.blockNumber
:QUANTITY
- block number where this transaction was in.null
when its pending.from
:DATA
, 20 Bytes - address of the sender.gas
:QUANTITY
- gas provided by the sender.gasPrice
:QUANTITY
- gas price provided by the sender in Wei.hash
:DATA
, 32 Bytes - hash of the transaction.input
:DATA
- the data send along with the transaction.nonce
:QUANTITY
- the number of transactions made by the sender prior to this one.to
:DATA
, 20 Bytes - address of the receiver.null
when its a contract creation transaction.transactionIndex
:QUANTITY
- integer of the transactions index position in the block.null
when its pending.value
:QUANTITY
- value transferred in Wei.v
:QUANTITY
- ECDSA recovery idr
:QUANTITY
- ECDSA signature rs
:QUANTITY
- ECDSA signature s
eth_getTransactionReceipt
Returns the receipt of a transaction by transaction hash.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x000205ed0000052d3fca34940e4a5e9f2077cf8376cc3bd40c736c5a097afb05",
"blockNumber": "0x289c986",
"contractAddress": null,
"cumulativeGasUsed": "0x11888d",
"effectiveGasPrice": "0xe6a68478",
"from": "0xebf4fbb9c81b84dd5cf89bc75588e5d0018501b3",
"gasUsed": "0x70e4",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "0x1",
"to": "0x63768b35160bb166eff044045aec8dc419923724",
"transactionHash": "0xc42f865fc3fa2cd1478e1c231493a0f1f64b74240c4f86b8628d39de76d5f3a2",
"transactionIndex": "0x2",
"type": "0x0"
}
}
SpecificationView Specification
Note That the receipt is not available for pending transactions.
Parameters
DATA
, 32 Bytes - hash of a transaction
Response
Object
- A transaction receipt object, or null
when no receipt was found:
transactionHash
:DATA
, 32 Bytes - hash of the transaction.transactionIndex
:QUANTITY
- integer of the transactions index position in the block.blockHash
:DATA
, 32 Bytes - hash of the block where this transaction was in.blockNumber
:QUANTITY
- block number where this transaction was in.from
:DATA
, 20 Bytes - address of the sender.to
:DATA
, 20 Bytes - address of the receiver. null when its a contract creation transaction.cumulativeGasUsed
:QUANTITY
- The total amount of gas used when this transaction was executed in the block.gasUsed
:QUANTITY
- The amount of gas used by this specific transaction alone.contractAddress
:DATA
, 20 Bytes - The contract address created, if the transaction was a contract creation, otherwisenull
.logs
:Array
- Array of log objects, which this transaction generated.logsBloom
:DATA
, 256 Bytes - Bloom filter for light clients to quickly retrieve related logs. It also returns either :root
:DATA
32 bytes of post-transaction stateroot (pre Byzantium)status
:QUANTITY
either1
(success) or0
(failure)
eth_getProof
Returns the account- and storage-values of the specified account including the Merkle-proof.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"address": "0x49d6021b493cb6f1c5e6527beae9854a3314d2c0",
"accountProof": [
"0xf90211a03dc778cd930e270385d7f83731cccab4f3a20b47dbfe8cb90d250628de42e398a0d732c7b42daa285e279c5b86b9322bf5c956169a36c734ab2becd8e3296c42a5a0ac88734ca7bafe634e14dc2973411d411235a619da5971968edf5c585683c529a019d740d5c1c6b7dfd754da62b090f500907b13ef3419ae4f17865121e930f882a079a5e2192c74e37512009487e278623dd71f74a5fa584ee80c200da3516b0609a01521f1cfe1fd28b3abe772b76b0c3d9e0eac78dfda25f63a0f2f6fb405d433dfa026300a8b9262026369fb2a8199941cf34b05e6e7df5918375c29d7a9108efa31a0486783ff598d9377ea8773e722b9fdda4f0b18d40fe89cc96cc55f6d3414b68fa0aaac027792034e21fce3a10ef25f2d60a52600200330b8c2d40ee4812a72b73da00a8bf1c6c781c046d623ddfc6ed5d3444266aabc19d6480f7f04d93fa26cc608a0c986ac5796bc04aa4817de03b58f9d8ac5391a61d1df1705aa027f890a52e5d3a030acd31dec620704d04f5427547bc8afe96d430f921abaf43c29118677310edfa08b9750a2f6bde95ae2a399b3ef869f67f6f52e76a7374a2a2a796cf5860bfbb3a0500f66e3cac6d1e626988061fac4d20c2dd3195d032b58b94702e9e1317ce5a7a06cc56c7066600fc8ea50fb1f2b730d917fd8991e78386f484da281532891b44ca0a5d9329eb52e846ab1b326e67baa546272a379a574d6c61c00ea7161c77977e880",
"0xf90211a0387ca5457b6d27d41ec8933f0a56b7d4cc630e2e49e04d00c5a0b5ba1801fcf9a0aaa9088f1bdf03cee86139f7d021d743cebad426462a848c80cec9c401b7b9c0a043eea8c4e077dc6c2677fca1598325b00c0ddb5c2ccc9e8d87db56f1a05b0e6da00261a78e5173d6dc94e3e24371606322cfbdc532ac259b302b71b66110f4f394a0e0a6d6f80a384a0eea66b0bd16b59ab7375949e7d09af6c89ff439abce19d323a0cb02df051aed7c7f67106b5137cf4a3966ff1eaabee54bab1ccfd697df23db08a03eaf1d733fb3dd88b641014ad885f3bc7472e9f9c78e52d78f9c1933e440b389a06991958e41b55951b8dcf9b27a7c67d551dd3a92b3a4a439992c319fba7897aca087628dbca203bcfc65ce8c0acd313957bbad854ba665d44b490d14a5a3265eeca0ad616278886f00e245e3ba481bbf31a0954b36a06646f95a4aa0c9d1afe550e3a0c228d3f4863a2ea572d248b0c2faa5cdbbcbb34362565c4d9aa7e388f43398c2a092ee7ce53cb36862a409cb0ff63fb4438adf45bc6a57847f28888acd9d80c73da074bf2ef5c3791f2056a717f3c5c00cdadb9d4489d93c0aebbcf8753e6c4058e0a0a57f34ac41bf5ade9cad49419e97e8b0cea1bff2460c19ad8a97b15f4b8dd25ea0b5c657f9f4fac487bc296dfd56dbcb2e2d51374b7eb5cedfa5b4951118a3ebfba0cd7b021d0fe4220918b2dc47ea956d355958975ce3b2c37bbc5c02a9419935e080",
"0xf90211a05c435acebfee1a952f957634fe4b819340c40a555e148fa231e5a2174d3e70d9a0bc8b9cf4c4a8e2ccdb27c689e6d37af8dadea542cb71809186af9c5bd13e7e41a03e6adb8115d5d01338439639b27e69a4225d1f8e24e8026960165374939b3c48a01ffa00ef94b02c9e9dd942c521dc9969e91d01e8ae6e8d60f2753d636b7d7fd6a0b7ce007e00d1b18c69822d69f3bdde572d71daa086477901b03518d382606c44a06f9a84f3b22a80bce6dc8869d26fdffcda6ac1896c9c442ac7b43f342dca43bca0d4324b4de405f6cb89cd6b5fe641df535b64a65ba3d14f1d0a5ad7a675d5169ba06c3a9f10336d9efc12933317bd2d020215c74cc5b72d69602ef6ccfd424a2402a0cbb589860619c941c945235d9aa253d1ae06f617e626bffc908d582f8d32df2da0d047a9f096149792e4607d25c06e6621409e6abfb87cca9ffcf83f34b777842da0772359fb935c5c75ca10f5d5888a65f3f7354afe4dbd024dec0482e44c7bfed5a06c1780b06b269d62b9e2523fffc3ad60fed20d6d00a1baea71c03985e410742ea013bcb6724f2cd86f05f1eb6f8384f30fa6a00257316c90e120a3da6aba6a0dcba02ed23c7957181f4332c32e212a6dc82d31cb8c409dd8cdecbd8c3ec0817d3f8ca088205c4f214488ebf845eae3c6382c286a02720f86ba6d96d4639229ca1d0d00a02189a27b003120eb22922e6030ba8718056c9f96125f822676436e19e598341e80",
"0xf90211a086c2db491853d776ccc83134213bf07115dd26d5c0dd10d762a5b565a4b15931a0699829b4816476fe19d705f745b1bf18dfdd26a857a65be2528f7ace31ce3848a0005956f9f13073a145d45bce7c6cb6b401927eeb8116d225c860f41c3e31c1dca03f0624c0a42cf4099383ee09d27ec0c32bba3bc3cee839bda84c85a5de76cd7ba0b2c714dd2e33732b8dfea7bbd10dbc09934acd757123b21f155a9e367326809da0f892b67ccff4c8492ebeef6d627027286642fbc79007a46a87839d5b03daa039a03a8d4f17f1cbadec00e7e0b618ad82ed7ebcd0bcafe4e809f7cda27177aa51b8a049fea0319f7924aba7034c3820ad0d989ccadff61b9aa17db5d09b9dd825b3b0a08561e19853bde995ae58cfbe86444d7a7db96cdf277e717c1924ee712273d960a0fb10a42552c5d52065324103ce8e9814e2d6b9a1d990c045f04ec4c627364365a02d955b56920b083fd5b14ce00e605be3588ef59332e0bffb11d4d816991e29a6a0937977261907cfc69241bb9233676e8b8c6654accbac401d00d428ad290b4ef7a03080828e23f761dae599c5e98bb0897e462c187e5ebd5b6c56b3ac9050fc0ceda008f445d1b70173c172e755bb50da7fa1e6ed4576547923f78eb9fd3bf381c1e0a0aa30e383367155944dbfc42ed4b47d6efe715457ed6b097a62dc433c7544bb06a053f41ead06b5e071908a841f0a3c148f67d5d7702ddc4b1cfca4ac166c22afab80",
"0xf901b1a0b4c39400bfd509dbadd7766838c3240c5c2d6c7a7c187bb0dbde3d883791315aa0fbd814bbcfe8d9c23f8078d504196425e5ab3e4f79def6ff25acf6d3edb51c74a0bf2bc8faa43b5a4a586e252a6f7cd9405a518b00672ed082bc63275da0098f92808080a0fd8907690a4a4704d680b6ecb14777e3746ee35841b5a5502472ca9bd58d310aa06f3aea3ee74a7b28c75212f41879081c044f0b2497d84eb1e77238fc7517f489a0c7efe6614214b3b93305e9d0dc2ec5a92c0888156b802ecf1654a8f15afda751a0f25ad765de5d7975f37d4c1caf6c0da8834e4ceb80944b0da614c730f707df1ca09b661e47adc910d0dd76385c60edf90f2113822129826d2006021e3b5492308ba03c64ea4b70cc103c08acca89632667b278f307177fe86f98a8cad5f1f202680ca0b1651881780c73672180911df1580a5c314ef6282279323048024e5ec24a9b61a0ec11208a4a988adab7a843ca6e4d7a7cb718eb4f7c9a596f26bb19ff1d6d7ee1a0974df9b84e56537533697dd4d8d267a92a8589b1564bc9899f402bc176892b94a0b12ef092083a4ca422661c69262cbd8f6624e47421cff811e538f352ec5c57d380",
"0xf871a09b63f12f2edcd5ad10da2a0ebcd1373a5cd926b0e0bb9317239bfe1f458f4d5780a0e4d4580787b11c93d4886f6102886a62b0b8364524b6e1fe795cdc737c3a728a8080808080808080a08b1f6a8becbfb00a8d9cd90c5b60dc77155ff67c2d71a17a2dd3103d5072b3eb8080808080",
"0xf86a9e20e3423c8266784487b6559eccbcd4de8aa4ad653099e4f52f6b60099fedb849f8470183b57b95a0b1ee7c66348857af4d3d5a5ef9372d171e4bd5d9db8fbdd95a14e6c0039100b8a023b58f73a17b7c23c6bdbc5fb1ed943d236753158a3911de9d9945ee47994271"
],
"balance": "0xb57b95",
"codeHash": "0x23b58f73a17b7c23c6bdbc5fb1ed943d236753158a3911de9d9945ee47994271",
"nonce": "0x1",
"storageHash": "0xb1ee7c66348857af4d3d5a5ef9372d171e4bd5d9db8fbdd95a14e6c0039100b8",
"storageProof": [
{
"key": "0x116d980cf654169436000b7392fd9962fac7230ac8c892e9b5daa70fb5e5e2ad",
"value": "0x0",
"proof": [
"0xf838a120290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56395942bdd4646a5b30ebf9adb797f15461949f0e4bcbd"
]
}
]
}
}
SpecificationView Specification
Parameters
DATA
, 20 Bytes - address of the account.
ARRAY
, 32 Bytes - array of storage-keys which should be proofed and included. See eth_getStorageAt
QUANTITY
|TAG
- integer block number, or the string "latest" or "earliest", see the default block parameter
Response
balance
:QUANTITY
- the balance of the account. See eth_getBalancecodeHash
:DATA
, 32 Bytes - hash of the code of the account. For a simple Account without code it will return "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"nonce
:QUANTITY
, - nonce of the account. See eth_getTransactionCountstorageHash
:DATA
, 32 Bytes - SHA3 of the StorageRoot. All storage will deliver a MerkleProof starting with this rootHash.accountProof
:ARRAY
- Array of rlp-serialized MerkleTree-Nodes, starting with the stateRoot-Node, following the path of the SHA3 (address) as key.storageProof
: ARRAY - Array of storage-entries as requested. Each entry is a object with these properties:key
:QUANTITY
- the requested storage keyvalue
:QUANTITY
- the storage valueproof
:ARRAY
- Array of rlp-serialized MerkleTree-Nodes, starting with the storageHash-Node, following the path of the SHA3 (key) as path.
web3_clientVersion
Returns the current client version.
{
"jsonrpc": "2.0",
"id": 67,
"result": "go-opera/v1.1.0-txtracing-rc.5-9d04ffe9-1652780233/linux-amd64/go1.17.6"
}
SpecificationView Specification
Parameters
None
Response
String
- The current client version
web3_sha3
Returns Keccak-256 (not the standardized SHA3-256) of the given data.
{
"jsonrpc": "2.0",
"id": 64,
"result": "0x47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad"
}
SpecificationView Specification
Parameters
DATA
- the data to convert into a SHA3 hash
Response
DATA
- The SHA3 result of the given string.
net_version
Returns the current network id.
{
"jsonrpc": "2.0",
"id": 67,
"result": "250"
}
SpecificationView Specification
Parameters
None
Response
String
- The current network id.
The full list of current network IDs is available at chainlist.org. Sopme common ones are:
1
: Ethereum Mainnet
2
: Morden testnet (now deprecated)
3
: Ropsten testnet
4
: Rinkeby testnet
5
: Goerli testnet
net_listening
Returns true
if client is actively listening for network connections.
{
"jsonrpc": "2.0",
"id": 67,
"result": true
}
SpecificationView Specification
Parameters
None
Response
Boolean
- true
when listening, otherwise false
.
net_peerCount
Returns number of peers currently connected to the client.
{
"jsonrpc": "2.0",
"id": 74,
"result": "0x32"
}
SpecificationView Specification
Parameters
None
Response
QUANTITY
- integer of the number of connected peers.
debug_traceBlockByHash
The debug_traceBlockByHash
method will return a full stack trace of all invoked opcodes of all transaction that were included in this block.
{
"jsonrpc": "2.0",
"id": 0,
"result": [
{
"result": {
"type": "CALL",
"from": "0x0d50f86b3b1f51be88712ebfa0a5f9217c8fa08c",
"to": "0x0000000000085a12481aedb59eb3200332aca597",
"value": "0x0",
"gas": "0x1e2448",
"gasUsed": "0x22307",
"input": "0x000005017a656b342e14f745e2b164890e88017e27ae7320dc301622e621166bd8e82f2ca0a26c13ad0be355020002007ed0cddb9bb6c6dfea6fb63e117c8305479b8d7d21be370d5312f44cb42ce377bc9b8a0cef1a4c8326f200000061983225502f76e12315a1d84fdfee51ed1ad3f559c6606ed2af925f270733e378d6af7829b5b3cf26fc000000c6a39463dd3c3c39f736c51d81f044b2e718843321be370d5312f44cb42ce377bc9b8a0cef1a4c8326fc0000002b4c76d0dc16be1c31d4c1dc53bf9b45987fc75c04068da6c83afcfa0e13ba15a6696662335d5b7526fc000000000000000000000000000002fb65b00000000000000000000000000000000000",
"output": "0x",
"calls": [
{
"type": "DELEGATECALL",
"from": "0x0000000000085a12481aedb59eb3200332aca597",
"to": "0xd72625e8a1440f3776be7bcd5b738f6595a5750f",
"gas": "0x1da0ae",
"gasUsed": "0x217a6",
"input": "0x000005017a656b342e14f745e2b164890e88017e27ae7320dc301622e621166bd8e82f2ca0a26c13ad0be355020002007ed0cddb9bb6c6dfea6fb63e117c8305479b8d7d21be370d5312f44cb42ce377bc9b8a0cef1a4c8326f200000061983225502f76e12315a1d84fdfee51ed1ad3f559c6606ed2af925f270733e378d6af7829b5b3cf26fc000000c6a39463dd3c3c39f736c51d81f044b2e718843321be370d5312f44cb42ce377bc9b8a0cef1a4c8326fc0000002b4c76d0dc16be1c31d4c1dc53bf9b45987fc75c04068da6c83afcfa0e13ba15a6696662335d5b7526fc000000000000000000000000000002fb65b00000000000000000000000000000000000",
"output": "0x"
}
]
}
}
]
}
SpecificationView Specification
Parameters
hash
- Hash of the block to be traced.
Response
array
- Block traces, which have the following object shape (all return types are in hex values):
Response
- Trace Object, which has the following fields:
calls
- Array of transactions in the block with the following fields -from
- Addressgas
- Quantitygasused
- Quantityinput
- Dataoutput
- Datato
- Addresstype
- Datavalue
- Quantity
debug_traceBlockByNumber
The debug_traceBlockByNumber
method will return a full stack trace of all invoked opcodes of all transaction that were included in this block.
{
"jsonrpc": "2.0",
"id": 0,
"result": [
{
"result": {
"type": "CALL",
"from": "0x0d50f86b3b1f51be88712ebfa0a5f9217c8fa08c",
"to": "0x0000000000085a12481aedb59eb3200332aca597",
"value": "0x0",
"gas": "0x1e2448",
"gasUsed": "0x22307",
"input": "0x000005017a656b342e14f745e2b164890e88017e27ae7320dc301622e621166bd8e82f2ca0a26c13ad0be355020002007ed0cddb9bb6c6dfea6fb63e117c8305479b8d7d21be370d5312f44cb42ce377bc9b8a0cef1a4c8326f200000061983225502f76e12315a1d84fdfee51ed1ad3f559c6606ed2af925f270733e378d6af7829b5b3cf26fc000000c6a39463dd3c3c39f736c51d81f044b2e718843321be370d5312f44cb42ce377bc9b8a0cef1a4c8326fc0000002b4c76d0dc16be1c31d4c1dc53bf9b45987fc75c04068da6c83afcfa0e13ba15a6696662335d5b7526fc000000000000000000000000000002fb65b00000000000000000000000000000000000",
"output": "0x",
"calls": [
{
"type": "DELEGATECALL",
"from": "0x0000000000085a12481aedb59eb3200332aca597",
"to": "0xd72625e8a1440f3776be7bcd5b738f6595a5750f",
"gas": "0x1da0ae",
"gasUsed": "0x217a6",
"input": "0x000005017a656b342e14f745e2b164890e88017e27ae7320dc301622e621166bd8e82f2ca0a26c13ad0be355020002007ed0cddb9bb6c6dfea6fb63e117c8305479b8d7d21be370d5312f44cb42ce377bc9b8a0cef1a4c8326f200000061983225502f76e12315a1d84fdfee51ed1ad3f559c6606ed2af925f270733e378d6af7829b5b3cf26fc000000c6a39463dd3c3c39f736c51d81f044b2e718843321be370d5312f44cb42ce377bc9b8a0cef1a4c8326fc0000002b4c76d0dc16be1c31d4c1dc53bf9b45987fc75c04068da6c83afcfa0e13ba15a6696662335d5b7526fc000000000000000000000000000002fb65b00000000000000000000000000000000000",
"output": "0x"
}
]
}
}
]
}
SpecificationView Specification
Parameters
quantity
- Number of the block to be traced or the string 'latest', 'earliest' or 'pending'.
Response
array
- Block traces, which have the following object shape (all return types are in hex values):
Response
- Trace Object, which has the following fields:
calls
- Array of transactions in the block with the following fields -from
- Addressgas
- Quantitygasused
- Quantityinput
- Dataoutput
- Datato
- Addresstype
- Datavalue
- Quantity
debug_traceTransaction
The debug_traceTransaction
method will return a full stack trace of all invoked opcodes of all transaction that were included in this block.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"type": "CALL",
"from": "0x8c8f8d0c92f3a69a9c60e729c450eb3dd434289e",
"to": "0x7f20dbb17bd490a0b0b9683ec618ec8d4e42110d",
"value": "0x0",
"gas": "0x2ada4",
"gasUsed": "0x18ab8",
"input": "0xeafd8332000000000000000000000000d52dcfabd426525557798bfb34df2fcfeccce75600000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000144b0728fe40000000000000000000000000000000000000000000000000000000062ea382a00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c8300000000000000000000000004068da6c83afcfa0e13ba15a6696662335d5b7500000000000000000000000000000000b0f949129a099c2b3d4a532601760202000000000000000000000000000000000000000000000000000132800d9ff4a00000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000002b5e3af16b188000000000000000000000000000000000000000000000000d3c21bcecceda10000000000000000000000000000002b4c76d0dc16be1c31d4c1dc53bf9b45987fc75c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000",
"output": "0x",
"time": "181.430765ms",
"calls": [
{
"type": "DELEGATECALL",
"from": "0x7f20dbb17bd490a0b0b9683ec618ec8d4e42110d",
"to": "0xd52dcfabd426525557798bfb34df2fcfeccce756",
"gas": "0x28d56",
"gasUsed": "0x1748f",
"input": "0xb0728fe40000000000000000000000000000000000000000000000000000000062ea382a00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c8300000000000000000000000004068da6c83afcfa0e13ba15a6696662335d5b7500000000000000000000000000000000b0f949129a099c2b3d4a532601760202000000000000000000000000000000000000000000000000000132800d9ff4a00000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000002b5e3af16b188000000000000000000000000000000000000000000000000d3c21bcecceda10000000000000000000000000000002b4c76d0dc16be1c31d4c1dc53bf9b45987fc75c0000000000000000000000000000000000000000000000000000000000000002",
"output": "0x"
}
]
}
}
SpecificationView Specification
Parameters
hash
- The hash of the transaction
Response
array
- Block traces, which have the following object shape (all return types are in hex values):
Response
- Trace Object, which has the following fields:
failed
- Addressgas
- Quantityreturnvalue
- Datastructlogs
- Arrayentries
- Arraystoragesbydepth
- Array
trace_get
Returns trace at given position.
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"action": {
"callType": "staticcall",
"from": "0x49d6021b493cb6f1c5e6527beae9854a3314d2c0",
"to": "0x7051c6f0c1f1437498505521a3bd949654923fe1",
"value": "0x0",
"gas": "0x8763a",
"input": "0x0902f1ac"
},
"blockHash": "0x00020a1e00000d9c58537116fae73f20c1a6626866f7251635d7251ea007417d",
"blockNumber": 42818425,
"result": {
"gasUsed": "0x8763a",
"output": "0x00000000000000000000000000000000000000000000b2795662f6f711f872270000000000000000000000000000000000000000000043813899dc79f3037d550000000000000000000000000000000000000000000000000000000062d168a0"
},
"subtraces": 0,
"traceAddress": [
0
],
"transactionHash": "0x9ce7ce7975f277085a755193835c5216f802660435a529754533de7708e1f05e",
"transactionPosition": 13,
"type": "call"
}
]
}
SpecificationView Specification
Parameters
Hash
- Transaction hashArray
- Index positions of the traces.
Response
Object
- Trace object
trace_filter
Return all traces of the given filter
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"action": {
"callType": "call",
"from": "0x151dc4a4d891c50ec1c29201b639a2a950b7841b",
"to": "0x46923d2bf75a42f4f88e79bca51a8f7d533d9b7d",
"value": "0x0",
"gas": "0x166c7",
"input": "0x42842e0e000000000000000000000000151dc4a4d891c50ec1c29201b639a2a950b7841b000000000000000000000000000000000000000000000000000000000000dead000000000000000000000000000000000000000000000000000000000000006b"
},
"blockHash": "0x00020a1b000001dd1dee41cc7a9da04e947312eba1eaed592e5a8acacdc3245f",
"blockNumber": 42817818,
"result": {
"gasUsed": "0x166c7",
"output": "0x"
},
"subtraces": 0,
"traceAddress": [],
"transactionHash": "0xddee010c0966bc4a7bfb158ef8dc5194c50653394ac514c915fb29c84bfb9c1b",
"transactionPosition": 2,
"type": "call"
}
]
}
SpecificationView Specification
Parameters
Object
- The filter objectfromBlock
:Quantity
orTag
- (optional) From this block.toBlock
:Quantity
orTag
- (optional) To this block.fromAddress
:Array
- (optional) Sent from these addresses.toAddress
:Address
- (optional) Sent to these addresses.after
:Quantity
- (optional) The offset trace numbercount
:Quantity
- (optional) Integer number of traces to display in a batch.
Response
Array
- Traces matching given filter
trace_transaction
Returns all traces of given transaction.
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"action": {
"callType": "call",
"from": "0x151dc4a4d891c50ec1c29201b639a2a950b7841b",
"to": "0x46923d2bf75a42f4f88e79bca51a8f7d533d9b7d",
"value": "0x0",
"gas": "0x166d4",
"input": "0x42842e0e000000000000000000000000151dc4a4d891c50ec1c29201b639a2a950b7841b000000000000000000000000000000000000000000000000000000000000dead0000000000000000000000000000000000000000000000000000000000000177"
},
"blockHash": "0x00020a1c000003aa2e760e9eb778abb97424dbcda2c48544839d3537ed8b0590",
"blockNumber": 42817913,
"result": {
"gasUsed": "0x166d4",
"output": "0x"
},
"subtraces": 0,
"traceAddress": [],
"transactionHash": "0x563daf16f0c7feba100eef14bce18d1b1d2c6c101949f99ce60736f4ac10a562",
"transactionPosition": 69,
"type": "call"
}
]
}
SpecificationView Specification
Parameters
Hash
- Transaction hash
Response
Array
- Traces of given transaction
trace_block
Returns traces created at given block.
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"action": {
"callType": "call",
"from": "0x0d50f86b3b1f51be88712ebfa0a5f9217c8fa08c",
"to": "0x0000000000085a12481aedb59eb3200332aca597",
"value": "0x0",
"gas": "0x5502b",
"input": "0x000005017a656b342e14f745e2b164890e88017e27ae7320dc301622e621166bd8e82f2ca0a26c13ad0be355020002007ed0cddb9bb6c6dfea6fb63e117c8305479b8d7d21be370d5312f44cb42ce377bc9b8a0cef1a4c8326f200000061983225502f76e12315a1d84fdfee51ed1ad3f559c6606ed2af925f270733e378d6af7829b5b3cf26fc000000c6a39463dd3c3c39f736c51d81f044b2e718843321be370d5312f44cb42ce377bc9b8a0cef1a4c8326fc0000002b4c76d0dc16be1c31d4c1dc53bf9b45987fc75c04068da6c83afcfa0e13ba15a6696662335d5b7526fc000000000000000000000000000002fb65b00000000000000000000000000000000000"
},
"blockHash": "0x000205e0000001f07b3da5c29ebe91fb149afcdf252bcf0aa1922513067ec26d",
"blockNumber": 42581761,
"result": {
"gasUsed": "0x5502b",
"output": "0x"
},
"subtraces": 1,
"traceAddress": [],
"transactionHash": "0x43a1d16687af3830cab3ddfa3f7ccc6c468579708ec44436776110a664bc999b",
"transactionPosition": 0,
"type": "call"
}
]
}
SpecificationView Specification
Parameters
Quantity or Tag
- Integer of a block number, or the string 'earliest', 'latest' or 'pending'.
Response
Array
- Block traces.
trace_replayBlockTransactions
Replays all transactions in a block returning the requested traces for each transaction.
""
SpecificationView Specification
Parameters
Quantity
orTag
- Integer of a block number, or the string'earliest'
,'latest'
or'pending'
.Array
- Type of trace, one or more of:"vmTrace"
,"trace"
,"stateDiff"
.
Response
Array
- Block transactions traces.
txpool_content
Returns tx pool content.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"pending": {
"0x148257747A283DA493d9CA3B1536ea924B3eFEa6": {
"938": {
"blockHash": null,
"blockNumber": null,
"from": "0x148257747a283da493d9ca3b1536ea924b3efea6",
"gas": "0x7b2f6",
"gasPrice": "0x2b6ddc83b",
"hash": "0x597f0d097bbd190a66b1d40c97c09bff810154e515a5e36ee14ca534c4ea151a",
"input": "0x7c025200000000000000000000000000ccf6b19bc2419e776b6ee030044811da846686fb0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000018000000000000000000000000004068da6c83afcfa0e13ba15a6696662335d5b75000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000ccf6b19bc2419e776b6ee030044811da846686fb000000000000000000000000f069b13fd313acd984d22c8d9e596adf21132ff7000000000000000000000000000000000000000000000000000000000097ac20000000000000000000000000000000000000000000000001e43ea9fe104ac92a0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000da00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000540000000000000000000000000000000000000000000000000000000000000068000000000000000000000000000000000000000000000000000000000000008600000000000000000000000000000000000000000000000000000000000000b408000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000064eb5625d900000000000000000000000004068da6c83afcfa0e13ba15a6696662335d5b7500000000000000000000000085662fd123280827e11c59973ac9fcbe838dc3b4000000000000000000000000000000000000000000000000000000000097ac200000000000000000000000000000000000000000000000000000000080000000000000000000000085662fd123280827e11c59973ac9fcbe838dc3b40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a49169558600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000097ac2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062dbb81000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000018414284aab00000000000000000000000000000000000000000000000000000000000000808000000000000000000000000000000000000000000000000000000000000044000000000000000000000000049d68029688eabf473097a2fc38ef61633a3c7a00000000000000000000000000000032000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000049d68029688eabf473097a2fc38ef61633a3c7a0000000000000000000000005db11454268ada0c31bb67b3cb50087659fdf4390000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a4b757fed60000000000000000000000005db11454268ada0c31bb67b3cb50087659fdf439000000000000000000000000049d68029688eabf473097a2fc38ef61633a3c7a00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c8300000000000000000016e360ccf6b19bc2419e776b6ee030044811da846686fb000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000014414284aab0000000000000000000000000000000000000000000000000000000000000080800000000000000000000000000000000000000000000000000000000000000400000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83000000000000000000000000000000320000000000000000000000000000003280000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c830000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000242e1a7d4d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000024432ce0a7c00000000000000000000000000000000000000000000000000000000000000808000000000000000000000000000000000000000000000000000000000000044000000000000000000000000ccf6b19bc2419e776b6ee030044811da846686fb00000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a405971224000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000100000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004470bdb947000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000000000000000000000000001e72af42951ce95d70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000018414284aab00000000000000000000000000000000000000000000000000000000000000808000000000000000000000000000000000000000000000000000000000000044000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000001111111254fb6c44bac0bed2854e76f90643097d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cfee7c08",
"nonce": "0x3aa",
"to": "0x1111111254fb6c44bac0bed2854e76f90643097d",
"transactionIndex": null,
"value": "0x0",
"type": "0x0",
"v": "0x217",
"r": "0xfcc385e99005731c96c6e97c829e296b2dacfd9987ae6f084ed97c5fc1da21cd",
"s": "0x6daa914640868501384026d89ccb580174265476ee41748687381a44960a4c92"
}
}
}
}
}
SpecificationView Specification
Parameters
None
Response
blockHash
- block hash where this transaction was in, null
here.
blockNumber
- Block number where this transaction was added encoded as a hexadecimal, null
here.
from
- Sender's address
gas
- Gas used in the transaction.
gasPrice
- Total amount in wei the sender wants to pay for the transaction.
hash
- Transaction hash.
input
- Encoded transaction input data.
nonce
- Number of transactions by the sender
r
- ECDSA signature r.
s
- ECDSA signature s.
to
- Receiver's address. null
if it's a contract creation transaction.
transactionIndex
- Integer of the transactions index position in the block encoded as a hexadecimal.
type
- A number between 0 and 0x7f, for a total of 128 possible transaction types.
v
- ECDSA recovery id encoded as a hexadecimal.
value
- Value transferred in Wei encoded as a hexadecimal.
txpool_inspect
Returns a detailed info on tx pool transactions.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"pending": {
"0x068B3F8548F11323F5902100802301995F6eD5AE": {
"516": "0xF491e7B69E4244ad4002BC14e878a34207E38c29: 2000000000000000000 wei + 219943 gas × 5974611131 wei"
},
"0x0EA0720Af60f4598E3D51f60c5Cf0E748A9194B2": {
"10975": "0x4E2fE5eBbe9379bA829F62a98755c18465aBfca6: 0 wei + 1300000 gas × 5378795995 wei"
},
"0xDECAf80be095dc4930cAB62499d818423a39D4cA": {
"528": "0x8FA7599C61564B6268B050AE528213992bCc6B4B: 0 wei + 1358400 gas × 250000000000 wei",
"537": "0x8FA7599C61564B6268B050AE528213992bCc6B4B: 0 wei + 1518400 gas × 13907643734 wei",
"549": "0x8FA7599C61564B6268B050AE528213992bCc6B4B: 0 wei + 571200 gas × 1666000000000 wei",
"550": "0x8FA7599C61564B6268B050AE528213992bCc6B4B: 0 wei + 571200 gas × 1666000000000 wei",
"551": "0x8FA7599C61564B6268B050AE528213992bCc6B4B: 0 wei + 571200 gas × 1666000000000 wei",
"574": "0x8FA7599C61564B6268B050AE528213992bCc6B4B: 0 wei + 571200 gas × 82934754533 wei",
"575": "0x8FA7599C61564B6268B050AE528213992bCc6B4B: 0 wei + 571200 gas × 82934754533 wei"
}
}
}
}
SpecificationView Specification
Parameters
None
Response
pending
- Array of transaction objects, with textual data.queued
- Array of transaction objects, with textual data.
txpool_status
Returns a tx pool status.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"pending": "0x6",
"queued": "0x100"
}
}
SpecificationView Specification
Parameters
None
Response
pending
- Total number of pending transactions in the txpool (in hex format).queued
- Total number of queued transactions in the txpool (in hex format).