RPC reads
RPC reads
RpcClient::new(url) uses custom chain access. RpcClient::hosted(client) uses authenticated hosted access. Reuse clients across operations. with_commitment selects processed, confirmed, or finalized state; the default is processed.
| Method | Result |
|---|---|
raw_account, account, require_account | Raw or typed records. |
multiple_accounts | Contextual batch with matching response count. |
program_accounts, program_snapshot | Filtered typed records or contextual snapshots. |
validate_market | Market with the expected payment mint. |
model_books | Canonical model, terms, and capacity bindings. |
balance, token_balance, rent | Exact integer amounts. |
transaction | Historical transaction using at least confirmed commitment. |
Processed state can roll back. Choose the confirmation strength your operation requires. A single valid decoded record does not establish consistency with another observation. Hosted method policy can restrict otherwise supported SDK calls.