sign_receive_with_permit2
Generates EIP-712 typed data for a Uniswap Permit2 PermitTransferFrom. Authorizes the spender (default: protocol diamond) to pull value from signerAddress until deadline. permit2Address defaults to contracts.permit2 from SDK config; permit2Nonce defaults to a random uint256. Sign locally with your wallet (EIP-712); use the result to build a TransferAuthorization { strategy: 'Permit2' } for a meta-tx flow. Returns: typed data structure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Amount in wei the spender is authorized to pull from the signer. | |
| spender | No | Optional spender address. Defaults to the Boson Protocol diamond from SDK config. | |
| configId | Yes | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid values for this server. | |
| deadline | Yes | Unix timestamp in seconds after which the Permit2 authorization is no longer valid. | |
| permit2Nonce | No | Optional Permit2 nonce as a uint256 string. If omitted, a random uint256 is generated. | |
| signerAddress | Yes | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. | |
| permit2Address | No | Optional Uniswap Permit2 contract address. Defaults to contracts.permit2 from SDK config. | |
| exchangeTokenAddress | Yes | ERC-20 token contract address that supports the permit/authorization standard. |