Memecoin trading 2 min read

Solana token transfer fees: check the rate and cap

Calculate a Token Extensions transfer fee and distinguish the amount received from the separate SOL network charge.

A row of small metal tokens stretches between two wooden trays.
View the worked illustrationClose illustration

Scroll the illustration to inspect the details.

At a 1% rate the uncapped fee would be 5 tokens; the assumed cap restricts it to 3.

Some Solana Token Extensions mints configure a transfer fee. The program applies the rate subject to its maximum and withholds the fee at the receiving token account. That withheld quantity is separate from what the recipient can spend. The network transaction fee in SOL is another charge with a different unit.

Apply the percentage and the maximum

Assume a mint charges 1% with a maximum of 3 tokens per transfer. Sending 100 tokens gives a fee of 1 and a spendable increase of 99. Sending 500 gives an uncapped calculation of 5, so the 3-token maximum applies and the spendable increase is 497. These round quantities avoid fractional base units. For small transfers, read the exact program-calculated fee in the mint’s smallest unit.

Inspect the configuration that applies to the transfer’s epoch. A current or upcoming rate can differ from one shown in an older quote. Make sure the maximum’s displayed units have been converted using this mint’s decimals. A calculator that reads “3” as full tokens when the configuration supplies three base units can produce the wrong result.

Reconcile both accounts and the network receipt

Compare the sender’s token debit, the recipient’s available increase and the withheld amount. Read any SOL fee separately. Adding a token fee directly to a SOL amount without a stated exchange rate gives no meaningful total.

Use the mint decimals check to convert the program’s base-unit cap to displayed tokens.

Transfer Fees - Solana Developer Docs · Create a Token Mint - Solana Developer Docs

Compare memecoin trading platformsOrder types, fees and supported networks

Read next

More from this space