Solana RPC for exchanges, custodians and on‑ramps

Credit a deposit, sweep deposit addresses, follow a withdrawal to finalized and total your reserves, on one key at services.carbium.sh. Carbium is the read and send layer under your wallet desk: it holds no keys, takes no custody and moves no funds.

Deposits

100,000

Deposit addresses one webhook watches on Pro

Sweeps

100 a call

Balances read together, all from one slot

Withdrawals

256 a call

Signatures followed to finalized at once

Deposits

How do I detect and credit a Solana deposit?

Watch the right address for each asset, read what the transaction moved, and credit only a mint on your own list, at finalized, once a signature. SOL changes the wallet itself. A token lands in a token account derived from the wallet, and the transfer can leave the wallet out.

One deposit wallet

Customer 20418

7dRk…Qm3x

  • SOL

    Lands in the wallet itself

    Watch the wallet address

  • USDC

    Lands in its token account for USDC

    Watch that token account

  • USDT

    Lands in its token account for USDT

    Watch that token account

A token account's address is worked out from the wallet, the token program and the mint. Nothing new is generated.

Deposit intake

Sample deposits

  1. 250.00USDCEPjF…Dt1v

    1. Succeeded: passed
    2. Mint on your list: passed
    3. Your address gained: passed
    4. Finalized: passed

    CreditBook it once, keyed on its signature.

  2. 1,000,000USDClook‑alike9xQe…k2Lp

    1. Succeeded: passed
    2. Mint on your list: failed
    3. Your address gained: not reached
    4. Finalized: not reached

    QuarantineThe same name on another mint. Keep the row, credit nothing.

  3. 40.00USDTEs9v…wNYB

    1. Succeeded: failed
    2. Mint on your list: not reached
    3. Your address gained: not reached
    4. Finalized: not reached

    SkipThe transaction failed, so nothing moved.

  4. 1.20SOLnative

    1. Succeeded: passed
    2. Mint on your list: passed
    3. Your address gained: passed
    4. Finalized: failed

    WaitSeen at confirmed. Credit it at finalized.

  1. Hand out an address that exists

    One wallet a customer. Its token account for each mint you accept is derived, never generated, but it has to exist before a transfer can land. Check 100 of them a call and create the missing ones from your own funding account.

  2. Watch the address the transfer names

    List the wallet for SOL and each token account for its mint. A webhook sends one signed POST for every finalized transaction that touches a listed address, up to 100,000 addresses a webhook on Pro. How a delivery is signed and retried.

  3. Read the change inside the transaction

    getTransaction carries every balance before and after, so you credit what that one transaction added to your address. Two balance reads around a notification can merge two deposits into one.

  4. Credit once, at finalized

    Key your ledger on the signature and the address. Behind the feed, list each address's latest signatures on a timer and credit any you have not seen: a feed can drop, a ledger must not. Deposit alerts, in code.

  • Credit by mint, never by name

    Anyone can create a token named USDC, with six decimals and the same logo. Keep a short list of the mint addresses you accept and compare them exactly. Judge each mint line of a transaction on its own.

    Fake token deposit filter
  • A shared address needs its memo

    Where customers share one address, getSignaturesForAddress returns each signature with its memo. Credit an exact match. A missing or unknown memo goes to a queue for a person, never to a guess.

    Missing-memo deposit queue
  • A watch list that grows daily

    A webhook's address list is replaced whole on each change, and an account may make 120 changes in 10 minutes. Add new deposit addresses in batches, not one call a customer.

    Webhooks reference

Sweeps

How do I sweep Solana deposit addresses?

Read the balances 100 addresses a call, queue the ones worth a transaction, and let a separate signer move them. The scan needs public keys only, so the process that holds your API key never holds a signing key.

One call

getMultipleAccounts

  • 100 addresses
  • 1 slot
  • 1,005 credits

Worth a sweep from

47 worth a sweep63.23 SOL to move

  • worth a sweep
  • under the threshold
  • empty
  • not a plain wallet

The sweep queue

