Learn how transaction fees work in Squads APIs and how to configure them
Every transaction on the Solana blockchain requires a small network fee, similar to credit card processing fees but much smaller.
Fee configuration is a required parameter for all transaction requests in the Squads API - transactions will fail if fee configuration is not provided. On Squads APIs, you can:
Fee configuration must be included in every transaction request. Here’s how to specify it:
The simplest way to pay fees. Most customers use USDC.
Solana’s native currency.
After processing a transaction request, you’ll receive detailed fee information:
For developers who need them, here are the full currency specifications:
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
11111111111111111111111111111111
So11111111111111111111111111111111111111112
Yes, you can sponsor fees for users by setting the payer_address
in the fee_config
to your address.
Most customers use USDC for simplicity. However, both SOL and USDC options are fully supported and you can choose based on your needs.