Skip to main content

platform.getStake RPC Method

Returns the staked amount for an array of addresses.

Updated on
Dec 4, 2024

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

result
object
The result containing staked details
staked
string
The total amount staked
stakeds
object
Mapping of staking IDs to their respective staked amounts
stakingID
string
A unique identifier for a stake
amount
string
The staked amount for the given ID
stakedOutputs
array
List of staked output strings
output
string
A staked output in hexadecimal encoding
encoding
string
The encoding format used for the outputs
Request
1
curl --location --request POST https://docs-demo.flare-mainnet.quiknode.pro/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-flare1ljm5j7ku39shkern8peyg223axa9m0z30cl63c"]
9
}
10
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free