post http://zetachain-athens-3.unifra.io/v1/
Returns the receipt of a transaction by transaction hash.
This can also be used to track the status of a transaction, since the result will be null until the transaction is mined. However, unlike eth_getTransactionByHash , which returns null for unknown transactions, and a non-null response with 3 null fields for a pending transaction, eth_getTransactionReceipt returns null for both pending and unknown transactions.
This call is also commonly used to get the contract address for a contract creation tx.
Note: the receipt is not available for pending transactions.
Parameters
DATA, 32 Bytes - hash of a transaction
params: ["0x559936ed33f35ecbe67b702b5592a65f0a94a43a2a82f834d3fe4be05670d7fb"];
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:
- root : DATA 32 bytes of post-transaction stateroot (pre Byzantium)
- status: QUANTITY either 1 (success) or 0 (failure)
Example
Request
curl --location 'http://zetachain-athens-3.unifra.io/v1/{your-api-key}' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": [
"0x559936ed33f35ecbe67b702b5592a65f0a94a43a2a82f834d3fe4be05670d7fb"
],
"id": "123"
}'
Result
{
"jsonrpc": "2.0",
"id": "123",
"result": {
"blockHash": "0xe9393ffcb4b63b078afa17274b044526de7e5f34981bc98c40da132249cc680e",
"blockNumber": "0x151fb0",
"contractAddress": null,
"cumulativeGasUsed": "0x926256",
"from": "0x735b14bb79463307aacbed86daf3322b1e6226ab",
"gasUsed": "0xb3ddf",
"logs": [
{
"address": "0x48f80608b672dc30dc7e3dbbd0343c5f02c738eb",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x00000000000000000000000044d1f1f9289dba1cf5824bd667184cebe020aa1c"
],
"data": "0x00000000000000000000000000000000000000000000000029a2241af62c0000",
"blockNumber": "0x151fb0",
"transactionHash": "0x559936ed33f35ecbe67b702b5592a65f0a94a43a2a82f834d3fe4be05670d7fb",
"transactionIndex": "0x0",
"blockHash": "0xe9393ffcb4b63b078afa17274b044526de7e5f34981bc98c40da132249cc680e",
"logIndex": "0x0",
"removed": false
},
{
"address": "0x48f80608b672dc30dc7e3dbbd0343c5f02c738eb",
"topics": [
"0x67fc7bdaed5b0ec550d8706b87d60568ab70c6b781263c70101d54cd1564aab3",
"0x00000000000000000000000044d1f1f9289dba1cf5824bd667184cebe020aa1c"
],
"data": "0x000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000029a2241af62c00000000000000000000000000000000000000000000000000000000000000000014735b14bb79463307aacbed86daf3322b1e6226ab000000000000000000000000",
"blockNumber": "0x151fb0",
"transactionHash": "0x559936ed33f35ecbe67b702b5592a65f0a94a43a2a82f834d3fe4be05670d7fb",
"transactionIndex": "0x0",
"blockHash": "0xe9393ffcb4b63b078afa17274b044526de7e5f34981bc98c40da132249cc680e",
"logIndex": "0x1",
"removed": false
},
{
"address": "0x48f80608b672dc30dc7e3dbbd0343c5f02c738eb",
"topics": [
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
"0x00000000000000000000000044d1f1f9289dba1cf5824bd667184cebe020aa1c",
"0x0000000000000000000000002ca7d64a7efe2d62a725e2b35cf7230d6677ffee"
],
"data": "0x00000000000000000000000000000000000000000000000029a2241af62c0000",
"blockNumber": "0x151fb0",
"transactionHash": "0x559936ed33f35ecbe67b702b5592a65f0a94a43a2a82f834d3fe4be05670d7fb",
"transactionIndex": "0x0",
"blockHash": "0xe9393ffcb4b63b078afa17274b044526de7e5f34981bc98c40da132249cc680e",
"logIndex": "0x2",
"removed": false
},
{
"address": "0x48f80608b672dc30dc7e3dbbd0343c5f02c738eb",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x00000000000000000000000044d1f1f9289dba1cf5824bd667184cebe020aa1c",
"0x0000000000000000000000004e77a430a1b8e9055540b2a4ab8364e4e31089ae"
],
"data": "0x00000000000000000000000000000000000000000000000029a2241af62c0000",
"blockNumber": "0x151fb0",
"transactionHash": "0x559936ed33f35ecbe67b702b5592a65f0a94a43a2a82f834d3fe4be05670d7fb",
"transactionIndex": "0x0",
"blockHash": "0xe9393ffcb4b63b078afa17274b044526de7e5f34981bc98c40da132249cc680e",
"logIndex": "0x3",
"removed": false
},
{
"address": "0x48f80608b672dc30dc7e3dbbd0343c5f02c738eb",
"topics": [
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
"0x00000000000000000000000044d1f1f9289dba1cf5824bd667184cebe020aa1c",
"0x0000000000000000000000002ca7d64a7efe2d62a725e2b35cf7230d6677ffee"
],
"data": "0x0000000000000000000000000000000000000000000000000000000000000000",
"blockNumber": "0x151fb0",
"transactionHash": "0x559936ed33f35ecbe67b702b5592a65f0a94a43a2a82f834d3fe4be05670d7fb",
"transactionIndex": "0x0",
"blockHash": "0xe9393ffcb4b63b078afa17274b044526de7e5f34981bc98c40da132249cc680e",
"logIndex": "0x4",
"removed": false
},
{
"address": "0x5f0b1a82749cb4e2278ec87f8bf6b618dc71a8bf",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000004e77a430a1b8e9055540b2a4ab8364e4e31089ae",
"0x0000000000000000000000000c0b35c5ef00d9cad8d2ce65b147ea2a27d526bc"
],
"data": "0x000000000000000000000000000000000000000000000000055348602797b691",
"blockNumber": "0x151fb0",
"transactionHash": "0x559936ed33f35ecbe67b702b5592a65f0a94a43a2a82f834d3fe4be05670d7fb",
"transactionIndex": "0x0",
"blockHash": "0xe9393ffcb4b63b078afa17274b044526de7e5f34981bc98c40da132249cc680e",
"logIndex": "0x5",
"removed": false
},
{
"address": "0x4e77a430a1b8e9055540b2a4ab8364e4e31089ae",
"topics": [
"0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1"
],
"data": "0x00000000000000000000000000000000000000000000001f434a6d1a9e549651000000000000000000000000000000000000000000000003fd70991a37b9216b",
"blockNumber": "0x151fb0",
"transactionHash": "0x559936ed33f35ecbe67b702b5592a65f0a94a43a2a82f834d3fe4be05670d7fb",
"transactionIndex": "0x0",
"blockHash": "0xe9393ffcb4b63b078afa17274b044526de7e5f34981bc98c40da132249cc680e",
"logIndex": "0x6",
"removed": false
},
{
"address": "0x4e77a430a1b8e9055540b2a4ab8364e4e31089ae",
"topics": [
"0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822",
"0x0000000000000000000000002ca7d64a7efe2d62a725e2b35cf7230d6677ffee",
"0x0000000000000000000000000c0b35c5ef00d9cad8d2ce65b147ea2a27d526bc"
],
"data": "0x00000000000000000000000000000000000000000000000029a2241af62c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055348602797b691",
"blockNumber": "0x151fb0",
"transactionHash": "0x559936ed33f35ecbe67b702b5592a65f0a94a43a2a82f834d3fe4be05670d7fb",
"transactionIndex": "0x0",
"blockHash": "0xe9393ffcb4b63b078afa17274b044526de7e5f34981bc98c40da132249cc680e",
"logIndex": "0x7",
"removed": false
},
{
"address": "0x13a0c5930c028511dc02665e7285134b6d11a5f4",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000000c0b35c5ef00d9cad8d2ce65b147ea2a27d526bc",
"0x00000000000000000000000044d1f1f9289dba1cf5824bd667184cebe020aa1c"
],
"data": "0x00000000000000000000000000000000000000000000000000a3f34570f77b89",
"blockNumber": "0x151fb0",
"transactionHash": "0x559936ed33f35ecbe67b702b5592a65f0a94a43a2a82f834d3fe4be05670d7fb",
"transactionIndex": "0x0",
"blockHash": "0xe9393ffcb4b63b078afa17274b044526de7e5f34981bc98c40da132249cc680e",
"logIndex": "0x8",
"removed": false
},
{
"address": "0x0c0b35c5ef00d9cad8d2ce65b147ea2a27d526bc",
"topics": [
"0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1"
],
"data": "0x00000000000000000000000000000000000000000000000423ad6b91df11c0f00000000000000000000000000000000000000000000000225657a81284cfbadb",
"blockNumber": "0x151fb0",
"transactionHash": "0x559936ed33f35ecbe67b702b5592a65f0a94a43a2a82f834d3fe4be05670d7fb",
"transactionIndex": "0x0",
"blockHash": "0xe9393ffcb4b63b078afa17274b044526de7e5f34981bc98c40da132249cc680e",
"logIndex": "0x9",
"removed": false
},
{
"address": "0x0c0b35c5ef00d9cad8d2ce65b147ea2a27d526bc",
"topics": [
"0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822",
"0x0000000000000000000000002ca7d64a7efe2d62a725e2b35cf7230d6677ffee",
"0x00000000000000000000000044d1f1f9289dba1cf5824bd667184cebe020aa1c"
],
"data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055348602797b69100000000000000000000000000000000000000000000000000a3f34570f77b890000000000000000000000000000000000000000000000000000000000000000",
"blockNumber": "0x151fb0",
"transactionHash": "0x559936ed33f35ecbe67b702b5592a65f0a94a43a2a82f834d3fe4be05670d7fb",
"transactionIndex": "0x0",
"blockHash": "0xe9393ffcb4b63b078afa17274b044526de7e5f34981bc98c40da132249cc680e",
"logIndex": "0xa",
"removed": false
},
{
"address": "0x13a0c5930c028511dc02665e7285134b6d11a5f4",
"topics": [
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
"0x00000000000000000000000044d1f1f9289dba1cf5824bd667184cebe020aa1c",
"0x00000000000000000000000013a0c5930c028511dc02665e7285134b6d11a5f4"
],
"data": "0x0000000000000000000000000000000000000000000000000000000000038658",
"blockNumber": "0x151fb0",
"transactionHash": "0x559936ed33f35ecbe67b702b5592a65f0a94a43a2a82f834d3fe4be05670d7fb",
"transactionIndex": "0x0",
"blockHash": "0xe9393ffcb4b63b078afa17274b044526de7e5f34981bc98c40da132249cc680e",
"logIndex": "0xb",
"removed": false
},
{
"address": "0x13a0c5930c028511dc02665e7285134b6d11a5f4",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x00000000000000000000000044d1f1f9289dba1cf5824bd667184cebe020aa1c",
"0x000000000000000000000000735b14bb79463307aacbed86daf3322b1e6226ab"
],
"data": "0x0000000000000000000000000000000000000000000000000000000000038658",
"blockNumber": "0x151fb0",
"transactionHash": "0x559936ed33f35ecbe67b702b5592a65f0a94a43a2a82f834d3fe4be05670d7fb",
"transactionIndex": "0x0",
"blockHash": "0xe9393ffcb4b63b078afa17274b044526de7e5f34981bc98c40da132249cc680e",
"logIndex": "0xc",
"removed": false
},
{
"address": "0x13a0c5930c028511dc02665e7285134b6d11a5f4",
"topics": [
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
"0x00000000000000000000000044d1f1f9289dba1cf5824bd667184cebe020aa1c",
"0x00000000000000000000000013a0c5930c028511dc02665e7285134b6d11a5f4"
],
"data": "0x0000000000000000000000000000000000000000000000000000000000000000",
"blockNumber": "0x151fb0",
"transactionHash": "0x559936ed33f35ecbe67b702b5592a65f0a94a43a2a82f834d3fe4be05670d7fb",
"transactionIndex": "0x0",
"blockHash": "0xe9393ffcb4b63b078afa17274b044526de7e5f34981bc98c40da132249cc680e",
"logIndex": "0xd",
"removed": false
},
{
"address": "0x13a0c5930c028511dc02665e7285134b6d11a5f4",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x00000000000000000000000044d1f1f9289dba1cf5824bd667184cebe020aa1c",
"0x0000000000000000000000000000000000000000000000000000000000000000"
],
"data": "0x00000000000000000000000000000000000000000000000000a3f34570f3f531",
"blockNumber": "0x151fb0",
"transactionHash": "0x559936ed33f35ecbe67b702b5592a65f0a94a43a2a82f834d3fe4be05670d7fb",
"transactionIndex": "0x0",
"blockHash": "0xe9393ffcb4b63b078afa17274b044526de7e5f34981bc98c40da132249cc680e",
"logIndex": "0xe",
"removed": false
},
{
"address": "0x13a0c5930c028511dc02665e7285134b6d11a5f4",
"topics": [
"0x9ffbffc04a397460ee1dbe8c9503e098090567d6b7f4b3c02a8617d800b6d955",
"0x00000000000000000000000044d1f1f9289dba1cf5824bd667184cebe020aa1c"
],
"data": "0x000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000a3f34570f3f5310000000000000000000000000000000000000000000000000000000000038658000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000002cba4fe1d7f305482ba5855abe3276decebc5551",
"blockNumber": "0x151fb0",
"transactionHash": "0x559936ed33f35ecbe67b702b5592a65f0a94a43a2a82f834d3fe4be05670d7fb",
"transactionIndex": "0x0",
"blockHash": "0xe9393ffcb4b63b078afa17274b044526de7e5f34981bc98c40da132249cc680e",
"logIndex": "0xf",
"removed": false
}
],
"logsBloom": "0x00300000000000000000000080020000001000000000000000000000000000020000000100000000010000000000000080000000000000050000000400240000200000000002000000000008020000208200000000000002000000000000000000000000020000000008000000800800000000000000200000800010000000000000000000000000000000000000000000000000000004081100104000000000020000000000000000002000000002000000000000000000000000000000030000000002000000000000008000000048000000800000001000000000000021000050000000000000000000000004000000000000040200000001000000000000",
"status": "0x1",
"to": "0xedf1c3275d13489acdc6cd6ed246e72458b8795b",
"transactionHash": "0x559936ed33f35ecbe67b702b5592a65f0a94a43a2a82f834d3fe4be05670d7fb",
"transactionIndex": "0x22b8",
"type": "0x58"
}
}