eth_gettransactionreceipt - Worldchain

Example code for the eth_getTransactionReceipt JSON-RPC method. Complete guide on how to use eth_getTransactionReceipt JSON-RPC in GetBlock Web3 documentation.

Returns the receipt of a transaction by transaction hash on the World Chain network. The receipt is not available for pending transactions.

Parameters

Parameter
Type
Description

transactionHash

string

Hash of the transaction (32 bytes)

Request

curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "eth_getTransactionReceipt",
    "params": ["0x88df016429689c079f3b2f6ad39fa052532c56795b733da78a91ebe6a713944b"],
    "id": "getblock.io"
}'

Response

{
    "jsonrpc": "2.0",
    "id": "getblock.io",
    "result": {
        "transactionHash": "0x88df016429689c079f3b2f6ad39fa052532c56795b733da78a91ebe6a713944b",
        "status": "0x1",
        "blockNumber": "0x1A5C3B2",
        "gasUsed": "0x5208"
    }
}

Response Parameters

Field
Type
Description

transactionHash

string

Transaction hash

status

string

Transaction status (0x1 for success, 0x0 for failure)

blockNumber

string

Block number containing the transaction

gasUsed

string

Amount of gas used by this transaction

Use Case

The eth_getTransactionReceipt method on World Chain is typically used for:

  • Transaction confirmation

  • Gas usage analysis

  • Event log retrieval

  • Transaction status checking

Error Handling

Status Code
Error Message
Cause

403

Forbidden

Missing or invalid ACCESS-TOKEN

Web3 Integration

Last updated

Was this helpful?