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 preview-redeem

Pre-flight quote: apxUSD assets returned for shares apyUSD at the current block.

Synopsis

apyx apyUSD preview-redeem --shares <bigint>

Arguments

FlagTypeRequiredDescription
--sharesbigintyesApyusd shares to redeem (18-decimal).

Example

$ apyx apyUSD preview-redeem --shares 1e18
1041273481n

SDK equivalent

apyx.apyUSD.previewRedeem(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

CodeMeaning
0read returned a value
1read error, transaction reverted, or receipt wait failed
2usage error (unknown flag, missing required arg, malformed value)