Ghost Labs
Pay-as-you-go gas: charging fees in USDC inside the same transaction (proposed)
Pay-as-you-go gas is a proposed Ghost Gas mode where a wallet with zero SOL pays its network fee in USDC inside the same transaction as its transfer, with no gas note or top-up. It is a draft specification, not a live feature; today Ghost Gas works only with prepaid gas notes.
Short answer (proposed, not live): The relayer would build one Solana transaction with two USDC transfers from your wallet: a fee to the Ghost treasury, then the payment to your recipient. You sign once as the token owner, the relayer signs as fee payer and pays the SOL. Solana's atomicity means both transfers land or neither does. Proposed pricing is SOL cost plus 10%, minimum 0.01 USDC, with a 45-second quote.
Status: draft spec dated 30 November 2026. Nothing here is deployed. Details may change or the feature may not ship.
Why we are considering it
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 is a fixed 1 USDC zero-knowledge pool.
Prepaid notes are great when one wallet pays and another spends. But a common case is simpler: you have 100 USDC, no SOL, and want to send 10 USDC to a friend. Making you top up a note first is extra friction. A fresh Shield recipient is in the same spot: it has USDC and no SOL. Pay-as-you-go would let it move funds on without a note funded from another wallet.
The pattern
- Status
- Proposed
- Settle
- Same tx
- Live today
- Gas notes
This is a known Solana pattern. The Solana cookbook describes paying fees with any token by putting a transfer to the fee payer in the same transaction. Solana Foundation's Kora implements it with configurable validation, and Octane, now archived, used it before.
Proposed transaction layout
The relayer builds the transaction, and the client only signs. In order:
- Compute budget: set compute unit limit.
- Compute budget: set compute unit price.
- Only if the recipient has no USDC account: create it idempotently, with the relayer paying.
TransferCheckedof the fee from your USDC account to the Ghost treasury.TransferCheckedof the amount from your USDC account to the recipient.
Exactly two signers: the relayer as fee payer and you as token owner. TransferChecked binds the mint and decimals, so a wrong mint fails.
Proposed pricing
All in integers, from the spec:
- Cost in SOL: 5,000 lamports per signature times two, plus the priority fee, plus the rent deposit if a recipient account must be created.
- Converted to USDC using a Jupiter quote, cross-checked against a second price source. If the sources disagree by more than 2% or the price is stale, the relayer refuses to quote rather than guess.
- Gas fee: cost times 1.10, with a minimum of 0.01 USDC.
- Quote validity: 45 seconds.
Illustration from the spec, at an assumed SOL price: a send to an existing USDC account would hit the 0.01 USDC minimum. A send that creates the recipient's account would cost much more, because the account deposit dominates. The spec's example used the older deposit figure of about 0.00204 SOL; Solana's rent docs now list about 0.0015 SOL, so the real number would be recalculated from the live rate. The UI would warn that a first send to a new address costs more.
How the relayer would protect itself
Before co-signing, per the spec:
- Exact match. The hash of the signed message must equal the one the relayer built. Any change fails.
- Quote checks. The quote exists, has not expired, and has not been used.
- Signers and fee payer. Exactly two signatures; the user's verifies.
- Instruction allowlist. Only compute budget, the classic SPL Token program, and the Associated Token program. No system, memo, or durable-nonce instructions.
- Both transfers. Same source, USDC mint, 6 decimals, fee to the treasury at least the quote, payment to the quoted recipient and amount.
- Relayer isolation. The relayer and treasury are never a source or authority.
- Simulation. It must succeed, the relayer's SOL drop must be within the quoted cost, and the treasury must receive the fee.
- Limits. Per-wallet and per-IP rate limits, a per-day cap on new-account sends, and a global daily SOL budget.
Open questions in the spec
- Launch with cost plus 10% and a 0.01 minimum, or a flat 0.02?
- Keep the 1% protocol fee off for this mode? The spec recommends off, since 1% of a 10 USDC send is 0.10 USDC, ten times the prepaid usage fee.
- Apply a new-account surcharge to prepaid sends too?
- Move the treasury to a multisig before a mainnet pilot?
- Extend the existing relayer or adopt Kora directly?
Privacy trade-off
Pay-as-you-go takes the fee from the same wallet that sends, so it does not give the X1 and X2 separation that prepaid notes provide. It also marks the transaction as Ghost-relayed, through the treasury transfer and the fee payer. For a fresh Shield recipient it is still better than a SOL top-up from a known wallet.
Proposed rollout
Internal tests first, then a flagged mainnet pilot with tight caps, then wider availability if the margin and failure rate hold up. No dates are committed.
FAQ
Is pay-as-you-go gas live on Ghost? No. It is a draft specification under review. Ghost Gas today works with prepaid gas notes only.
How would pay-as-you-go work? The relayer builds one transaction with two USDC transfers from your wallet, a small fee to the Ghost treasury and the payment to your recipient. You sign once, the relayer pays the SOL, and both transfers land or neither does.
What would it cost? The spec proposes the actual SOL cost converted to USDC plus a 10% margin, with a 0.01 USDC minimum. A first send to a new address would cost more because it creates the recipient's token account.
Would the 1% protocol fee apply? The spec recommends not charging the 1% protocol fee in this mode at launch, so pay-as-you-go stays priced like prepaid usage. That is an open question.
How is this different from prepaid gas notes? Prepaid notes separate the funding wallet from the spending wallet. Pay-as-you-go takes the fee from the spending wallet itself, which is simpler but does not provide that separation.
Use what is live today
Prepaid Ghost Gas works now: top up at /app/credits and send at /app/send. Developers can start with How to add gasless USDC transfers to your Solana app. Feedback on the proposal is welcome on GitHub.