platform.getMinStake - AVAX

Example code for the platform.getMinStake JSON-RPC method. Complete guide on how to use platform.getMinStake JSON-RPC in GetBlock Web3 documentation.

Returns the minimum amount of AVAX required to stake on the Primary Network: 2,000 AVAX for validators, 25 AVAX for delegators. Result amounts are in nAVAX (9 decimals).

Parameters

Parameter
Type
Required
Description

subnetID

string

No

Subnet ID (default: Primary Network)

Request Example

curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/ext/bc/P' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "platform.getMinStake",
    "params": {},
    "id": "getblock.io"
}'

Response Example

{
    "jsonrpc": "2.0",
    "id": "getblock.io",
    "result": {
        "minValidatorStake": "2000000000000",
        "minDelegatorStake": "25000000000"
    }
}

Response Parameters

Field
Type
Description

result.minValidatorStake

string

Minimum validator stake in nAVAX (decimal string; 2,000 AVAX = 2,000,000,000,000 nAVAX)

result.minDelegatorStake

string

Minimum delegator stake in nAVAX (25 AVAX = 25,000,000,000 nAVAX)

Use Cases

  • Pre-flight validation in staking UIs

  • Computing whether a user can afford to become a validator/delegator

  • Building informational staking calculators

Error Handling

Status Code
Error Message
Cause

404

Not Found

Missing or invalid <ACCESS-TOKEN>

-32602

Invalid params

Request parameters are missing or malformed

429

Too Many Requests

Rate limit exceeded for your plan

SDK Integration

Last updated

Was this helpful?