curl --request POST \
--url https://rpc.testnet.tempo.xyz/ \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "eth_getTransactionByHash",
"params": [
"0xb3e821e696897b02283b7b2d602941b1d3cb08448d3a204bab05955215fc2035"
],
"id": 1
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": {}
}curl --request POST \
--url https://rpc.testnet.tempo.xyz/ \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "eth_getTransactionByHash",
"params": [
"0xb3e821e696897b02283b7b2d602941b1d3cb08448d3a204bab05955215fc2035"
],
"id": 1
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": {}
}transactionHash — the hash of the transaction to retrieveresult — a transaction object, or null if no transaction was found:
hash — the transaction hashnonce — the number of transactions made by the sender prior to this oneblockHash — hash of the block containing this transactionblockNumber — block number containing this transactionfrom — address of the senderto — address of the receivervalue — value transferred in weiinput — data sent along with the transactiontype — transaction type (Tempo supports type 0x76 for TempoTransaction)eth_getTransactionByHash code examplesconst 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()
Was this page helpful?