sign_receive_with_erc2612_permit
Generates EIP-712 typed data for an EIP-2612 Permit. Authorizes the spender (default: protocol diamond) to pull value from signerAddress until deadline. Sign locally with your wallet (EIP-712); use the resulting signature to build a TransferAuthorization { strategy: 'EIP2612' } 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 permit is no longer valid. | |
| signerAddress | Yes | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. | |
| tokenDomainName | Yes | EIP-712 domain name of the token contract (e.g. 'USD Coin'). Required for ERC-3009 / EIP-2612 domain separator. | |
| tokenDomainVersion | Yes | EIP-712 domain version of the token contract (e.g. '2'). Required for ERC-3009 / EIP-2612 domain separator. | |
| exchangeTokenAddress | Yes | ERC-20 token contract address that supports the permit/authorization standard. |