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