| Traditional Payment Model | Solana | Description |
|---|---|---|
| Customer ID / Account number | Wallet address | Unique identifier for an account holder |
| Currency (USD, EUR) | Token Mint (USDG, USDC) | The asset type being transferred |
| Balance by currency | Token Account (ATA) | Holds a balance of a specific currency/mint |
Wallets: Senders and Receivers
Every payment involves two parties, each identified by a wallet address—a unique 32-byte public key (e.g.,7EcDhS...).
- Sender: The wallet initiating the payment. Must hold sufficient stablecoin account balance and sign the transaction.
- Receiver: The destination wallet. Does not need to sign or hold an existing balance.
- Fee Payer: Optional. Pays the network fee, so users can transact holding only stablecoins.
Stablecoins
On Solana, stablecoins are tokens, and each token is identified by its mint address. Common stablecoin mints on mainnet:| Token | Issuer | Mint Address |
|---|---|---|
| USDC | Circle | EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v |
| USDT | Tether | Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB |
| PYUSD | PayPal | 2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo |
| USDG | Paxos | 2u1tszSeqZ3qBWF3uNGPFc8TzMk2tdiwknnRMWGWjGWH |
When accepting payments, always validate the mint address and token program.
Tokens can share names but have different issuers and underlying assets.
Token Accounts
Wallets don’t hold tokens directly. Each wallet controls a token account for each token it holds, and a payment moves tokens from the sender’s token account to the receiver’s token account for the same mint:- One ATA per mint. A wallet has exactly one ATA for USDC, one for USDT, etc.
- Must exist before receiving. You cannot send tokens to an ATA that doesn’t exist.
- Sender typically creates. If the receiver’s ATA doesn’t exist, the sender can create it as part of the payment transaction.
Token Programs
Token accounts are managed by a token program, the onchain code that verifies transfers and updates balances. Solana has two:| Program | Address | Example Tokens that use this program |
|---|---|---|
| Token Program | TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA | USDC, USDT |
| Token-2022 | TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb | PYUSD, USDG |
Why this matters
ATAs are derived from three inputs:wallet + mint + token_program. Using the
wrong program produces an entirely different address:
transferChecked: it names the mint and its decimals, so the program
rejects a transfer that uses the wrong token or the wrong number of decimal
places. Token-2022 mints with the transfer fee extension, such as PYUSD, accept
only transferChecked; the plain transfer instruction fails with “Mint
required for this account to transfer tokens, use transfer_checked”.
owner field:
Fees
Solana payments involve up to three cost components:| Fee Type | SOL | USD (est.) | When |
|---|---|---|---|
| Base transaction fee | 5,000 lamports* | ~$0.0005 | Every transaction (bundle multiple payments to amortize) |
| Priority fee | Variable | Variable | Optional; faster inclusion during congestion |
| Account creation (rent) | ~0.0015 SOL† | ~$0.15 | Only when creating a new token account |
Transactions and Instructions
A transaction holds one or more instructions, such as “create token account” and “transfer 10 USDC”, and either all of them succeed or none do. A typical payment has two: create the receiver’s token account if needed, then transfer. You can also bundle several payments into one transaction to cut costs.Putting It Together
A typical payment flow:- Gather input. Get sender and receiver wallet addresses and the mint address of the token being transferred.
- Derive ATAs. Determine the token accounts for both parties.
- Build and sign. Construct the transaction with necessary transfer instructions, sign with the sender’s key.
- Send & Confirm. Transaction settles in under a second.
Next Steps
Interacting with Solana
Connect to the network and explore Solana payment data.
Send your first payment
Build and send a stablecoin transfer.
Make a sandbox x402 payment
Use Pay to make one wallet-approved x402 V2 request to a local API.
* a lamport is the smallest unit of SOL and is equal to 0.000000001 SOL