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