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
| Flag | Type | Required | Description |
|---|---|---|---|
--assets | bigint | yes | ApxUSD to deposit (6-decimal raw). |
--receiver | address | yes | Address 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
| 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) |