construction/payloads - Cardano
Example code for the construction/payloads JSON-RPC method. Complete guide on how to use construction/payloads JSON-RPC in GetBlock Web3 documentation.
Parameters
Field
Type
Required
Description
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/construction/payloads' \
--header 'Content-Type: application/json' \
--data-raw '{
"network_identifier": {
"blockchain": "cardano",
"network": "mainnet"
},
"operations": [
{
"operation_identifier": {
"index": 0
},
"type": "output",
"account": {
"address": "addr1qxy2lpan99fcnhhyzr8w8qk4dqz4mp7g6b8h3r2v5c9d0e1f2g3h4j5k6l7m8n9p0q"
},
"amount": {
"value": "9240398",
"currency": {
"symbol": "ADA",
"decimals": 6
}
}
}
],
"metadata": {
"ttl": "10454789"
}
}'Response
Response Parameters
Field
Type
Description
Use Cases
Error Handling
Error Code
Message
Description
Was this helpful?