Five states

  1. pending

    Set by the scan

    At or over the threshold, after the fee.

  2. claimed

    Set by your signer

    Taken by one signer, in one statement.

  3. swept

    Set by the scan

    Was queued, now reads under the threshold.

  4. idle

    Set by the scan

    Under the threshold, nothing queued.

  5. skip

    Set by the scan

    Owned by a program, or holding data.

Sample balances. The scan reads and writes the queue; the signer claims a row, reads the balance again and signs.
sweep-scan.mjs
// sweep-scan.mjs: which deposit addresses hold enough SOL to sweep?
// Node 18 or later: fetch is built in. It reads only: no private key is
// loaded and nothing is signed or sent. Your signer makes the transfer.
// CARBIUM_KEY=your-key node sweep-scan.mjs <address> [<address> ...]
const URL = "https://services.carbium.sh";
const SYSTEM = "11111111111111111111111111111111";
const BATCH = 100; // addresses a call: one call is answered from one slot
const FEE = 5000n; // lamports: the base fee of a one-signature transfer
const MIN = 10_000_000n; // lamports worth a sweep: yours to set
const PAUSE = 7000; // ms between calls: 7000 suits the Dev plan's rate

async function rpc(method, params) {
  const res = await fetch(URL, {
    method: "POST",
    headers: {
      "content-type": "application/json",
      "x-api-key": process.env.CARBIUM_KEY,
    },
    body: JSON.stringify({ jsonrpc: "2.0", id: 1, method, params }),
  });
  const { result, error } = await res.json();
  if (error) throw new Error(method + ": " + error.message);
  return result;
}

// One row for the queue. A missing account was never funded, or is empty.
// One owned by a program, or holding data, is not a plain wallet: skip.
function judge(address, account) {
  if (!account) return { address, state: "idle", lamports: "0" };
  const plain = account.owner === SYSTEM && account.data[0] === "";
  const lamports = BigInt(account.lamports);
  const worth = lamports - FEE >= MIN;
  const state = !plain ? "skip" : worth ? "pending" : "idle";
  return { address, state, lamports: String(lamports) };
}

const addresses = process.argv.slice(2);
for (let i = 0; i < addresses.length; i += BATCH) {
  const batch = addresses.slice(i, i + BATCH);
  const { context, value } = await rpc("getMultipleAccounts", [
    batch,
    { encoding: "base64", commitment: "finalized" },
  ]);
  console.log("slot", context.slot);
  batch.forEach((address, j) => console.log(judge(address, value[j])));
  if (i + BATCH < addresses.length) {
    await new Promise((done) => setTimeout(done, PAUSE));
  }
}
Run on 3 December 2026 against the live service, on 12 addresses: funded wallets, an empty address and two program-owned accounts, all answered from one slot. One call of 100 addresses costs 1,005 credits. RPC reference.
A sweep scan on each Carbium RPC plan: addresses a call, balance reads a second, and how long the plan's rate takes over 100 and over 10,000 addresses
PlanAddresses a callBalance reads a second100 addresses every10,000 addresses in
Free1000.5about 3 minabout 5.6 h
Dev100156.67 sabout 11 min
Business100502 sabout 3 min
Pro3004000.25 s25 s
An address in a call counts as one balance read, at 10 credits each plus 5 a call. The last two columns are the address count divided by the plan's rate: the pace of a scan that keeps running. Rates are per account, so a second key adds none. Read 3 December 2026: rate limits.
  • The keys stay with the signer

    The scan holds no private key. A signer on its own host claims a queued row, then picks the destination itself and reads the balance again before it signs: whoever takes the scanner's host gets an API key and the queue's rows, and no signing key.

    Deposit sweep queue, in code
  • Take it all, or leave the minimum

    A sweep that empties an address is accepted. One that leaves less than the rent minimum behind fails: 650,240 lamports on the day of the read, from getMinimumBalanceForRentExemption. The base fee of a one-signature transfer is 5,000 lamports.

  • Tokens are a pass of their own

    A token deposit sits in a token account, and moving it needs the owner's signature and SOL for the fee. Read those accounts with the same batched call and compare the token amount, not the lamports.

    Balances for many accounts

Withdrawals

How do I track a Solana withdrawal to finalized?

