Portal Community

balance

Returns an account's balance in both lamports (the base unit) and SOL.

FieldTypeRequiredDescription
addresstext✓ YesBase58 Solana address, e.g. 11111111111111111111111111111111
clusterselectNoSee Clusters. Defaults to Solana:DefaultCluster.

Example response:

{
  "lamports": 2039280,
  "sol": 0.00203928
}
Missing address: Omitting address returns validation error VAL_MISSING_ADDRESS'address' is required.

getInfo

Returns the raw account record beyond just the balance — owner program, data length/content, and rent status.

FieldTypeRequiredDescription
addresstext✓ YesBase58 Solana address.
clusterselectNoSee Clusters. Defaults to Solana:DefaultCluster.

Example response:

{
  "owner": "11111111111111111111111111111111",
  "lamports": 2039280,
  "executable": false,
  "rentEpoch": 18446744073709551615,
  "dataBase64": ""
}
Response FieldMeaning
ownerThe program that owns this account (e.g. the System Program for a plain wallet, the SPL Token program for a token account).
lamportsBalance in lamports (same value balance returns).
executableWhether this account's data is a loaded program (BPF bytecode) rather than plain state.
rentEpochThe epoch after which the account becomes subject to rent collection (a very large value generally signals rent-exemption).
dataBase64The account's raw data, base64-encoded. Empty for a plain wallet account; populated for program-owned accounts. Interpreting the bytes requires knowing the owning program's layout — see Program Operations.
balance vs. getInfo: Use balance when you only need the lamport/SOL numbers — it's the lighter call. Use getInfo when you need to know what program owns the account or want to inspect its raw data, e.g. before deciding whether an address is a plain wallet or a program-owned account (token account, stake account, PDA, etc.).