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 allowance

Read the ERC-20 allowance owner has granted spender on apxUSD.

Synopsis

apyx apxUSD allowance --owner <address> --spender <address>

Arguments

FlagTypeRequiredDescription
--owneraddressyesToken holder.
--spenderaddressyesSpender to query the allowance for.

Example

$ apyx apxUSD allowance \
    --owner 0x7E5F4552091A69125d5DfCb7b8C2659029395Bdf \
    --spender 0x38EEb52F0771140d10c4E9A9a72349A329Fe8a6A
1000000n

SDK equivalent

apyx.apxUSD.allowance(owner, spender)

Reference: apxUSD module.

Flags

Inherits all session-start flags: --profile, --rpc-url, --chain, --key-path, --address-apxusd, --address-apyusd, --address-rate-view.

Exit codes

CodeMeaning
0read returned a value
1read error, transaction reverted, or receipt wait failed
2usage error (unknown flag, missing required arg, malformed value)