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 convert-to-shares

Quote how many apyUSD shares a given amount of apxUSD would mint at the current ratio.

Synopsis

apyx apyUSD convert-to-shares --assets <bigint>

Arguments

FlagTypeRequiredDescription
--assetsbigintyesQuantity of apxUSD to convert (6-decimal).

Example

$ apyx apyUSD convert-to-shares --assets 1e6
960304728000000000n

SDK equivalent

apyx.apyUSD.convertToShares(assets)

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