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