Ghost Labs
Kora vs Ghost Gas: sponsored transactions on Solana compared
Kora and Ghost Gas both let a Solana user transact without holding SOL by having a relayer pay the fee, but they solve different problems. Kora is general-purpose fee-relayer infrastructure from the Solana Foundation, while Ghost Gas is a prepaid USDC credit system designed so the wallet that pays and the wallet that spends are never linked by a SOL transfer.
Short answer: Kora is a paymaster you run: it validates a transaction, usually checks that it includes a token payment to the operator, and co-signs as fee payer. Ghost Gas is a hosted product built on its own relayer: you prepay USDC from one wallet, get a gas note, and spend from another wallet with zero SOL with a debit sized to each send's network cost plus a 1–2% platform fee. Pick Kora for flexible sponsorship in your own app; pick Ghost Gas when the funding link matters.
Disclosure: Ghost Labs builds Ghost Gas. Kora facts below come from the Solana docs and the Kora repo.
What Kora is
From the Kora overview: Kora is a fee abstraction layer for Solana that lets users pay transaction fees with SPL tokens instead of SOL, or avoid fees altogether. It is a JSON-RPC server that acts as a paymaster.
Its flow:
- The app builds a transaction that includes a token payment instruction to the Kora operator.
- The user signs.
- Kora validates the transaction against its rules and checks that the payment covers fees, using a price oracle.
- Kora co-signs as fee payer and returns it for submission.
Operators configure [validation] rules such as allowed_programs, allowed_tokens, allowed_spl_paid_tokens, max_signatures, max_allowed_lamports, and whether durable-nonce transactions are allowed. Pricing can be margin-based, fixed, or free, per the configuration docs. Kora replaces Octane, which is now archived and points to Kora.
What Ghost Gas is
Ghost Labs is the team behind Ghost, an open-source privacy suite for USDC on Solana: Ghost Gas is prepaid USDC gas so a wallet with zero SOL can send, and Ghost Shield unlinks withdrawals from deposits with zero-knowledge proofs.
- Kora
- Foundation
- Ghost
- USDC notes
- Shared
- Fee payer
Ghost Gas flow:
- X1 tops up. A funding wallet sends USDC (or an allowlisted token, priced via Jupiter with a 2% haircut) to the Ghost treasury with a memo carrying a new note commitment. The relayer verifies it and issues a gas note.
- X2 spends. A different wallet, with zero SOL, calls prepare with the note. The relayer builds a transfer with itself as fee payer.
- Relayer co-signs. After X2 signs, the relayer re-checks the instruction shape, debits the note for that send's network cost plus a 1–2% platform fee, co-signs, and broadcasts. Failed broadcasts are refunded.
The policy is narrow: compute budget limit and price (capped), at most one idempotent token-account creation for the destination, and exactly one TransferChecked. See How it works and the API docs.
Side by side
| Kora | Ghost Gas | |
|---|---|---|
| Maintainer | Solana Foundation | Ghost Labs |
| Form | Self-hosted JSON-RPC paymaster | Hosted relayer plus open-source code (MIT) |
| Who pays the fee | User, in-transaction token payment (or free) | Prepaid credit from a separate funding wallet |
| Scope | Configurable programs and tokens | One SPL TransferChecked per sponsored send |
| Pricing | Margin, fixed, or free | Network-cost debit + 1–2% platform fee (covers slippage) |
| Funding link | Payment comes from the signing wallet | Funding wallet and spending wallet are separate |
| State | Stateless per transaction | Off-chain credit ledger (trusted) |
The privacy difference
With in-transaction payment, the wallet that signs is the wallet that pays. That is simple and atomic, and the operator is never left unpaid. But if that wallet has no tokens to pay with, or you do not want to touch it from your main wallet, it does not help.
Ghost Gas lets X1 pay and X2 spend. No SOL or fee payment moves between them on-chain, so the funding link described in How funding a wallet with SOL links your wallets on-chain does not appear. The trade-offs: the credit ledger is off-chain and trusted, the note is a bearer secret, and Ghost's relayer can connect the deposit that funded a note to the wallet that spends it.
When to use which
- Use Kora if you run an app, want to sponsor or charge for arbitrary program calls, and prefer self-hosted infrastructure from the Solana Foundation.
- Use Ghost Gas if your users move USDC from fresh wallets and you want those wallets to spend without a SOL top-up from a known wallet.
- Use both if it fits: they are not mutually exclusive.
What we borrowed
Our proposed pay-as-you-go mode uses the in-transaction pattern Kora and Octane made standard, with the relayer building the transaction, checking the fee transfer, simulating, and enforcing limits. The spec lists "should we adopt Kora directly" as an open question. It is not live.
FAQ
What is Kora? Kora is an open-source fee relayer, or paymaster, from the Solana Foundation. It co-signs transactions as fee payer and can accept payment in configured SPL tokens or sponsor fees for free.
What is Ghost Gas? Ghost Gas is prepaid USDC gas. A funding wallet buys credit and gets a gas note; any wallet holding the note can make sponsored sends with zero SOL while Ghost's relayer pays the fee.
What is the main difference? Kora is general infrastructure where the user typically pays the fee inside the same transaction. Ghost Gas separates the paying wallet from the spending wallet with prepaid credit, to avoid a public funding link.
Should I use Kora or Ghost Gas in my app? Use Kora if you want to run your own paymaster for arbitrary programs. Use Ghost Gas if you want USDC transfers from zero-SOL wallets without the funding wallet appearing in the spending wallet's history.
Does Ghost use Kora? No. Ghost runs its own Fastify relayer. Our pay-as-you-go spec draws on Kora's validation ideas and lists adopting Kora as an open question.
Next steps
Developers: read How to add gasless USDC transfers to your Solana app and the relayer code on GitHub. Users: try Ghost Gas at /app/credits.