Skip to main content

platform.getStake RPC Method

Returns the staked amount for an array of addresses.

Updated on
Apr 29, 2026
To use the platform.getStake method on the P-Chain, ensure that the end of your URL includes ext/bc/P.

Parameters

addresses
array
REQUIRED

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
Response
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"staked": "0",
5
"stakeds": {},
6
"stakedOutputs": [],
7
"encoding": "hex"
8
},
9
"id": 1
10
}
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"staked": "0",
5
"stakeds": {},
6
"stakedOutputs": [],
7
"encoding": "hex"
8
},
9
"id": 1
10
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free