permit2-signature-transfer

Sign and validate gasless token transfers with Permit2 EIP-712 signatures.

Updated Nov 5, 2025
One-click install
npx skills add https://github.com/cyotee/crane --skill permit2-signature-transfer
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: permit2-signature-transfer
Source: https://github.com/cyotee/crane/tree/main/.claude/skills/permit2-signature-transfer
Command: npx skills add https://github.com/cyotee/crane --skill permit2-signature-transfer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables apps to authorize specific token transfers without on-chain pre-approvals by signing an EIP-712 permit (Permit2) that can be consumed by a contract.

Core Features & Use Cases

  • Gasless approvals: users sign one permit off-chain to authorize a swap, deposit, or withdraw action.
  • Witness binding: binds the signature to a specific action (e.g., tokenIn, tokenOut, vault, amount) via a witness.
  • SDK integration: leverages SignatureTransfer.getPermitData to construct domain, types, and values for on-chain verification and integration with permit2 contracts.

Quick Start

Sign a permit and witness for a targeted DeFi operation.

Frequently Asked Questions about permit2-signature-transfer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I authorize gasless token transfers without on-chain approvals?▼

Authorizing gasless token transfers without on-chain approvals is achieved by signing an EIP-712 Permit2 signature off-chain. This allows DeFi apps to verify single-sig authorization for specific swap, deposit, or withdraw actions directly within their contracts.

What is witness binding in Permit2 signature transfers?▼

Witness binding in Permit2 signature transfers securely attaches your signature to a specific DeFi action. By binding parameters like tokenIn, tokenOut, vault, and amount via a witness, it ensures the signed permit cannot be replayed for unintended operations.

How do I build EIP-712 structured data for Permit2?▼

Building EIP-712 structured data for Permit2 involves using SignatureTransfer.getPermitData. This constructs the required domain, types, and values objects needed for on-chain verification and integration with permit2 contracts.

Can I use Permit2 signatures for DeFi swap and deposit workflows?▼

Yes, you can use Permit2 signatures for DeFi swap and deposit workflows. The system applies to apps requiring single-sig authorization to validate specific token transfers, enabling gasless execution of these operations.

Do I need to pre-approve token contracts before using Permit2 signatures?▼

No, you do not need on-chain pre-approvals before using Permit2 signatures. Users sign a single permit off-chain to authorize specific token transfers, which the consuming contract validates directly.