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

Start building today!     

Contents

platform.getRewardUtxOs RPC Method

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

Parameters:

  1. txID - string - The ID of the staking or delegating transaction.
  2. encoding - string - Specifies the format for the returned UTXOs. Can only be "hex" when a value is provided.

Returns:

  1. numFetched - uint64 - The number of returned UTXOs
  2. utxos - []string - The array of encoded reward UTXOs
  3. encoding - string - Encoding is "hex" only.

Code Examples:

from web3 import Web3, HTTPProvider
w3 = Web3(HTTPProvider('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ext/bc/P'))
params = {
    "txID": "2nmH8LithVbdjaXsxVQCQfXtzN9hBbmebrsaEYnLM9T32Uy2Y4",
    "encoding": "hex"
}
request = w3.provider.make_request('platform.getRewardUTXOs', [params])
print(request)
Ready to get started? Create a free account