transaction_entry - XRPL
Example code for the transaction_entry JSON RPC method. Complete guide to using transaction_entry JSON-RPC in the GetBlock Web3 documentation.
Parameters
Parameter
Type
Required
Description
Request Example
curl --location --request POST 'https://go.getblock.io/<ACCESS_TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "transaction_entry",
"params": [{
"tx_hash": "C53ECF838647FA5A4C780377025FEC7999AB4182590510CA461444B207AB74A9",
"ledger_index": 63632029
}],
"id": "getblock.io"
}'const axios = require('axios');
const url = 'https://go.getblock.io/<ACCESS_TOKEN>/';
const headers = {
'Content-Type': 'application/json'
};
const payload = {
jsonrpc: '2.0',
method: 'transaction_entry',
params: [{
tx_hash: 'C53ECF838647FA5A4C780377025FEC7999AB4182590510CA461444B207AB74A9',
ledger_index: 63632029
}],
id: 'getblock.io'
};
axios.post(url, payload, { headers })
.then(response => console.log(response.data))
.catch(error => console.error(error));Response Example
Response Parameters
Parameter
Type
Description
Use Cases
Error Handling
SDK Integration
Last updated
Was this helpful?