queryLedgerState_rewardAccountSummaries - Cardano
Example code for the queryLedgerState_rewardAccountSummaries JSON-RPC method. Complete guide on how to use queryLedgerState_rewardAccountSummaries JSON-RPC in GetBlock Web3 documentation.
Parameters
Parameter
Type
Required
Description
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "queryLedgerState/rewardAccountSummaries",
"params": {
"keys": [
"stake1uxy2lpan99fcnhhyzr8w8qk4dqz4mp7g6b8h3r2v5c9d0e1f2g3h4"
]
},
"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/rewardAccountSummaries", "params": {"keys": ["stake1uxy2lpan99fcnhhyzr8w8qk4dqz4mp7g6b8h3r2v5c9d0e1f2g3h4"]}, "id": "getblock.io"})
}
);
console.log(await response.json());Response
Response Parameters
Field
Type
Description
Use Cases
Error Handling
Error Code
Message
Description
PreviousqueryLedgerState_protocolParameters - CardanoNextqueryLedgerState_rewardsProvenance - Cardano
Was this helpful?