apyx apxUSD allowance
Read the ERC-20 allowance owner has granted spender on apxUSD.
Synopsis
apyx apxUSD allowance --owner <address> --spender <address>
Arguments
| Flag | Type | Required | Description |
|---|---|---|---|
--owner | address | yes | Token holder. |
--spender | address | yes | Spender 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
| Code | Meaning |
|---|---|
| 0 | read returned a value |
| 1 | read error, transaction reverted, or receipt wait failed |
| 2 | usage error (unknown flag, missing required arg, malformed value) |