AptosAptos Network's breakthrough technology and seamless user experience are now available on QuickNode.

Start building today!     

Contents

getInflationReward RPC Method

The API credit value for this method is 40 . To learn more about API credits and each method's value, visit the API Credits page.

Parameters:

  1. array - string - (optional) An array of addresses to query, as base-58 encoded strings
  2. object - (optional) The configuration object with the following fields:

    Commitment - string - (optional) The level of commitment required for the query. The options include:

    Finalized - string - The node will query the most recent block confirmed by the supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized

    Confirmed - string - The node will query the most recent block that has been voted on by supermajority of the cluster

    epoch - integer - (optional) An epoch for which the reward occurs. If omitted, the previous epoch will be used

    minContextSlot - integer - (optional) The minimum slot that the request can be evaluated at

  3. Returns:

    1. result - The result will be JSON object with the following fields:

      epoch - The epoch during which the reward was received

      effectiveSlot - The slot at which the rewards become active

      amount - The reward value in lamports

      postBalance - The account balance after the transaction in lamports

      commission - The commission rate of the vote account at the time the reward was credited

Code Examples:

curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":1, "method":"getInflationReward", "params": [["ADDRESS_TO_SEARCH_1", "ADDRESS_TO_SEARCH_2"], {"epoch": 2}] }'
Ready to get started? Create a free account