Store each withdrawal's signature and its lastValidBlockHeight before you send. One call then reports the whole queue, 256 signatures at a time, and block height alone says when a new transaction is safe.

Withdrawal queue

One pass

Finalized block height454,902,118read first, then the statuses

  1. W-482111,500.00 USDC

    Level reachedfinalized

    Blocks lefton chain

    finalized

    Close the withdrawal in the ledger.

  2. W-4821212.40 SOL

    Level reachedconfirmed

    Blocks lefton chain

    landing

    Wait for finalized.

  3. W-48213310.00 USDT

    Level reachedno status

    Blocks left61

    in flight

    Keep polling. The same signed bytes may go out again.

  4. W-4821475.00 USDC

    Level reachedfinalized

    Blocks lefton chain

    failed

    Read the error before any retry.

  5. W-482152.00 SOL

    Level reachedno status

    Blocks leftpast by 18

    expired

    Safe to sign a new transaction once the ledger search finds no status either.

  6. W-48216640.00 USDC

    Level reachedno status

    Blocks leftnone stored

    unseen

    No height was stored. Hold, never resend on a guess.

  7. W-4821788.00 USDT

    Level reachedno status

    Blocks leftnot read

    unread

    The status call failed. Run the pass again.

Sample rows. Two states carry the weight: finalized closes the withdrawal, and expired is the only one that allows a second transaction for the same payout.
  1. Write the row before you send

    The signature, the lastValidBlockHeight that getLatestBlockhash returned, the destination and the amount. A row with no stored height can only ever be held.

  2. Read the height first, then the statuses

    getBlockHeight at finalized, then getSignatureStatuses for up to 256 signatures: 5 credits a call. Before a row is marked expired, read its signature again with searchTransactionHistory, at 10 a signature plus 5 credits: without it, a withdrawal that landed and left the recent status cache reads as no status. In that order, no status after a passed height is final.

  3. Keep every signature on the row

    After a rebuild a payout has two signatures, and either may be the one that finalized. Poll them all and close on the first. The retry rule, drawn.

  4. Act on a failure only at finalized

    A failure seen at confirmed sits on a fork that can still be dropped. After finalized, read the error: a closed or frozen destination fails the same way every time, and each attempt costs a fee.

  • What a withdrawal costs you

    The base fee is 5,000 lamports a signature, and the priority fee is yours to set. The large line is a first-time recipient: opening their token account took 1,488,440 lamports on the day of the read. Read it live with getMinimumBalanceForRentExemption.

    Withdrawal fee cost model
  • A send is forwarded once

    Carbium does not retry a send. Pass maxRetries: 0 so the node that receives it does not rebroadcast it either. A send costs 20 credits without preflight and 75 with it.

    Sending, in the reference
  • One signature on a screen

    For the withdrawal a customer is looking at, signatureSubscribe over WebSocket sends one notification at the level you name, then ends. Subscribe before you send. The batch pass stays as the job that decides about expiry.

    Withdrawal tracker, in code

Reserves

How do I total exchange reserves on Solana?

Sum what your hot, cold and deposit wallets hold, with the slot each total was read at. One call answers up to 100 wallets from the same slot, so a move between two of your own wallets is never counted twice. It is the asset half of a proof of reserves: what you owe customers is in your ledger.

On chain

Read at finalized

  • Hot2 wallets

    1,204.50 SOL

  • Cold3 wallets

    18,340.00 SOL

  • Deposit95 wallets

    310.25 SOL

Total

19,854.75 SOL

slot 476,891,902one call, one slotdown 12.40 since the last snapshot

4,210,880.00 USDCread a wallet at a time, 2 slots apart

In your ledger

Not on chain

What you owe customers

Customer balances, holdings off chain and any attestation are yours. No call returns them.

Sample figures. Only the wallets you list count: the chain cannot tell which addresses are yours.
  • One slot for the SOL total

    Wallets read one after another land in different slots, so a transfer between two of them can be counted twice or missed. getMultipleAccounts answers every wallet in the call from one slot and returns that slot.

    Same-slot snapshot
  • Tokens are read a wallet at a time

    getTokenAccountsByOwner with the mint as its filter: 205 credits for up to 20 rows, at one wallet every 14 seconds on Dev and 125 a second on Business. Keep the earliest and latest slot of the answers, and record no total when a read fails.

    Exchange reserve tracker
  • A second opinion on a vault

    A custody vault is an address with balances and a history, whoever signs for it. A snapshot loop that reads only the chain lets finance compare the custodian's console with what happened.

    Custody vault monitor

