build_receive_authorization
Build an EIP-712 payload for receive authorization, enabling only the payee to submit and close front-running vulnerabilities.
Instructions
Build the EIP-712 payload for receiveWithAuthorization. Unlike transferWithAuthorization, only the payee may submit it — which closes the front-running window where anyone can relay a valid authorization.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| nonce | No | ||
| token | No | USDG | |
| amount | Yes | ||
| validForSeconds | No |