Relay a signed collateral permit so the agent pays no gas
problee_trading_setup_permitGrant an allowance by signature. Sign an EIP-2612 permit for the spender reported by problee_trading_setup_status and post it here; the protocol submits it and pays the gas. purpose "trading" approves the router so you can trade. Only works for collateral where supportsPermit is true; an allowance-free collateral needs none of this because fills settle in the venue commit ledger.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Non-negative integer amount in the token's smallest unit (wei for ETH-family tokens; the play-money token PM uses 6). Always read the decimals from the token or market metadata rather than assuming them. Serialized as a base-10 string to avoid JS number precision loss. | |
| chainId | No | Compiled protocol release chain ID (Base 8453). | |
| purpose | No | What the allowance is for. "trading" lets the release router pull collateral for trades; "challenge_bond" lets the resolution escrow pull the bond when you challenge a resolution. You name the purpose, never the spender — the endpoint resolves that from configuration, so a signature can never approve somewhere you did not intend. | |
| deadline | Yes | ||
| signature | Yes | ||
| idempotencyKey | Yes | Stable retry key. Reuse only with byte-equivalent tool arguments. | |
| collateralToken | Yes | Checksummed or lowercase 20-byte EVM address (0x + 40 hex). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |