EIP-3009: how to pay USDC without holding gas
Transfer with authorization lets a wallet pay in USDC without holding native gas. The six signed fields, the random nonce, and who submits it.
An agent's wallet holds USDC and no ETH. A normal token transfer is a transaction, and a transaction needs gas, so the wallet looks stuck. EIP-3009, Transfer With Authorization, gets around this by splitting the payment in two: the payer signs, and someone else submits.
A signature is not a transaction
EIP-3009 adds functions to an ERC-20 token that move tokens on the strength of a signed message. The central one is transferWithAuthorization. The payer signs a message off chain, which costs nothing. Anyone holding that signature can then call the function on the token contract. The contract checks the signature and moves the tokens from the payer to the named recipient.
The typed data
The message is EIP-712 typed data. Its domain binds it to one token on one chain, and its message has six fields:
const typedData = {
types: {
EIP712Domain: [
{ name: "name", type: "string" },
{ name: "version", type: "string" },
{ name: "chainId", type: "uint256" },
{ name: "verifyingContract", type: "address" }
],
TransferWithAuthorization: [
{ name: "from", type: "address" },
{ name: "to", type: "address" },
{ name: "value", type: "uint256" },
{ name: "validAfter", type: "uint256" },
{ name: "validBefore", type: "uint256" },
{ name: "nonce", type: "bytes32" }
]
},
domain: {
name: tokenName,
version: tokenVersion,
chainId: chainId,
verifyingContract: tokenAddress
},
primaryType: "TransferWithAuthorization",
message: {
from: payer,
to: payee,
value: amountInUnits,
validAfter: 0,
validBefore: expiryUnixSeconds,
nonce: random32Bytes
}
};fromis the payer andtois the recipient.valueis an integer in the token's smallest unit. For USDC with 6 decimals, signing for 5 USDC means settingvalueto5000000.validAfterandvalidBeforeopen a time window, in unix seconds. Outside it, the call reverts.nonceis 32 random bytes.
Because chainId and verifyingContract sit in the signed domain, a signature for USDC on one chain is useless for another token, or for the same token on another chain.
A random nonce, used once
ERC-2612 permits use a counter: nonce 0, then 1, then 2. EIP-3009 uses random 32-byte values instead. The token records each nonce as used for that payer, and a second call with the same nonce reverts, so an authorization can execute at most once.
Random nonces also mean a payer can hold several unused authorizations at once and have them land in any order, without one blocking another. Read authorizationState(authorizer, nonce) to see whether the nonce has been consumed. Tokens that implement the optional cancelAuthorization also let the payer authorize cancellation. Check which event was confirmed before treating the payment as cancelled.
Who pays the gas
transferWithAuthorization has no check on who calls it. Whoever submits the signed message pays the gas, which is how gas gets delegated. That openness does not let the submitter change anything, because every field is inside the signature. Change the value, the recipient or the window, and the signature no longer recovers to the payer, so the call fails.
There is one sharp edge. Because anyone can submit, someone watching pending transactions can take an authorization and submit it directly, skipping a contract that meant to wrap the call. For contract-to-contract flows the spec offers receiveWithAuthorization, which also requires the caller to be the payee.
Permit signs an allowance, this signs a transfer
A permit sets an allowance with a signature, then a separate transferFrom spends it. EIP-3009 signs the transfer itself: one amount, one recipient, one window. No allowance is left behind to revoke afterwards.
Still a draft, already shipped
EIP-3009 is still marked Draft. Native USDC implements transferWithAuthorization all the same, on Ethereum, Arbitrum, Base, Optimism and Polygon. The x402 exact scheme on EVM chains uses it as its default transfer method, so an agent can pay with nothing but USDC in its wallet.
In Cleave Protocol's gas top-up
Cleave Protocol's x402 gas top-up asks for exactly this authorization. The offer names an amount and a payTo address, and the agent signs a USDC TransferWithAuthorization for exactly that amount to exactly that address, valid for at most the offer's maxTimeoutSeconds. Signing costs no gas.
Anyone can submit it. Nobody can change it.
The full request and payment steps are on the x402 gas top-up docs page.