apyx apyUSD convert-to-assets
Quote how many apxUSD a given amount of apyUSD shares is worth at the current ratio.
Synopsis
apyx apyUSD convert-to-assets --shares <bigint>
Arguments
| Flag | Type | Required | Description |
|---|---|---|---|
--shares | bigint | yes | Quantity of apyUSD shares to convert (18-decimal). |
Example
$ apyx apyUSD convert-to-assets --shares 1e18
1041273481n
SDK equivalent
apyx.apyUSD.convertToAssets(shares)
Reference: apyUSD 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) |