Solana
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Solana
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
On Solana, the account is the single primitive that everything else is built from. A wallet is an account, every deployed program is an account, and each SPL token holding lives in its own account too — there is no separate balance ledger hiding behind the scenes. Because programs are stateless, they read and write the data accounts they own, so understanding what an account stores and how it stays alive is the foundation for nearly every read you will make against https://solana.therpc.io/YOUR_API_KEY. After this guide you will be able to fetch an account's full state, tell native SOL from lamports, calculate the rent-exempt minimum for a given data size, and avoid the common decoding and precision mistakes that trip up newcomers.
lamports balance, an owner (the program that controls it), a raw data byte buffer, an executable flag (true for programs), a rentEpoch field, and a fixed space — the byte size chosen when the account was created.1 SOL = 1,000,000,000 lamports (1e9), so a 1 SOL wallet reports lamports: 1000000000.data, which is how Solana programs store on-chain state.getAccountInfo returns null when the address has never been funded or created. A null result is not an error — it simply means the account does not yet exist.getMinimumBalanceForRentExemption for the account's data size and fund new accounts with at least that many lamports, or the runtime may garbage-collect them.base64 (or base64+zstd for large buffers) for any account whose data exceeds 128 bytes — the default base58 encoding fails above that size.null result before reading owner, lamports, or data; a missing account is normal, not an exception to crash on.getMultipleAccounts in one call instead of firing a separate getAccountInfo per address — fewer round trips and lower compute-unit cost.1e9 only for display. Doing arithmetic in floating-point SOL silently loses precision at large balances.