TriportRPC

getStakeMinimumDelegation

Last updated:

`getStakeMinimumDelegation` returns the smallest amount of stake, in lamports, that a stake account is allowed to delegate to a validator. Delegating less than this threshold is rejected by the runtime, so you should query it before building a `StakeProgram.delegate` instruction and size the delegation at or above the returned value.

The minimum is a cluster-wide parameter that changes only with a feature activation, so the result is effectively constant on a given cluster and is safe to cache. Use it together with the rent-exempt reserve when deciding how much to fund a new stake account: a stake account must hold at least the rent-exempt minimum plus the delegation minimum to be both rent-exempt and delegatable.

Unlike `getMinimumBalanceForRentExemption`, this method returns an `RpcResponseU64` object — the lamports value lives under `value`, wrapped in the standard `context` envelope that reports the slot the result was evaluated at.

Parameters

getStakeMinimumDelegation parameters
NameTypeRequiredDescription
configCommitmentConfigNo

Returns

getStakeMinimumDelegation return value
FieldType
resultobject

Examples

curl https://<your-endpoint>/ \
  -X POST -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"getStakeMinimumDelegation","params":["<config>"]}'
const res = await fetch("https://<your-endpoint>/", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
  "id": 1,
  "method": "getStakeMinimumDelegation",
  "params": [
    "<config>"
  ],
  "jsonrpc": "2.0"
}),
});
const data = await res.json();
import requests
resp = requests.post("https://<your-endpoint>/", json={"id":1,"method":"getStakeMinimumDelegation","params":["<config>"],"jsonrpc":"2.0"})
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Networks: mainnet, devnet, testnet.
  3. Credit cost: 1 per call.

FAQ

What does getStakeMinimumDelegation do?
Returns the minimum number of lamports required to delegate a Solana stake account.
How many credits does getStakeMinimumDelegation cost?
getStakeMinimumDelegation costs 1 credit(s) per call on Triport by default.
Is getStakeMinimumDelegation available over WebSocket?
getStakeMinimumDelegation is an HTTP JSON-RPC method.