Accounts and balances
- Account data encodings HS0019
Fetch an account with getAccountInfo in base64, base58, zstd and jsonParsed on Carbium RPC, then decode the bytes in one read-only TypeScript file.
- BigInt lamport amounts HS0046
Keep lamports and raw token amounts exact in JavaScript: read them as bigint, print them next to Number, and parse raw JSON-RPC bodies without losing digits.
- Rent-exempt minimum calculator HS0020
Get the rent-exempt minimum in lamports for any account size with getMinimumBalanceForRentExemption, in one read-only TypeScript file.
- Same-slot multi-account snapshot HS0045
Read several Solana accounts as of one slot with getMultipleAccounts, check context.slot against separate reads, and see where the guarantee stops.
- SOL balances for many accounts HS0016
Read the SOL balance of a whole list of accounts with getMultipleAccounts, 100 addresses per call, in one read-only TypeScript file on Carbium RPC.
SPL tokens
- Associated token address lookup HS0022
Derive a wallet's associated token account address for any mint with @solana/kit, then confirm it on chain with two read calls.
- Largest token holders HS0048
Rank the top 5 holders of a Solana mint by owner from a candidate set, since getTokenLargestAccounts answers -32601 on Carbium.
- SPL token balance HS0001
Read a wallet's SPL token balance, such as USDC, with getTokenAccountBalance in one read-only TypeScript file on Carbium RPC.
- Token account layout decoder HS0021
Read the holder wallet, mint and amount from a Solana token account's raw bytes with getAccountInfo, in one read-only TypeScript file on Carbium RPC.
- Token accounts by owner HS0017
List every SPL token a wallet holds, with amounts, using getTokenAccountsByOwner on the Token and Token-2022 programs in one TypeScript file.
- Token mint supply and authorities HS0005
Read an SPL token's supply, decimals, mint authority and freeze authority with one getAccountInfo call in a read-only TypeScript file on Carbium RPC.
- Transfer vs TransferChecked decoder HS0047
Tell SPL Token Transfer from TransferChecked in real transactions and decode amount, decimals and accounts from the raw instruction bytes.
- Wrapped SOL account reader HS0023
The wSOL mint address, plus a read-only TypeScript file that lists a wallet's wrapped SOL accounts with lamports, amount and rent reserve.
Token-2022
- Token-2022 metadata lookup HS0013
Find where a Token-2022 mint keeps its metadata, with or without a Metadata Pointer, using read-only TypeScript calls on Carbium RPC.
- Token group membership check HS0050
Prove a Token-2022 mint belongs to a token group by reading its member extension and the group's own record with read-only calls on Carbium RPC.
- Token program detection HS0025
Tell a legacy SPL token from a Token-2022 token with one account read, list the extensions that change a transfer, and derive the right token account.
- Transfer fee calculator HS0024
Compute the Token-2022 transfer fee for any amount from the mint's transferFeeConfig, picking the older or newer rate by epoch, with read-only TypeScript.
Build, sign and send transactions
- Transaction size checker HS0027
Measure how close real Solana transactions run to the 1232-byte limit, then pick the fix: fewer accounts, a lookup table or split transactions.
Confirmation and retries
- Consistent reads with minContextSlot HS0029
Pin a Solana RPC read to a slot floor with minContextSlot, and retry timeouts, 429s and stale-node refusals with one small TypeScript wrapper.
- Dropped transaction detector HS0028
Tell a dropped Solana transaction from a slow one with getSignatureStatuses and the last valid block height, in one read-only TypeScript file.
- Node-behind error handling HS0057
Handle Solana RPC error -32005 (node is behind by N slots) by reading numSlotsBehind, waiting, then retrying a read or resending the same signed bytes.
- Solana commitment levels HS0003
What the processed, confirmed and finalized commitment levels return on a Solana RPC read, shown with one read-only TypeScript file on Carbium.
- Transaction status check HS0008
Check whether a Solana transaction landed, failed or finalized with getSignatureStatuses, in one read-only TypeScript file on Carbium RPC.
Priority fees and compute
- Compute budget audit HS0058
Audit recent transactions for the compute limit they requested, whether it came from the default or an instruction, and how many units they used.
- Compute unit limit from simulation HS0031
Read the compute units a transaction used, add a margin and set the compute-unit limit, from the numbers a simulation or a landed run returns.
- Priority fee per compute unit HS0015
Sample recent prioritization fees for your writable accounts and turn percentiles into a micro-lamports per compute unit price and a lamport fee.
- Transaction fee breakdown HS0030
Read one transaction and split its fee into the signature base fee and the priority fee, then check the split against the compute budget instructions.
Versioned transactions and lookup tables
- Lookup table contents reader HS0032
Read a Solana address lookup table: decode its authority, deactivation slot and stored addresses from account data in one read-only TypeScript file.
- Recent slot check for lookup tables HS0060
Fix 'is not a recent slot' when creating a lookup table: a read-only TypeScript file checks a slot against the SlotHashes sysvar on Carbium.
- Transaction version error -32015 HS0012
Fix JSON-RPC error -32015, Transaction version not supported, by setting maxSupportedTransactionVersion to 1 on getTransaction and getBlock calls.
- Versioned transaction round-trip HS0061
Fetch a transaction as base64, decode it with kit, encode it again and compare the bytes, so a versioned transaction passes between services unchanged.
History and parsing
- Inner instruction tree HS0035
Rebuild the nested inner instruction view Solana Explorer shows from getTransaction with jsonParsed, in one read-only TypeScript file on Carbium RPC.
- Logs grouped by instruction HS0064
Attach each logMessages line to the instruction that wrote it with a small call stack parser, in read-only TypeScript on Carbium RPC.
- Memo instruction reader HS0033
Find the Memo instruction in a Solana transaction from getTransaction with jsonParsed, top level or inner, in one TypeScript file on Carbium RPC.
- Program return data reader HS0063
Read a program's return data from a landed Solana transaction with getTransaction, and compare meta.returnData with every Program return log line.
- Signature history pagination HS0034
Page through an address's signature history with a before cursor, then read chosen transactions in full, in one read-only TypeScript file.
- Slot to timestamp conversion HS0062
Convert a Solana slot to a timestamp with getBlockTime, handle slots that have no block, and estimate a time from measured slot time.
WebSocket
- Account notification fields HS0037
Every field in an accountSubscribe notification on Solana, what it holds and how to decode it, shown with one read-only TypeScript watcher on Carbium.
- Closed account detection HS0038
Catch closed Solana accounts: programSubscribe can miss the close, so a TypeScript file tracks what it sees and reports accounts that vanish.
- Instruction log filter HS0067
Watch one program on logsSubscribe and print only transactions that ran a named instruction, matched inside that program's own log frame.
- Multi-wallet log watcher HS0011
Watch many Solana wallets with one logsSubscribe per wallet, reconnect on drops and backfill gaps with getSignaturesForAddress, in one TypeScript file.
- WebSocket keepalive and reconnect HS0036
Keep a Solana WebSocket alive with a silence watchdog, jittered backoff and a fresh subscribe, shown in one TypeScript file on Carbium.
Yellowstone gRPC
- gRPC account data-change filter HS0039
Print an account update only when its data bytes change, using a read-only WebSocket watcher on Carbium and the same check for a gRPC stream.
- Live gRPC filter updates HS0040
Change what a live Solana stream watches without reconnecting: how a gRPC request replaces filters, plus a WebSocket file that diffs the set.
Webhooks
- Address transaction webhooks HS0018
Relay each transaction that mentions your Solana addresses to a signed webhook, with one TypeScript file on Carbium's WebSocket and RPC.
- Webhook-to-RPC fetch retries HS0041
Fix getTransaction answering null for a webhook's signature with a backoff retry, in one read-only Node.js file on Carbium RPC.
Swap API
- Full-balance swap quote HS0044
Read a wallet's full SPL token balance in base units and pass it as the amount of a Carbium swap quote request, in one read-only TypeScript file.
- Quote mint validation, vendor-neutral HS0073
Catch a WrongSize mint error locally: check that a mint decodes to 32 bytes, exists and is owned by a token program before you request a quote.
- Solana swap API quote HS0007
Request a swap quote from Carbium's quote method on the RPC endpoint with one read-only TypeScript file, then read the reply before you build a swap.
- Swap route breakdown HS0043
Read the route behind a Carbium swap quote, leg by leg, at three input sizes, in one read-only TypeScript file.
- Swap slippage settings HS0042
Set swap slippage from price drift per second times the seconds before landing, with a read-only TypeScript file that prints the minimum output.
NFT metadata from the chain
- Bulk NFT metadata reader HS0006
Read name, symbol, metadata URI and collection for many NFT mints at once with getMultipleAccounts on Carbium RPC, in one read-only TypeScript file.
Anchor
- Anchor instruction decoder HS0014
Decode an Anchor program's instructions from a transaction: names, accounts and arguments, using the IDL stored on chain, on Carbium RPC.
Client libraries
- First Solana RPC API call HS0010
Make your first Solana RPC API call on Carbium: getHealth, getVersion and getSlot at each commitment, as one read-only TypeScript file.