Get your API key at
hackathon-apikey.vercel.app.
BurnerWallet and execute(), start with DeFi.
Create a burner
BurnerStorage implementation for persistence (default is in-memory):
Restore a burner
Use with viem
Fund from unlink contract
Withdraw tokens from the unlink contract to fund the burner. Burner operations require a low-levelClient from createUnlinkClient (separate from the high-level createUnlink client) and account keys derived from the same mnemonic.
Fetch burner config
Before depositing back, fetch the chain config the SDK needs:gas_funding_wei is the ETH amount the relayer sends to the burner after the funding withdrawal confirms, so the burner can pay gas for follow-up transactions.
Approve Permit2 from the burner
Before callingdepositToPool(), the burner must approve Permit2 for the token it will deposit back.
Using viem, that looks like:
Deposit back to contract
After your DeFi interactions, deposit tokens back into the unlink contract:nonce or a shared nonceManager.
Check status and dispose
pending- burner created, not yet fundedgas_pending- withdrawal confirmed, waiting for relayer to send ETH for gasfunded- ready to usedisposed- lifecycle completegas_funding_failed- relayer failed to send gas; retry by callingfundFromPoolagain