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.
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.
250.00USDCEPjF…Dt1v
- Succeeded: passed
- Mint on your list: passed
- Your address gained: passed
- Finalized: passed
CreditBook it once, keyed on its signature.
1,000,000USDClook‑alike9xQe…k2Lp
- Succeeded: passed
- Mint on your list: failed
- Your address gained: not reached
- Finalized: not reached
QuarantineThe same name on another mint. Keep the row, credit nothing.
40.00USDTEs9v…wNYB
- Succeeded: failed
- Mint on your list: not reached
- Your address gained: not reached
- Finalized: not reached
SkipThe transaction failed, so nothing moved.
1.20SOLnative
- Succeeded: passed
- Mint on your list: passed
- Your address gained: passed
- Finalized: failed
WaitSeen at confirmed. Credit it at finalized.
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.
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.
Read the change inside the transaction
getTransactioncarries 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.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 filterA shared address needs its memo
Where customers share one address,
Missing-memo deposit queuegetSignaturesForAddressreturns 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.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.
- 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
pending
Set by the scan
At or over the threshold, after the fee.
claimed
Set by your signer
Taken by one signer, in one statement.
swept
Set by the scan
Was queued, now reads under the threshold.
idle
Set by the scan
Under the threshold, nothing queued.
skip
Set by the scan
Owned by a program, or holding data.
// 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));
}
}
| Plan | Addresses a call | Balance reads a second | 100 addresses every | 10,000 addresses in |
|---|---|---|---|---|
| Free | 100 | 0.5 | about 3 min | about 5.6 h |
| Dev | 100 | 15 | 6.67 s | about 11 min |
| Business | 100 | 50 | 2 s | about 3 min |
| Pro | 300 | 400 | 0.25 s | 25 s |
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 codeTake 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.
Finalized block height454,902,118read first, then the statuses
W-482111,500.00 USDC
Level reachedfinalized
Blocks lefton chain
finalized
Close the withdrawal in the ledger.
W-4821212.40 SOL
Level reachedconfirmed
Blocks lefton chain
landing
Wait for finalized.
W-48213310.00 USDT
Level reachedno status
Blocks left61
in flight
Keep polling. The same signed bytes may go out again.
W-4821475.00 USDC
Level reachedfinalized
Blocks lefton chain
failed
Read the error before any retry.
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.
W-48216640.00 USDC
Level reachedno status
Blocks leftnone stored
unseen
No height was stored. Hold, never resend on a guess.
W-4821788.00 USDT
Level reachedno status
Blocks leftnot read
unread
The status call failed. Run the pass again.
Write the row before you send
The signature, the
lastValidBlockHeightthatgetLatestBlockhashreturned, the destination and the amount. A row with no stored height can only ever be held.Read the height first, then the statuses
getBlockHeightat finalized, thengetSignatureStatusesfor up to 256 signatures: 5 credits a call. Before a row is marked expired, read its signature again withsearchTransactionHistory, 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.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.
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
Withdrawal fee cost modelgetMinimumBalanceForRentExemption.A send is forwarded once
Carbium does not retry a send. Pass
Sending, in the referencemaxRetries: 0so the node that receives it does not rebroadcast it either. A send costs 20 credits without preflight and 75 with it.One signature on a screen
For the withdrawal a customer is looking at,
Withdrawal tracker, in codesignatureSubscribeover 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.
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.
Hot2 wallets
1,204.50 SOL
Cold3 wallets
18,340.00 SOL
Deposit95 wallets
310.25 SOL
Total
19,854.75 SOL
4,210,880.00 USDCread a wallet at a time, 2 slots apart
What you owe customers
Customer balances, holdings off chain and any attestation are yours. No call returns them.
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.
Same-slot snapshotgetMultipleAccountsanswers every wallet in the call from one slot and returns that slot.Tokens are read a wallet at a time
Exchange reserve trackergetTokenAccountsByOwnerwith 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.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
Who it is for
Who runs deposits and withdrawals on Carbium RPC?
Exchanges, custodians and on-ramps run the same jobs from different desks. Each card opens a working example in the Carbium Library: a page that explains the job and a file that runs.
Support
A customer's hash, answered
Did it land, did it succeed, and what did it pay to their deposit address, in SOL and in tokens.
Support desk deposit lookup
Compliance
Who sent this deposit
The source wallet, the signer and the mint for each token credit, read from the transfer itself.
Deposit sender attribution
Onboarding
Proof a wallet is theirs
A small, unique transfer from the customer's own wallet, matched on source, amount and time.
Wallet ownership deposit test
On-ramps
Did the payout arrive
Each order from its payout signature to a finalized credit, with the amount the wallet received.
On-ramp fulfilment tracker
Custodians
Vaults, watched from outside
Balance changes, outflow alerts and new signatures on vault addresses, whichever custodian signs.
Custody vault monitor
Finance
The price of a withdrawal
Base fee, priority fee and recipient rent for three kinds of transfer, set against the fee you charge.
Withdrawal fee cost model
The Library's group for exchanges, custodians and on-ramps held 15 examples on 3 December 2026. Browse all of them.
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 pricingA 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 webhooksNo 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
Webhook deliveriesgetTransactionreturns, or a short form markedtruncated: truewhen 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.
Where to go next
The services under a wallet desk.
Push
WebSockets and webhooks
How to choose between them, how to verify a delivery, and every cap by plan.
WebSockets and webhooks
Stream
Carbon Stream, over gRPC
Every transaction that names your accounts on one stream, from the Dev plan, for address sets past what polling carries.
Carbon Stream
Plans
Carbium RPC pricing
Every plan's credits, rates and keys, side by side.
Compare plans
Questions
The reference on carbium.sh has every call and limit. For anything else, ask the team on the Carbium Discord.
Exchange examples, in codeIs 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 codeDoes 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 checkHow 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 filterHow 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 webhooksHow 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 codeWhen 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, drawnHow 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 trackerDoes 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 trackerWhat 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 queueDo 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 pricingMore use cases
The same key and host, put to other jobs.
Automated apps
Read the chain, listen on Carbon Stream, quote a route and send: the always-on loop on one key.
See the use case
Wallets
Balances, history, live updates, in-app swaps and sends for a Solana wallet, on one host.
See the use case
dApps and web apps
Reads, priority fees, sends and swaps for a Solana app in the browser, with the key kept server-side.
See the use case
Data pipelines and indexers
Seed over RPC, follow Carbon Stream, resume from a past slot and page history for an indexer.
See the use case
AI agents
A Solana API an agent can sign up for with a keypair, read in one file and call as JSON-RPC.
See the use case
Payments and stablecoins
Confirm a payment, get a signed webhook when an address is paid, reconcile and send payouts.
See the use case
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.
