Skip to content
LogoLogo

Pay Fees in Any Stablecoin

Configure users to pay transaction fees in any supported stablecoin. Tempo's flexible fee system allows users to pay fees with the same token they're using, eliminating the need to hold a separate gas token.

Demo

By the end of this guide you will be able to pay fees in any stablecoin on Tempo.

Pay Fees in Any Stablecoin

demo
1
Create an account, or use an existing one.
2
Add testnet funds to your account.
3
Send 100 AlphaUSD and pay fees in another token.
pnpx gitpick tempoxyz/tempo-ts/tree/main/examples/payments

Quick Snippet

Using a custom fee token is as simple as passing a feeToken attribute to mutable actions like useTransferSync, useSendTransactionSync, and more.

Steps

Recipes

Set user fee token

You can also set a persistent default fee token for an account, so users don't need to specify feeToken on every transaction. Learn more about fee token preferences here.

Learning Resources