POST
/
2fc1de7f08c0465f6a28e3c355e0cb14
curl --request POST \
  --url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "eth_getTransactionReceipt",
  "id": 1,
  "params": [
    "0x1759c699e6e2b1f249fa0ed605c0de18998bc66556cd6ea3362f92f511aeb06a"
  ]
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": {
    "transactionHash": "<string>",
    "transactionIndex": "<string>",
    "blockHash": "<string>",
    "blockNumber": "<string>",
    "from": "<string>",
    "to": "<string>",
    "cumulativeGasUsed": "<string>",
    "gasUsed": "<string>",
    "contractAddress": "<string>",
    "logs": [
      {
        "removed": true,
        "logIndex": "<string>",
        "transactionIndex": "<string>",
        "transactionHash": "<string>",
        "blockHash": "<string>",
        "blockNumber": "<string>",
        "address": "<string>",
        "data": "<string>",
        "topics": [
          "<string>"
        ]
      }
    ],
    "logsBloom": "<string>",
    "status": "<string>"
  }
}

Base API method eth_getTransactionReceipt retrieves the receipt of a transaction by its hash. This receipt includes details such as the transaction’s outcome (status), gas used, and logs generated by the transaction. This method is crucial for confirming transaction execution and for interacting with smart contracts.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • transactionHash — the hash of the transaction for which the receipt is being requested.

Response

  • result — an object containing the transaction receipt details, including the transaction hash, index, block hash, block number, from and to addresses, cumulative gas used, gas used by this transaction, contract address (if a contract was created), an array of logs, the logs bloom filter, and the status of the transaction (1 for success, 0 for failure).

Use case

The eth_getTransactionReceipt method is essential for:

  • DApps that need to confirm the outcome of a transaction, especially after interacting with smart contracts.
  • Services that monitor transactions for confirmation, gas usage, and event logging.
  • Tools that analyze the efficiency and effects of transactions on the Base network.

Body

application/json

Response

200 - application/json
Transaction receipt for the given transaction hash

The response is of type object.