eth_getTransactionReceipt (BSC)
Returns the receipt of a transaction by transaction hash.
Parameters
DATA
, 32 Bytes - hash of a transactionparams: [
'0xfaa094639848ffa5c0adb4e3a23f02e8b18a505e4c94a02f913c17bcae4814e8'
]
Returns
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, otherwise null.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:
status
:QUANTITY
either 1 (success) or 0 (failure)
Request example
Curl
Postman
curl https://bsc.api.watchdata.io/node/jsonrpc?api_key=your_api_key
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0xfaa094639848ffa5c0adb4e3a23f02e8b18a505e4c94a02f913c17bcae4814e8"],"id":0}
URL: https://bsc.api.watchdata.io/node/jsonrpc?api_key=your_api_key
RequestType: POST
Body:
{
"jsonrpc":"2.0",
"method":"eth_getTransactionReceipt",
"params":["0xfaa094639848ffa5c0adb4e3a23f02e8b18a505e4c94a02f913c17bcae4814e8"],
"id":0
}
Result
{
"jsonrpc": "2.0",
"id": 0,
"result": [
{
"blockHash": "0x18b8e20d83a9c9636c6e9828157b1d684934e3e4c540531831460f9c8be60b9f",
"blockNumber": "0x119b752",
"contractAddress": null,
"cumulativeGasUsed": "0xe443dc",
"from": "0xea0a6e3c511bbd10f4519ece37dc24887e11b55d",
"gasUsed": "0x6a20",
"status": "0x1",
"effectiveGasPrice": "0x0",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002010000000000000000000000000000000200020000200000000000000000000080000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000002000000000000000000000000010000000000000000000000000000000000000080000000",
"to": "0x0000000000000000000000000000000000001000",
"transactionHash": "0xfaa094639848ffa5c0adb4e3a23f02e8b18a505e4c94a02f913c17bcae4814e8",
"transactionIndex": "0x62",
"logs": [
{
"address": "0x0000000000000000000000000000000000001000",
"blockHash": "0x18b8e20d83a9c9636c6e9828157b1d684934e3e4c540531831460f9c8be60b9f",
"blockNumber": "0x119b752",
"data": "0x000000000000000000000000000000000000000000000000001e06c16a58477d",
"logIndex": "0x1bf",
"topics": [
"0x627059660ea01c4733a328effb2294d2f86905bf806da763a89cee254de8bee5"
],
"transactionHash": "0xfaa094639848ffa5c0adb4e3a23f02e8b18a505e4c94a02f913c17bcae4814e8",
"transactionIndex": "0x62"
},
{
"address": "0x0000000000000000000000000000000000001000",
"blockHash": "0x18b8e20d83a9c9636c6e9828157b1d684934e3e4c540531831460f9c8be60b9f",
"blockNumber": "0x119b752",
"data": "0x000000000000000000000000000000000000000000000000010e3cccbd1a8368",
"logIndex": "0x1c0",
"topics": [
"0x93a090ecc682c002995fad3c85b30c5651d7fd29b0be5da9d784a3302aedc055",
"0x000000000000000000000000ea0a6e3c511bbd10f4519ece37dc24887e11b55d"
],
"transactionHash": "0xfaa094639848ffa5c0adb4e3a23f02e8b18a505e4c94a02f913c17bcae4814e8",
"transactionIndex": "0x62"
}
]
}
]
}
Last modified 6mo ago