services
Get a key

library / How to use Solana

Build, sign and send transactions

Build, sign and send transactions in the Carbium Library: 3 working Solana examples, among them Fee payer eligibility check and Transaction size checker.

  • Fee payer eligibility check HS0143

    Check whether a wallet can pay transaction fees, using the owner and data-length test, with getAccountInfo on Carbium RPC.

  • 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.

  • Token balance diff from simulation HS0026

    Diff token account balances before and after simulateTransaction, and check the same diff on landed transactions, in one read-only TypeScript file.