Skip to main content
POST
eth_getTransactionByHash
curl --request POST \
  --url https://tempo-moderato.core.chainstack.com/a25a421add2280d53fdbc23417055501/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "method": "eth_getTransactionByHash",
  "params": [
    "0xb3e821e696897b02283b7b2d602941b1d3cb08448d3a204bab05955215fc2035"
  ],
  "id": 1
}
'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": {}
}
Tempo API method that returns the information about a transaction requested by transaction hash.
Get you own node endpoint todayStart 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 to retrieve

Response

  • result — a transaction object, or null if no transaction was found:
    • hash — the transaction hash
    • nonce — the number of transactions made by the sender prior to this one
    • blockHash — hash of the block containing this transaction
    • blockNumber — block number containing this transaction
    • from — address of the sender
    • to — address of the receiver
    • value — value transferred in wei
    • input — data sent along with the transaction
    • type — transaction type (Tempo supports type 0x76 for TempoTransaction)

eth_getTransactionByHash code examples

const Web3 = require("web3");
const NODE_URL = "CHAINSTACK_NODE_URL";
const web3 = new Web3(NODE_URL);

async function getTransaction() {
  const tx = await web3.eth.getTransaction("0xb3e821e696897b02283b7b2d602941b1d3cb08448d3a204bab05955215fc2035");
  console.log(tx);
}

getTransaction()

Body

application/json
jsonrpc
string
default:2.0
method
string
default:eth_getTransactionByHash
params
any[]

Transaction hash

id
integer
default:1

Response

200 - application/json

The transaction object

jsonrpc
string
id
integer
result
object

Transaction object or null if not found

Last modified on January 23, 2026