Skip to main content

eth_getTransactionReceipt

Returns the receipt of a transaction by transaction hash on Ronin. Receipt is only available for mined transactions.

Why Ronin? Build on the gaming-first blockchain with 1M+ daily active wallets and $6.47B in NFT trading volume with purpose-built for gaming with $1.3B+ Axie revenue, zkEVM upgrade planned, Katana DEX, and Tama fair launch platform.

Use Cases#

The eth_getTransactionReceipt method is essential for:

  • Transaction confirmation - Verify transaction was mined successfully
  • Gas analysis - Check actual gas used vs estimated
  • Event parsing - Read emitted events from logs
  • Status verification - Confirm success/failure for blockchain gaming (Axie Infinity, Pixels), gaming NFT marketplaces, and in-game token economies

Parameters#

ParameterTypeRequiredDescription
transactionHashDATAYes32-byte transaction hash

Request#

{
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": [""],
"id": 1
}

Returns#

FieldTypeDescription
statusQUANTITY1 (success) or 0 (failure)
transactionHashDATATransaction hash
blockHashDATABlock hash
blockNumberQUANTITYBlock number
gasUsedQUANTITYGas used by this transaction
cumulativeGasUsedQUANTITYTotal gas used in block up to this tx
logsArrayArray of log objects
contractAddressDATACreated contract address (if deployment)

Code Examples#

curl -X POST https://api-ronin-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": [""],
"id": 1
}'

Error Handling#

Error CodeMessageDescription
-32602Invalid paramsInvalid transaction hash

Note: Returns null if transaction is not yet mined.