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 apyUSD deposit

Deposit apxUSD into the apyUSD vault and mint shares to --receiver. Requires a prior apxUSD approve --spender <apyUSD> for at least --assets.

Synopsis

apyx apyUSD deposit --assets <bigint> --receiver <address>

Arguments

FlagTypeRequiredDescription
--assetsbigintyesApxUSD to deposit (6-decimal raw).
--receiveraddressyesAddress to receive the minted shares.

Example

$ apyx apyUSD deposit \
    --assets 1e6 \
    --receiver 0x7E5F4552091A69125d5DfCb7b8C2659029395Bdf
hash: 0xbc9e…1d44
waiting for receipt…
status: success
block:  19884115
gas:    167822

SDK equivalent

apyx.apyUSD.deposit({ assets, receiver })

Reference: apyUSD 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)