Plans

Which plan does an exchange backend need?

Three things set it: whether you need webhooks, which start on Dev at $20 a month, how many deposit addresses you watch, and how fast you read balances. Every rate is for the account, shared by all of its keys.

  • Free

    $0a month

    Build and test

    Write the deposit check and the scan against mainnet on 500K credits, granted once. No webhooks: poll, or subscribe over WebSocket.

    Balance reads a second
    0.5
    Addresses a webhook
    None
    Webhooks
    None
    Status calls a second
    1
    Credits, granted once
    500K
  • Dev

    $20a month

    A pilot or a first corridor

    5 webhooks of 1,000 addresses each, and 15 balance reads a second.

    Balance reads a second
    15
    Addresses a webhook
    1,000
    Webhooks
    5
    Status calls a second
    6
    Credits a month
    10M
  • Business

    $250a month

    A custodian's vault set

    25,000 addresses a webhook, 50 balance reads a second and 20 status calls a second.

    Balance reads a second
    50
    Addresses a webhook
    25,000
    Webhooks
    25
    Status calls a second
    20
    Credits a month
    50M
  • Pro

    Fits a deposit book

    $500a month

    An exchange's deposit book

    100,000 addresses a webhook, 400 balance reads a second and 300 addresses a call.

    Balance reads a second
    400
    Addresses a webhook
    100,000
    Webhooks
    50
    Status calls a second
    100
    Credits a month
    200M

Balance reads are getMultipleAccounts addresses, each counted as one. Status calls take up to 256 signatures each, and transaction reads run at 1.2, 5 and 25 a second on Dev, Business and Pro, so read each deposit's transaction once and store it. Read 3 December 2026.

Limits

What does Carbium not do for an exchange?

Carbium is infrastructure under a wallet desk. Six things it does not do, so nothing surprises you in production.

  • It holds no keys and no funds

    Carbium is not an exchange, a custodian or an on-ramp. It answers reads and forwards the transactions your own keys signed. Signing, key storage, licences and customer checks are yours.

  • Rates are per account, not per key

    Every rate on this page is per account and shared by all of its keys, so the scan and the withdrawal pass draw on one budget, whichever key each uses. Size the plan by the busiest second of all your jobs together.

    Carbium RPC pricing
  • A webhook carries 200 transactions a slot

    Webhooks fire at finalized only and start on Dev. One webhook takes at most 200 transactions of a single slot, the first in block order. Spread busy addresses over several webhooks, and keep a polling pass behind them.

    WebSockets and webhooks
  • No balance at a past slot

    A balance is read as it stands now, so a reserve series starts at your first snapshot. Signatures per address go back up to 30 days, and there is no archive behind getTransaction. Store what you read.

  • No screening and no verdict

    A read says which mint arrived, from which account and how much. It does not say whether a sender is sanctioned or whether to credit. Screening, risk rules and the credit decision belong to your ledger.

  • Deliveries are raw transactions

    A webhook sends one transaction in the shape getTransaction returns, or a short form marked truncated: true when the body passes 64 KB. There is no parsed deposit event and no webhook on a balance: the net change for your address is yours to work out.

    Webhook deliveries

Questions

The reference on carbium.sh has every call and limit. For anything else, ask the team on the Carbium Discord.

Exchange examples, in code

Is Carbium an exchange or a custodian?

No. Carbium is infrastructure: it answers Solana RPC calls and forwards transactions your own keys signed. It holds no keys, takes no custody and moves no funds. An exchange, a custodian or an on-ramp builds its deposits, sweeps and withdrawals on top and keeps its own keys, its own customer checks and its own licences.

How many confirmations does a Solana deposit need?

The answer is a level, not a number. A status call reports one of three for a transaction: processed, confirmed or finalized. Credit a deposit at finalized, where it can no longer be undone. Carbium's webhooks fire at that level. What you show a customer at confirmed is a message decision, and what you release before finalized is your own risk policy. Name the level on every call, because @solana/kit fills in confirmed when a call leaves it out.

