What is ERC-2612?
ERC-2612 lets you approve token spending without paying gas or needing ETH. It uses a signature instead of a regular transaction.
Why does this matter? Normally, to let a dApp (like a swap) use your tokens, you have to send an "approve" transaction and pay gas. With ERC-2612, you just sign a message, and anyone (even a smart contract) can submit it for you—no ETH required!
How does it work?
- You sign a special message (off-chain, no gas needed) saying "I allow this contract to spend my tokens."
- Anyone (even a dApp or relayer) can send that signature to the blockchain using the
permit
function. - The contract checks your signature and updates your allowance—no ETH or gas from you!
In this app: When you swap tokens, we use ERC-2612 "permit" so you don't need to approve or pay gas. Just sign, and swap!
Step 1: Mint tokens
Mint either BuildguidlToken (BGT) or SuperToken (SPT) to your wallet below.
Then, use the swap page to exchange one for the other—no ETH/Gas needed!
Step 2: Try Gasless Swap
Now that you have tokens, go to the swap page and try a gasless swap using ERC-2612 permit!
You can swap BGT for SPT, or SPT for BGT. it is instant and gasless.
Want more technical details? Read the full ERC-2612 spec.