0x16) that separates who signs the transaction from who pays the gas — a feature with no equivalent in standard EVM chains.
What Is Fee Delegation?
In a standard EVM transaction, the sender pays the gas. StableNet adds a second role: the fee payer. The fee payer is a separate account that covers gas costs while the sender only provides the value being transferred.| Role | Responsibility |
|---|---|
Sender (From) | Signs transaction intent, provides transferred value, holds a valid nonce |
Fee Payer (FeePayer) | Signs gas consent, pays gasLimit × gasPrice, receives unused gas refund |
Fee delegation requires the Applepie fork to be active on the network. Transactions of type
0x16 submitted before the fork are rejected immediately.How It Works
Sender signs the transaction
Build an EIP-1559-style transaction and set
type to 0x16. Add the feePayer address to the payload. Sign with the sender’s private key to produce v, r, s.Fee payer signs the transaction
The fee payer receives the partially-signed transaction, verifies the contents, then signs it to produce
fv, fr, fs.- Balance check: fee payer must hold ≥
gasLimit × gasPrice; sender must hold ≥value - Execution:
tx.originis always the sender — smart contracts cannot observe that fee delegation was used - Refund: unused gas is refunded to the fee payer, not the sender
ethers.js Example
The example below shows the full two-signature flow using ethers.js v6.Use Cases
- Gasless onboarding — new users interact with your dApp before they hold any WKRC
- Subsidized transactions — your backend account sponsors gas for specific user actions (e.g. first mint, daily claim)
- Batch relayer — a single fee payer wallet processes transactions on behalf of many users
Developer Benefits
- No wallet UX changes for users — the sender signs a normal transaction; gas mechanics are invisible to them
tx.originis always the sender — existing contracts that checkmsg.senderortx.originwork without modification- Balance isolation — the fee payer’s funds cannot be used for value transfer; only gas is at risk
- Unused gas is refunded — the fee payer receives the refund automatically, reducing overpayment cost
Related Pages
System Overview
Where fee delegation fits in StableNet’s architecture.
Gas and Fees
Base fee policy, tip limits, and fee calculation.