Which address do I watch for a USDC deposit on Solana?

The token account, not the wallet. A token transfer names the token account that receives it and can leave the owner's wallet out, so a watch on the wallet sees SOL arrive and misses tokens. List the wallet for SOL and the wallet's token account for each mint you accept.

Exchange deposit alerts, in code

Does a customer need a separate deposit address for each token?

No. A customer has one wallet address, and the token account for each mint is worked out from the wallet, the token program and the mint. The account still has to exist before a transfer can land in it. Many senders create it, and a sender that does not sees the transfer fail, so create it yourself before the address goes out. Opening one took 1,488,440 lamports on the day of the read, paid by whoever creates it.

Deposit account coverage check

How do I stop a fake USDC deposit from being credited?

Compare the mint address, never the name. Anyone can create a token called USDC with six decimals and the same logo, and it reads as USDC on an explorer. Keep a list of the mint addresses you accept, credit only an exact match on a transaction that succeeded and is finalized, and keep the rejected deposit as a record for the support ticket that follows.

Fake token deposit filter

How many deposit addresses can I watch with webhooks?

One webhook watches up to 1,000 addresses on Dev, 25,000 on Business and 100,000 on Pro, and an account registers 5, 25 or 50 webhooks. Deliveries run at up to 10, 50 and 200 a second, and one webhook carries at most 200 transactions of a single slot. The Free plan has no webhooks.

WebSockets and webhooks

How many balances can one call read?

One getMultipleAccounts call reads up to 100 addresses on the Free, Dev and Business plans and up to 300 on Pro, all answered from one slot. Each address counts as one balance read and costs 10 credits, plus 5 a call, so 100 addresses cost 1,005 credits.

Does the sweep scanner need my private keys?

No. Deciding which addresses are worth a sweep needs public keys only. Keep the signing keys in a separate service on its own host, which claims a queued row, chooses the destination itself and reads the balance again before it signs. The process that holds the API key and talks to the network can then be lost without losing funds.

Deposit sweep queue, in code

When is it safe to send a withdrawal again?

Sending the same signed bytes again is safe at any time before the blockhash expires, because the signature is the same and the chain runs it once. Signing a new transaction is safe only when the old signature has no status, read with searchTransactionHistory, and the finalized block height is past its lastValidBlockHeight. Before that the first transaction can still land, and a second one would pay the customer twice.

The retry rule, drawn

How many withdrawals can one status call check?

getSignatureStatuses takes up to 256 signatures and answers one entry for each, in order. A call costs 5 credits. With searchTransactionHistory, which looks past the recent status cache for a withdrawal sent hours ago, it costs 10 credits a signature plus 5, so 2,565 for 256. Send a longer queue in chunks.

Withdrawal confirmation tracker

Does a reserve total prove an exchange is fully reserved?

No. It gives the asset side: what the wallets you list hold, with the slot each figure was read at. The liability side comes from your own ledger, and an attestation needs both, signed off by whoever audits you. The chain cannot tell which addresses are yours, so a wallet left off the list is outside the total.

Exchange reserve tracker

What happens to a deposit sent without a memo?

It is on chain, final and unclaimed. Where customers share one deposit address the memo is the only field that says whose money arrived, so a deposit with a missing or unknown memo cannot be matched on its own. Write it to a queue with its signature and its fee payer, and credit nothing until a person has checked the sender's claim against the row.

Missing-memo deposit queue

Do I need a dedicated node to run an exchange on Solana?

Not for these jobs. A deposit check, a sweep scan, a withdrawal pass and a reserve snapshot are ordinary calls over HTTPS at services.carbium.sh, under a plan key. What you size is the plan: balance reads a second, status calls a second and the addresses one webhook takes are each listed by plan.

Carbium RPC pricing

Deposits in, withdrawals out, reserves counted

One key at services.carbium.sh under the four jobs of a wallet desk. Start on the Free plan, add webhooks on Dev, and keep your own keys and your own ledger throughout.

Exchange examples in the Carbium Library