Solana
Solana
Solana
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
getStakeMinimumDelegation returns the smallest amount of SOL that a Solana stake account is allowed to delegate to a validator. The Solana runtime enforces this floor at the protocol level, so a staking flow needs the live value rather than a hardcoded constant. POST a JSON-RPC 2.0 request to https://solana.therpc.io/YOUR_API_KEY and the node returns an RpcResponse whose context carries the slot and whose value is the minimum delegation expressed as a u64 in lamports (1 SOL = 1,000,000,000 lamports).
| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 1 | config | object | لا | Options: commitment. |
| النوع | الوصف |
|---|---|
| object | RpcResponse wrapping a u64 minimum delegation in lamports. |
| الكود | الرسالة | السبب |
|---|---|---|
-32602 | Invalid params | A param is missing, of the wrong type, or malformed (e.g. a non-base58 pubkey or a bad config field). |
-32603 | Internal error | The node hit an internal error serving the request — retry, and reduce the requested range/encoding if it persists. |
RpcResponse envelope — read result.value, not the top-level result. Treating the whole object as the amount will give you the context block instead of the minimum.