Skip to main content

platform.getRewardUtxOs RPC Method

Returns the UTXOs that were rewarded after the provided transaction's staking or delegation period ended.

Updated on
Nov 2, 2023

platform.getRewardUtxOs RPC Method

Parameters

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

Returns

numFetched
uint64
The number ofreturned UTXOs
utxos
[]string
The array ofencoded reward UTXOs
encoding
string
Encoding is "hex" only.
Request
1
curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro/ext/bc/C/rpc/ext/bc/P \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"jsonrpc":"2.0",
5
"id" :1,
6
"method" :"platform.getRewardUTXOs",
7
"params" :{
8
"txID":"2nmH8LithVbdjaXsxVQCQfXtzN9hBbmebrsaEYnLM9T32Uy2Y4",
9
"encoding": "hex"
10
}
11
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free