Skip to main content

platform.getStake RPC Method

Returns the staked amount for an array of addresses.

Updated on
Nov 2, 2023

platform.getStake RPC Method

Parameters

addresses
string
An array of address strings
validatorOnly
boolean
The flag allows users to filter the results to only include information about validator addresses. When this flag is set to true, the function will only return data for addresses that are currently acting as validators on the network

Returns

staked
string
The amount staked.
stakedOutputs
[]string
An array of theamount staked per address.
encoding
string
Specifies the format for the returned outputs.
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.getStake",
7
"params": {
8
"addresses": ["P-avax1tnuesf6cqwnjw7fxjyk7lhch0vhf0v95wj5jvy"]
9
}
10
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free