post https://xlayer-mainnet.unifra.io/v1/
Xlayer API - Returns the receipt of a transaction by transaction hash.
Parameters
DATA, 32 Bytes - hash of a transaction
params: ["0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef"];
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 https://xlayer-mainnet.unifra.io/v1/your-api-key \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef"],"id":0}'
URL: https://xlayer-mainnet.unifra.io/v1/your-api-key
RequestType: POST
Body:
{
"jsonrpc":"2.0",
"method":"eth_getTransactionReceipt",
"params":["0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef"],
"id":0
}
Result
{
"jsonrpc": "2.0",
"id": 0,
"result": {
"blockHash": "0xbeae567e948dd259a68c52ffa39b0385109978f3d024947ea84c438cd5ee7e45",
"blockNumber": "0x223645c",
"contractAddress": null,
"cumulativeGasUsed": "0x6a460e",
"effectiveGasPrice": "0x7270e00",
"from": "0xca72753b4bab1836d701cb0f77ab15d8551989bf",
"gasUsed": "0x40dad",
"logs": [
{
"address": "0xe538905cf8410324e03a5a23c1c177a474d59b2b",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x000000000000000000000000ca72753b4bab1836d701cb0f77ab15d8551989bf",
"0x0000000000000000000000004f91b9d3668b39e8204fd1bd9f769e489f7435fb"
],
"data": "0x00000000000000000000000000000000000000000000000003d04af8254fd723",
"blockNumber": "0x223645c",
"transactionHash": "0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef",
"transactionIndex": "0x9",
"blockHash": "0xbeae567e948dd259a68c52ffa39b0385109978f3d024947ea84c438cd5ee7e45",
"logIndex": "0x12e",
"removed": false
},
{
"address": "0xe538905cf8410324e03a5a23c1c177a474d59b2b",
"topics": [
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
"0x0000000000000000000000004f91b9d3668b39e8204fd1bd9f769e489f7435fb",
"0x000000000000000000000000881fb2f98c13d521009464e7d1cbf16e1b394e8e"
],
"data": "0x00000000000000000000000000000000000000000000000003d04af8254fd723",
"blockNumber": "0x223645c",
"transactionHash": "0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef",
"transactionIndex": "0x9",
"blockHash": "0xbeae567e948dd259a68c52ffa39b0385109978f3d024947ea84c438cd5ee7e45",
"logIndex": "0x12f",
"removed": false
},
{
"address": "0xe538905cf8410324e03a5a23c1c177a474d59b2b",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000004f91b9d3668b39e8204fd1bd9f769e489f7435fb",
"0x0000000000000000000000002ef3723bb09c311d035334b11614efadbd0d7a24"
],
"data": "0x000000000000000000000000000000000000000000000000039f7a6bbd0bd92e",
"blockNumber": "0x223645c",
"transactionHash": "0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef",
"transactionIndex": "0x9",
"blockHash": "0xbeae567e948dd259a68c52ffa39b0385109978f3d024947ea84c438cd5ee7e45",
"logIndex": "0x130",
"removed": false
},
{
"address": "0x6bff3b94b9bd51b8adf3b84ffc50c39e3fe18816",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000002ef3723bb09c311d035334b11614efadbd0d7a24",
"0x000000000000000000000000ca72753b4bab1836d701cb0f77ab15d8551989bf"
],
"data": "0x0000000000000000000000000000000000000000000001668984b9ca780b4009",
"blockNumber": "0x223645c",
"transactionHash": "0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef",
"transactionIndex": "0x9",
"blockHash": "0xbeae567e948dd259a68c52ffa39b0385109978f3d024947ea84c438cd5ee7e45",
"logIndex": "0x131",
"removed": false
},
{
"address": "0x2ef3723bb09c311d035334b11614efadbd0d7a24",
"topics": [
"0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1"
],
"data": "0x000000000000000000000000000000000000000000131b816c9bd973c34e13a800000000000000000000000000000000000000000000003151879f8976f33421",
"blockNumber": "0x223645c",
"transactionHash": "0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef",
"transactionIndex": "0x9",
"blockHash": "0xbeae567e948dd259a68c52ffa39b0385109978f3d024947ea84c438cd5ee7e45",
"logIndex": "0x132",
"removed": false
},
{
"address": "0x2ef3723bb09c311d035334b11614efadbd0d7a24",
"topics": [
"0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822",
"0x000000000000000000000000881fb2f98c13d521009464e7d1cbf16e1b394e8e",
"0x000000000000000000000000ca72753b4bab1836d701cb0f77ab15d8551989bf"
],
"data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000039f7a6bbd0bd92e0000000000000000000000000000000000000000000001668984b9ca780b40090000000000000000000000000000000000000000000000000000000000000000",
"blockNumber": "0x223645c",
"transactionHash": "0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef",
"transactionIndex": "0x9",
"blockHash": "0xbeae567e948dd259a68c52ffa39b0385109978f3d024947ea84c438cd5ee7e45",
"logIndex": "0x133",
"removed": false
},
{
"address": "0x6bff3b94b9bd51b8adf3b84ffc50c39e3fe18816",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x000000000000000000000000debe9e7ae790df09189f102232e8699e9be9651d",
"0x0000000000000000000000004f91b9d3668b39e8204fd1bd9f769e489f7435fb"
],
"data": "0x00000000000000000000000000000000000000000000017b8664771cbdc40000",
"blockNumber": "0x223645c",
"transactionHash": "0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef",
"transactionIndex": "0x9",
"blockHash": "0xbeae567e948dd259a68c52ffa39b0385109978f3d024947ea84c438cd5ee7e45",
"logIndex": "0x134",
"removed": false
},
{
"address": "0x6bff3b94b9bd51b8adf3b84ffc50c39e3fe18816",
"topics": [
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
"0x000000000000000000000000debe9e7ae790df09189f102232e8699e9be9651d",
"0x0000000000000000000000004f91b9d3668b39e8204fd1bd9f769e489f7435fb"
],
"data": "0x00000000000000000000000000000000fffffffffffd0169cff2b0c6dd300000",
"blockNumber": "0x223645c",
"transactionHash": "0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef",
"transactionIndex": "0x9",
"blockHash": "0xbeae567e948dd259a68c52ffa39b0385109978f3d024947ea84c438cd5ee7e45",
"logIndex": "0x135",
"removed": false
},
{
"address": "0x6bff3b94b9bd51b8adf3b84ffc50c39e3fe18816",
"topics": [
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
"0x0000000000000000000000004f91b9d3668b39e8204fd1bd9f769e489f7435fb",
"0x000000000000000000000000881fb2f98c13d521009464e7d1cbf16e1b394e8e"
],
"data": "0x00000000000000000000000000000000000000000000017b8664771cbdc40000",
"blockNumber": "0x223645c",
"transactionHash": "0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef",
"transactionIndex": "0x9",
"blockHash": "0xbeae567e948dd259a68c52ffa39b0385109978f3d024947ea84c438cd5ee7e45",
"logIndex": "0x136",
"removed": false
},
{
"address": "0x6bff3b94b9bd51b8adf3b84ffc50c39e3fe18816",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000004f91b9d3668b39e8204fd1bd9f769e489f7435fb",
"0x0000000000000000000000002ef3723bb09c311d035334b11614efadbd0d7a24"
],
"data": "0x00000000000000000000000000000000000000000000017b8664771cbdc40000",
"blockNumber": "0x223645c",
"transactionHash": "0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef",
"transactionIndex": "0x9",
"blockHash": "0xbeae567e948dd259a68c52ffa39b0385109978f3d024947ea84c438cd5ee7e45",
"logIndex": "0x137",
"removed": false
},
{
"address": "0x6bff3b94b9bd51b8adf3b84ffc50c39e3fe18816",
"topics": [
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
"0x0000000000000000000000004f91b9d3668b39e8204fd1bd9f769e489f7435fb",
"0x000000000000000000000000881fb2f98c13d521009464e7d1cbf16e1b394e8e"
],
"data": "0x0000000000000000000000000000000000000000000000000000000000000000",
"blockNumber": "0x223645c",
"transactionHash": "0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef",
"transactionIndex": "0x9",
"blockHash": "0xbeae567e948dd259a68c52ffa39b0385109978f3d024947ea84c438cd5ee7e45",
"logIndex": "0x138",
"removed": false
},
{
"address": "0xe538905cf8410324e03a5a23c1c177a474d59b2b",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000002ef3723bb09c311d035334b11614efadbd0d7a24",
"0x000000000000000000000000debe9e7ae790df09189f102232e8699e9be9651d"
],
"data": "0x00000000000000000000000000000000000000000000000003d0da449e8d0e19",
"blockNumber": "0x223645c",
"transactionHash": "0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef",
"transactionIndex": "0x9",
"blockHash": "0xbeae567e948dd259a68c52ffa39b0385109978f3d024947ea84c438cd5ee7e45",
"logIndex": "0x139",
"removed": false
},
{
"address": "0x2ef3723bb09c311d035334b11614efadbd0d7a24",
"topics": [
"0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1"
],
"data": "0x000000000000000000000000000000000000000000131cfcf3005090811213a80000000000000000000000000000000000000000000000314db6c544d8662608",
"blockNumber": "0x223645c",
"transactionHash": "0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef",
"transactionIndex": "0x9",
"blockHash": "0xbeae567e948dd259a68c52ffa39b0385109978f3d024947ea84c438cd5ee7e45",
"logIndex": "0x13a",
"removed": false
},
{
"address": "0x2ef3723bb09c311d035334b11614efadbd0d7a24",
"topics": [
"0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822",
"0x000000000000000000000000881fb2f98c13d521009464e7d1cbf16e1b394e8e",
"0x000000000000000000000000debe9e7ae790df09189f102232e8699e9be9651d"
],
"data": "0x00000000000000000000000000000000000000000000017b8664771cbdc400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003d0da449e8d0e19",
"blockNumber": "0x223645c",
"transactionHash": "0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef",
"transactionIndex": "0x9",
"blockHash": "0xbeae567e948dd259a68c52ffa39b0385109978f3d024947ea84c438cd5ee7e45",
"logIndex": "0x13b",
"removed": false
},
{
"address": "0xe538905cf8410324e03a5a23c1c177a474d59b2b",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000004f91b9d3668b39e8204fd1bd9f769e489f7435fb",
"0x0000000000000000000000002ef3723bb09c311d035334b11614efadbd0d7a24"
],
"data": "0x0000000000000000000000000000000000000000000000000030d08c6843fdf4",
"blockNumber": "0x223645c",
"transactionHash": "0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef",
"transactionIndex": "0x9",
"blockHash": "0xbeae567e948dd259a68c52ffa39b0385109978f3d024947ea84c438cd5ee7e45",
"logIndex": "0x13c",
"removed": false
},
{
"address": "0x6bff3b94b9bd51b8adf3b84ffc50c39e3fe18816",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000002ef3723bb09c311d035334b11614efadbd0d7a24",
"0x000000000000000000000000ca72753b4bab1836d701cb0f77ab15d8551989bf"
],
"data": "0x000000000000000000000000000000000000000000000012e0482b066749fb86",
"blockNumber": "0x223645c",
"transactionHash": "0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef",
"transactionIndex": "0x9",
"blockHash": "0xbeae567e948dd259a68c52ffa39b0385109978f3d024947ea84c438cd5ee7e45",
"logIndex": "0x13d",
"removed": false
},
{
"address": "0x2ef3723bb09c311d035334b11614efadbd0d7a24",
"topics": [
"0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1"
],
"data": "0x000000000000000000000000000000000000000000131cea12b8258a19c818220000000000000000000000000000000000000000000000314de795d140aa23fc",
"blockNumber": "0x223645c",
"transactionHash": "0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef",
"transactionIndex": "0x9",
"blockHash": "0xbeae567e948dd259a68c52ffa39b0385109978f3d024947ea84c438cd5ee7e45",
"logIndex": "0x13e",
"removed": false
},
{
"address": "0x2ef3723bb09c311d035334b11614efadbd0d7a24",
"topics": [
"0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822",
"0x000000000000000000000000881fb2f98c13d521009464e7d1cbf16e1b394e8e",
"0x000000000000000000000000ca72753b4bab1836d701cb0f77ab15d8551989bf"
],
"data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030d08c6843fdf4000000000000000000000000000000000000000000000012e0482b066749fb860000000000000000000000000000000000000000000000000000000000000000",
"blockNumber": "0x223645c",
"transactionHash": "0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef",
"transactionIndex": "0x9",
"blockHash": "0xbeae567e948dd259a68c52ffa39b0385109978f3d024947ea84c438cd5ee7e45",
"logIndex": "0x13f",
"removed": false
}
],
"logsBloom": "0x00200800000000008000000080000000000000000200000000000000000000208004000000000000000000000440000000000000000000100000000000200000000000000000000000000008000000200040000000000000000000000000000000000000000000000000000000000000000000000000001000000010000000000000000000000000000000000008080000000000000000080000004000000000060000000000000000800000000000000000000000004000010000000000000000000002000000800000000000000000000000000000001000800000000000080010000000000000000000000000001000000000000000000020000400008000",
"status": "0x1",
"to": "0x4f91b9d3668b39e8204fd1bd9f769e489f7435fb",
"transactionHash": "0x64cceed4574d55c2d0d5d16c05660fd1f9e0d7f836f4f5c49f0c10e8c9c781ef",
"transactionIndex": "0x9",
"type": "0x0"
}
}