[arbitrum-one] Build the exact EIP-2612 permit a wallet should sign for a gasles
[arbitrum-one] Build the exact EIP-2612 permit a wallet should sign for a gasless approval, without any key being involved: give token, owner, spender and value, and get the EIP-712 typed data (ready for eth_signTypedData_v4), the current nonce, a deadline default, and the ordered steps to submit it. Use this instead of handing a private key to a transfer service: the wallet signs its own bounded authorisation. Nothing is signed or submitted by this API.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://agent-data.centorprat.workers.dev/chain/permit-build/base
| Category | Market data |
|---|---|
| Provider host | agent-data.centorprat.workers.dev |
| Networks | eip155:137, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"owner": "0x0000000000000000000000000000000000000001",
"spender": "0x8d38D6026cf3A9805DE9c5F0611ceE95B532B120",
"token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"value": "1000000"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET",
"HEAD",
"DELETE"
],
"type": "string"
},
"queryParams": {
"properties": {
"chain": {
"description": "base | ethereum | polygon | arbitrum | optimism (default base)",
"type": "string"
},
"deadline": {
"description": "Optional unix seconds; defaults to now + 1 hour",
"type": "string"
},
"owner": {
"description": "Wallet that will sign (required)",
"type": "string"
},
"spender": {
"description": "Address to authorise (required)",
"type": "string"
},
"token": {
"description": "EIP-2612 token contract, e.g. USDC (required)",
"type": "string"
},
"value": {
"description": "Amount in smallest unit (required)",
"type": "string"
}
},
"required": [
"token",
"owner",
"spender",
"value"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}