apyx apxUSD permit
Submit an EIP-2612 typed-data signature to set an allowance gaslessly for the holder. The signature is produced off-chain by the holder; this command pays the gas to land it.
Synopsis
apyx apxUSD permit --owner <address> --spender <address> --value <bigint> --deadline <bigint> --v <uint8> --r <hex> --s <hex>
Arguments
| Flag | Type | Required | Description |
|---|---|---|---|
--owner | address | yes | Holder of the tokens (the signer of the typed data). |
--spender | address | yes | Address being approved. |
--value | bigint | yes | Approved amount, in apxUSD raw units. |
--deadline | bigint | yes | Unix timestamp after which the signature is invalid. |
--v | uint8 | yes | Signature recovery id (0–255). |
--r | hex | yes | Signature r component (32-byte hex). |
--s | hex | yes | Signature s component (32-byte hex). |
Example
$ apyx apxUSD permit --owner 0x… --spender 0x… --value 1e6 \
--deadline 1735689600 --v 27 --r 0x… --s 0x…
hash: 0x…
waiting for receipt…
status: success
SDK equivalent
apyx.apxUSD.permit({ owner, spender, value, deadline, v, r, s })
Reference: apxUSD module.
Flags
Inherits all session-start flags: --profile, --rpc-url, --chain, --key-path, --address-apxusd, --address-apyusd, --address-rate-view.
Write-specific flags
| Flag | Default | Effect |
|---|---|---|
--wait / --no-wait | --wait | Wait for the transaction receipt before exiting. --no-wait exits after broadcast (returns the hash). |
Exit codes
| Code | Meaning |
|---|---|
| 0 | transaction broadcast (with --no-wait) or receipt landed with status: success |
| 1 | read error, transaction reverted, or receipt wait failed |
| 2 | usage error (unknown flag, missing required arg, malformed value) |