Skip to main content

eth_getTransactionByHash

Returns the information about a transaction by transaction hash on Zora.

Why Zora? Build on the creator-first L2 powering $353M+ in NFT trading volume with 179K+ active creators with 0.000777 ETH minting fees, 50% creator royalty share, no-code NFT toolkit, and OP Stack Ethereum security.

Use Cases#

The eth_getTransactionByHash method is essential for:

  • Transaction tracking - Get details of pending or confirmed transactions
  • Payment verification - Verify transaction parameters
  • Debugging - Analyze transaction data for low-cost NFT minting, onchain media monetization, and creator-owned token economies
  • Block explorers - Display transaction information

Parameters#

ParameterTypeRequiredDescription
transactionHashDATAYes32-byte transaction hash

Request#

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

Returns#

FieldTypeDescription
hashDATATransaction hash
fromDATASender address
toDATARecipient address
valueQUANTITYValue in wei
gasQUANTITYGas provided
gasPriceQUANTITYGas price in wei
inputDATATransaction input data
nonceQUANTITYSender's nonce
blockHashDATABlock hash (null if pending)
blockNumberQUANTITYBlock number (null if pending)

Code Examples#

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

Error Handling#

Error CodeMessageDescription
-32602Invalid paramsInvalid transaction hash format