Skip to content

Wrapped Thru

View as Markdown

Use thru wthru when the task involves wrapped Thru rather than generic token-account operations.

CommandUse it for
initializeInitialize the wrapped Thru mint and vault accounts.
deposit <dest_token_account> <amount>Wrap native Thru into wrapped Thru.
withdraw <wthru_token_account> <recipient> <amount>Burn wrapped Thru and receive native Thru.
FlagWhy it matters
--programOverride the configured wrapped Thru program ID.
--token-programOverride the token program ID used by wrapped Thru flows.
--skip-transferOn deposit, skip the native transfer and only run the deposit instruction.
Terminal window
thru wthru initialize
thru wthru deposit ta...[dest_token_account] 1000000
  • Use this family instead of token when the goal is wrapping or unwrapping native Thru.
  • The program and token program IDs can both be overridden explicitly.