Solana
Solana
Solana
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
On Solana, an account must hold a minimum SOL balance proportional to its size to be rent-exempt; below that threshold the runtime can reclaim it. getMinimumBalanceForRentExemption takes a data length in bytes and returns that minimum as a u64 lamport amount (1 SOL = 1,000,000,000 lamports), so you fund a new account with exactly enough SOL to keep it alive permanently. Send it as a JSON-RPC 2.0 POST with positional params to https://solana.therpc.io/YOUR_API_KEY.
createAccount instruction.| # | Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|---|
| 1 | dataLength | integer | Ja | Account data size in bytes. |
| 2 | config | object | Nein | Options: commitment. |
| Typ | Beschreibung |
|---|---|
| integer | u64 minimum lamports for rent exemption at the given size. |
| Code | Meldung | Ursache |
|---|---|---|
-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. |