Skip to content
Every Solana transaction requires SOL to pay network fees. But users coming to your payment application expect to transact in stablecoins—not manage a second token balance. Fee abstraction removes this friction by having someone else pay the fees. This guide covers two levels:
  1. How fee sponsorship works — the underlying Solana primitive
  2. Fee abstraction at scale with Kora — a production-ready fee abstraction service
The cookbook has the transaction-level recipes: fee sponsorship and paying fees with any token. For a checkout, Go live with your checkout covers when to sponsor fees for your customers.

​How Fee Sponsorship Works

Solana transactions have a designated fee payer—the account that pays the network fee. By default, this is the first signer. But you can specify a different account as the fee payer, allowing a third party (the “sponsor”) to cover fees on behalf of the sender. Both the sender and sponsor must sign the transaction:
  • The sender signs to authorize the transfer of their tokens
  • The sponsor signs to authorize payment of the network fee
See How Payments Work on Solana for core payment concepts.
The steps below show the core flow. See the Demo for complete runnable code.
1

Create a Sponsor Account

Generate a separate keypair for the sponsor who will pay transaction fees. The sponsor needs SOL for fees but doesn’t need to hold the tokens being transferred.
Sponsor Transaction Fee
2

Create Transfer Instruction

Create the token transfer instruction with the sender as authority. The sender owns the tokens and must sign the transfer.
Sponsor Transaction Fee
3

Send with Sponsor as Fee Payer

Create the client with the sponsor set as the fee payer via payer(sponsor), then call client.sendTransaction. The sponsor signs to pay the network fee while the sender signs to authorize the transfer—sendTransaction collects every referenced signer automatically.
Sponsor Transaction Fee

​Demo

To run this demo, create a project and install its packages. "type": "module" lets the demo use top-level await:
In a second terminal, start a local network on 127.0.0.1:8899 with the Surfpool CLI and leave it running:
Save the demo as demo.ts and run it with npx tsx demo.ts.
Demo
When you create a token account for an end user, they can close it and reclaim the SOL used for rent. Consider charging users for account creation in stablecoins, or factor this cost into your product economics.

​Fee Abstraction at Scale with Kora

The fee payer field does the core work, but a production gasless system requires more: managing sponsor wallets, handling token conversions (so users can “pay” fees in USDC), rate limiting, and security controls. Kora handles this complexity. It’s a JSON-RPC server that provides fee abstraction so users never need SOL. You can fully sponsor fees or accept fee payment in any token. Deploy Kora with a single command:
Then point a Kit client at your Kora server and send transactions with the same API used above:

​Kora Resources