proof namespace
proof_getTransactionByHash
This function returns the same result as eth_getTransactionReceipt
and also a tx proof, receipt proof and serialized block headers.
- Parameters
- Request
- Response
-
txHash
: string (hash) -
includeHeader
: boolean
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "proof_getTransactionByHash",
"params": [txHash, includeHeader]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: object
blockHeader
: string (hex data)transaction
: objectaccessList
: array of objectaddress
: string (address)storageKeys
: array of string (hex integer)
blobVersionedHashes
: array of string (hex data)blockHash
: string (hash)blockNumber
: string (hex integer)chainId
: string (hex integer)data
: string (hex data)from
: string (address)gas
: string (hex integer)gasPrice
: string (hex integer)hash
: string (hash)input
: string (hex data)isSystemTx
: booleanmaxFeePerBlobGas
: string (hex integer)maxFeePerGas
: string (hex integer)maxPriorityFeePerGas
: string (hex integer)mint
: string (hex integer)nonce
: string (hex integer)r
: string (hex integer)s
: string (hex integer)sourceHash
: string (hash)to
: string (address)transactionIndex
: string (hex integer)type
: integerv
: string (hex integer)value
: string (hex integer)yParity
: string (hex integer)
txProof
: array of string (hex data)
proof_getTransactionReceipt
This function should return the same result as eth_call
and also proofs of all used accounts and their storages and serialized block headers.
- Parameters
- Request
- Response
-
txHash
: string (hash) -
includeHeader
: boolean
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "proof_getTransactionReceipt",
"params": [txHash, includeHeader]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: object
blockHeader
: string (hex data)receipt
: objectblobGasPrice
: string (hex integer)blobGasUsed
: string (hex integer)blockHash
: string (hash)blockNumber
: string (hex integer)contractAddress
: string (address)cumulativeGasUsed
: string (hex integer)effectiveGasPrice
: string (hex integer)error
: stringfrom
: string (address)gasUsed
: string (hex integer)logs
: array of objectaddress
: string (address)blockHash
: string (hash)blockNumber
: string (hex integer)data
: string (hex data)logIndex
: string (hex integer)removed
: booleantopics
: array of string (hash)transactionHash
: string (hash)transactionIndex
: string (hex integer)
logsBloom
: string (hex data)root
: string (hash)status
: string (hex integer)to
: string (address)transactionHash
: string (hash)transactionIndex
: string (hex integer)type
: integer
receiptProof
: array of string (hex data)txProof
: array of string (hex data)