queryLedgerState_nonces - Cardano
Example code for the queryLedgerState_nonces JSON-RPC method. Complete guide on how to use queryLedgerState_nonces JSON-RPC in GetBlock Web3 documentation.
Parameters
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "queryLedgerState/nonces",
"id": "getblock.io"
}'const response = await fetch(
'https://go.getblock.io/<ACCESS-TOKEN>/',
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({"jsonrpc": "2.0", "method": "queryLedgerState/nonces", "id": "getblock.io"})
}
);
console.log(await response.json());import requests
response = requests.post(
'https://go.getblock.io/<ACCESS-TOKEN>/',
headers={'Content-Type': 'application/json'},
json={"jsonrpc": "2.0", "method": "queryLedgerState/nonces", "id": "getblock.io"}
)
print(response.json())Response
{
"jsonrpc": "2.0",
"method": "queryLedgerState/nonces",
"result": {
"epochNonce": "bb5d68f96f32e55a140e9de9520ee98ba6a630b87580a6c5917e51eee436da55",
"candidateNonce": "57a71679914e97740054b821f438f955ebb9a1bd4f530cbd83e35072deb17179",
"evolvingNonce": "57a71679914e97740054b821f438f955ebb9a1bd4f530cbd83e35072deb17179",
"lastEpochLastAncestor": "d4d0f950488bfbec0e859c27de458ee54160d58e21c3627339854500903d38a4"
},
"id": "getblock.io"
}Response Parameters
Field
Type
Description
Use Cases
Error Handling
Error Code
Message
Description
PreviousqueryLedgerState_liveStakeDistribution - CardanoNextqueryLedgerState_projectedRewards - Cardano
Last updated
Was this helpful?