proof namespace
proof_getTransactionByHash
Returns the same data as eth_getTransactionByHash plus a Merkle-Patricia proof of the transaction's inclusion in the block's transactionsRoot. When includeHeader is true, the RLP-encoded block header is also returned, allowing the proof to be verified against the block's transactionsRoot.
- 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: objectblockHash: string (hash)blockNumber: string (hex integer)blockTimestamp: string (hex integer)gas: string (hex integer)hash: string (hash)transactionIndex: string (hex integer)type: integer
txProof: array of string (hex data)
proof_getTransactionReceipt
Returns the same data as eth_getTransactionReceipt plus Merkle-Patricia proofs of the transaction's inclusion in the block's transactionsRoot and of the receipt's inclusion in the block's receiptsRoot. When includeHeader is true, the RLP-encoded block header is also returned, allowing proofs to be verified against the block's roots.
- 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)blockTimestamp: 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)