Skip to main content

Payment flows on Solana include five core concepts:
  1. wallets for sender and recipient
  2. stablecoins as transferred asset type (USDC, USDG, …)
  3. token accounts to hold balances
  4. fees for transactions and account creation
  5. transactions to execute the transfer
Our token API’s optimize the account creation cost component. You typically create an account (1) when onboarding a new user, and (2) when the recipient does not hold the transferred token yet.
LightSPL / Token 2022
Transfer~$0.001~$0.001
Create Token Account~$0.001 (0.00001 SOL)~$0.30 (0.0029 SOL)
Transfer + Create Token Account~$0.001 (0.00001 SOL)~$0.30 (0.0029 SOL)
While transfer cost is identical, you can expect ~$0.30 total when creating a new token account using SPL/Token 2022. With Light Token, the total cost will be around $0.001, regardless of whether a new account is created. Your users use the same stablecoins, just stored more efficiently.
The token standard pays rent-exemption cost for you. To prevent griefing, “rent” is paid over time to keep an account in memory. This is dealt with under the hood in a way that doesn’t disrupt the UX of what your users are used to with SPL-token.Rent-exemption: paid by a rent sponsor PDA.Top-ups: paid by the fee payer.The feePayer on the transaction bumps a small virtual rent balance (766 lamports by default) on each write to keep the account active (hot balance). Set your application as the fee payer so users never interact with SOL.Hot-Cold Lifecycle of Accounts.Accounts get auto-compressed (cold balance) when the virtual rent balance goes below a threshold (eg 24h without write bump). The cold account’s state is cryptographically preserved on the Solana ledger. Users only interact with hot accounts and load the cold balance in-flight when using the account again.
Account lifecycle
Account lifecycle
You can abstract fees entirely so users never interact with SOL.

API Comparison

Transactions with Light Token API’s mirror SPL / Token 2022, so you can build transactions with a similar developer experience. For example, here is the creation of an associated token account:

Token Extensions

Token extensions introduce optional features you can add to a token mint or token account through extra instructions.
ExtensionDescription
MetadataPointerPoints a mint to the account that stores its metadata.
TokenMetadataStores token name, symbol, and URI directly on the mint.
InterestBearingConfigDisplays a UI-adjusted balance that accrues interest over time.
GroupPointerPoints a mint to the account that stores group configuration.
GroupMemberPointerPoints a mint to the account that stores group member configuration.
TokenGroupStores group configuration directly on the mint (e.g., NFT collections).
TokenGroupMemberStores group member configuration directly on the mint.
MintCloseAuthorityAllows a designated authority to close a mint account.
TransferFeeConfigWithholds a percentage of each transfer as a fee.
DefaultAccountStateSets the initial state (e.g., frozen) for newly created token accounts.
PermanentDelegateGrants an authority unrestricted transfer and burn rights over all accounts for the mint.
TransferHookInvokes a custom program on every transfer via CPI.
PausableAllows an authority to pause all minting, burning, and transfers.
ConfidentialTransferMintConfigures auditor keys for confidential (encrypted) transfers.
ConfidentialTransferFeeConfigEncrypts withheld transfer fees under an auditor’s public key.
ConfidentialMintBurnAllows minting and burning of tokens with encrypted amounts.
Learn more on extensions here: Extensions.

Start Integrating

General Integration Guide

When using Privy Wallets

When using Wallet Adapter


Didn’t find what you were looking for?

Reach out! Telegram | email | Discord