block/transaction - Cardano
Example code for the block/transaction JSON_RPC method. Complete guide on how to use block/transaction JSON_RPC in GetBlock Web3 documentation.
Parameters
Field
Type
Required
Description
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/block/transaction' \
--header 'Content-Type: application/json' \
--data-raw '{
"network_identifier": {
"blockchain": "cardano",
"network": "mainnet"
},
"block_identifier": {
"index": 10453789,
"hash": "6e9e89632bc5c72030d3a486647e889c48d63e4da0643191b13566ad816d2d57"
},
"transaction_identifier": {
"hash": "10b54fd708ab2e5703979b4ba27ca0339882abc2062e77fbe51e625203a49642"
}
}'const response = await fetch(
'https://go.getblock.io/<ACCESS-TOKEN>/block/transaction',
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({"network_identifier": {"blockchain": "cardano", "network": "mainnet"}, "block_identifier": {"index": 10453789, "hash": "6e9e89632bc5c72030d3a486647e889c48d63e4da0643191b13566ad816d2d57"}, "transaction_identifier": {"hash": "10b54fd708ab2e5703979b4ba27ca0339882abc2062e77fbe51e625203a49642"}})
}
);
console.log(await response.json());Response
Response Parameters
Field
Type
Description
Use Cases
Error Handling
Error Code
Message
Description
Was this helpful?