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