Metodo RPC getInflationReward

Restituisce la ricompensa di inflazione / staking per un elenco di indirizzi per un epoch

$ curl https://api.devnet.solana.com -s -X \
> POST -H "Content-Type: application/json" -d '
> {
> "jsonrpc": "2.0",
> "id": 1,
> "method": "getInflationReward",
> "params": [
> [
> "6dmNQ5jwLeLk5REvio1JcMshcbvkYMwy26sJ8pbkvStu",
> "BGsqMegLpV6n6Ve146sSX2dTjUMj3M92HnU8BbNRMhF2"
> ],
> {
> "epoch": 800,
> "commitment": "finalized"
> }
> ]
> }
> '

params

arrayoptional

Un array di indirizzi da interrogare, come stringhe codificate in base-58

objectoptional

Oggetto di configurazione contenente i seguenti campi:

result

Response
{
"jsonrpc": "2.0",
"result": [
{
"epoch": 2,
"effectiveSlot": 224,
"amount": 2500,
"postBalance": 499999442500
},
null
],
"id": 1
}
array

Il campo risultato sarà un array JSON di oggetti contenenti:

Is this page helpful?