eth_getTransactionReceipt

Returns the receipt of a transaction by transaction hash.

🚧

NOTE: eth_getTransactionReceipt is not available for pending transactions.

Parameters

Object NameRequiredTypeDetail
TRANSACTION HASHStringHash of a transaction.
"params": [
    "0xbaa43749a760929b27aa445ee724b58f3418cbe90286ce4e42d5eaa4e1727c27"
]

Result

A transaction receipt object, or null when no receipt was found.

RESULT FIELDS

KeyTypeDetail
blockHashStringHash of the block where this transaction was in.
blockNumberStringA hex code of an integer that represents the block number where this transaction was in.
contractAddressStringAddress where the contract was created, if the transaction was a contract creation. null otherwise.
cumulativeGasUsedStringA hex code of an integer that represents the total amount of gas used when this transaction was executed in the block.
fromStringAddress the transaction is sent from.
gasUsedStringA hex code of an integer that represents the amount of gas used by this specific transaction alone.
logsArrayArray of log objects, which this transaction generated.
logsBloomStringBloom filter for light clients to quickly retrieve related logs.
rootStringPost-transaction stateroot (pre Byzantium). If root is showed, then status will not showed.
statusIntegerEither 1 (success) or 0 (failure). If status is showed, then root will not showed.
toStringAddress the transaction is directed to. null if the transaction is a contract creation.
transactionHashStringHash of the transaction.
transactionIndexStringA hex code of an integer that represents the index position of the transaction in the block.

Example

Request

curl <your-endpoint> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params": ["0xbaa43749a760929b27aa445ee724b58f3418cbe90286ce4e42d5eaa4e1727c27"],"id":1}'

Return

{
    "id": 1,
    "jsonrpc": "2.0",
    "result": {
        "blockHash": "0xc4e9cc03ac26ffef240fc549761d5efb7d2e559910de8d5e45a4c921f4633bb4",
        "blockNumber": "0xf97a55",
        "contractAddress": null,
        "cumulativeGasUsed": "0x284c7",
        "from": "0x6121073b15531c0b0c33d46d62c8ff058d78002d",
        "gasUsed": "0x15543",
        "logs": [
            {
                "address": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
                "blockHash": "0xc4e9cc03ac26ffef240fc549761d5efb7d2e559910de8d5e45a4c921f4633bb4",
                "blockNumber": "0xf97a55",
                "data": "0x000000000000000000000000000000000000000000000000306b0e4b7e3d8470",
                "logIndex": "0x5",
                "removed": false,
                "topics": [
                    "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                    "0x000000000000000000000000c1b3cf34c0d3e829e47488f44879555c6beadfcd",
                    "0x000000000000000000000000c75b3d693ab0736107c99baa1b62436d14158882"
                ],
                "transactionHash": "0xbaa43749a760929b27aa445ee724b58f3418cbe90286ce4e42d5eaa4e1727c27",
                "transactionIndex": "0x1"
            },
            {
                "address": "0x464fdb8affc9bac185a7393fd4298137866dcfb8",
                "blockHash": "0xc4e9cc03ac26ffef240fc549761d5efb7d2e559910de8d5e45a4c921f4633bb4",
                "blockNumber": "0xf97a55",
                "data": "0x00000000000000000000000000000000000000000000017cd8ed38f7abb19357",
                "logIndex": "0x6",
                "removed": false,
                "topics": [
                    "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                    "0x000000000000000000000000c75b3d693ab0736107c99baa1b62436d14158882",
                    "0x000000000000000000000000c1b3cf34c0d3e829e47488f44879555c6beadfcd"
                ],
                "transactionHash": "0xbaa43749a760929b27aa445ee724b58f3418cbe90286ce4e42d5eaa4e1727c27",
                "transactionIndex": "0x1"
            },
            {
                "address": "0xc75b3d693ab0736107c99baa1b62436d14158882",
                "blockHash": "0xc4e9cc03ac26ffef240fc549761d5efb7d2e559910de8d5e45a4c921f4633bb4",
                "blockNumber": "0xf97a55",
                "data": "0x000000000000000000000000000000000000000000015b5fb644c70c5918a94000000000000000000000000000000000000000000000002c3dc825f7f3ef1968",
                "logIndex": "0x7",
                "removed": false,
                "topics": [
                    "0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1"
                ],
                "transactionHash": "0xbaa43749a760929b27aa445ee724b58f3418cbe90286ce4e42d5eaa4e1727c27",
                "transactionIndex": "0x1"
            },
            {
                "address": "0xc75b3d693ab0736107c99baa1b62436d14158882",
                "blockHash": "0xc4e9cc03ac26ffef240fc549761d5efb7d2e559910de8d5e45a4c921f4633bb4",
                "blockNumber": "0xf97a55",
                "data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000306b0e4b7e3d847000000000000000000000000000000000000000000000017cd8ed38f7abb193570000000000000000000000000000000000000000000000000000000000000000",
                "logIndex": "0x8",
                "removed": false,
                "topics": [
                    "0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822",
                    "0x000000000000000000000000c1b3cf34c0d3e829e47488f44879555c6beadfcd",
                    "0x000000000000000000000000c1b3cf34c0d3e829e47488f44879555c6beadfcd"
                ],
                "transactionHash": "0xbaa43749a760929b27aa445ee724b58f3418cbe90286ce4e42d5eaa4e1727c27",
                "transactionIndex": "0x1"
            }
        ],
        "logsBloom": "0x00200000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000008000000200000000000000000000400000000000000000400000000000800000000000000000000000000000000000010000000000000000000800000040000200000000200040000000000080000004000000000020000000000000000000000000000000000000000000000000000000000000000000002000008000000000000000000000000000000001002000000000080000000000000000000000000000000000000000000000040000000000400000000",
        "status": "0x1",
        "to": "0xc1b3cf34c0d3e829e47488f44879555c6beadfcd",
        "transactionHash": "0xbaa43749a760929b27aa445ee724b58f3418cbe90286ce4e42d5eaa4e1727c27",
        "transactionIndex": "0x1",
        "type": "0x0"
    }
}
Language
Click Try It! to start a request and see the response here!