Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

FlagTypeRequiredDescription
--owneraddressyesHolder of the tokens (the signer of the typed data).
--spenderaddressyesAddress being approved.
--valuebigintyesApproved amount, in apxUSD raw units.
--deadlinebigintyesUnix timestamp after which the signature is invalid.
--vuint8yesSignature recovery id (0–255).
--rhexyesSignature r component (32-byte hex).
--shexyesSignature 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

FlagDefaultEffect
--wait / --no-wait--waitWait for the transaction receipt before exiting. --no-wait exits after broadcast (returns the hash).

Exit codes

CodeMeaning
0transaction broadcast (with --no-wait) or receipt landed with status: success
1read error, transaction reverted, or receipt wait failed
2usage error (unknown flag, missing required arg, malformed value)