Skip to content

Redeem CHYPE

CHYPE overview · CHYPE environments and prerequisites

Create or select a withdrawal account, redeem CHYPE, and verify delivery of HYPE to the intended HyperEVM address.

  • Complete the CHYPE environment preflight.
  • Confirm the party holds enough CHYPE for the intended test.
  • Install and validate the DAR packages required for redemption.
  • Confirm the required Minter credential.
  • Configure the approved BitSafe API.
  • Obtain a valid HyperEVM destination address for the selected network. The address must accept native HYPE.
  • Understand the approved minimums, limits, fees, and recovery path.

Before creating a withdrawal account:

  • Confirm the destination address format and HyperEVM network.
  • Confirm that the address can receive native HYPE. A contract address that rejects HYPE makes the redemption fail.
  • Confirm ownership or authorization under the organization’s controls.
  • Use a second-person or system control for production destinations where required.

The account owner can change the destination address after account creation. A change does not affect a redemption that is already in progress.

A wrong-network or wrong-recipient destination may be irreversible.

Retrieve the current account rules from the BitSafe API of the selected environment:

GET /chype/v1/account-contract-rules

Use the wa_rules entry for withdrawal accounts. Confirm that the response matches the selected environment, current DAR set, and intended operation.

Create a withdrawal account using the authenticated party, approved credential, current rules, and verified HyperEVM destination. If reusing an existing account, confirm its destination and current status before selecting it.

A withdrawal account allows one withdrawal at a time. A second redemption from the same account fails until the first one is processed.

Created deposit and withdrawal accounts stay on the ledger until someone closes them. Do not create duplicate accounts as an automatic retry strategy.

CHYPE rejects the zero address, HyperEVM system addresses, and CHYPE bridge proxies as withdrawal destinations. The library checks the destination during account creation and again before burning holdings. A burn cannot be undone.

Query current CHYPE holdings and select sufficient inputs to cover the requested redemption according to the approved holding-selection policy.

Before submission:

  • Confirm the total selected amount.
  • Confirm the requested withdrawal amount.
  • Check applicable limits.
  • Preserve enough information for reconciliation.
  • Avoid using holdings involved in another pending operation.

Submit the redemption through the supported CHYPE interface. Use a unique request or command identifier where available and retain the resulting Canton update or contract identifiers securely.

Monitor the authoritative states for:

  • Withdrawal submitted.
  • CHYPE burned or otherwise consumed by the approved contract flow.
  • Withdrawal account pending balance updated.
  • HyperEVM redemption transaction submitted.
  • HyperEVM block finalized.
  • Completed, failed, cancelled, or escalated.

A successful redemption should show:

  1. The intended CHYPE amount no longer appears in the party’s available holdings.
  2. The withdrawal account reflects the approved state transition.
  3. HYPE is delivered to the verified destination.
  4. The Canton and HyperEVM records reconcile to one redemption request.

The HYPE arrives as an internal transfer from the bridge contract. The outer HyperEVM transaction shows zero HYPE value. Check the bridge Withdraw event or the internal transfers of the transaction.

The example requires DESTINATION_HYPE_ADDRESS. It reads WITHDRAW_AMOUNT, which defaults to 0.25 CHYPE.

Terminal window
cargo run --example chype_credentials
cargo run --example chype_redeem_flow
SymptomCheckSafe next action
Destination rejectedNetwork, format, rule set, and account stateStop; do not substitute an address without repeating validation.
Insufficient selectable holdingsAvailable balance, pending operations, UTXO layout, and limitsReconcile holdings before consolidating or splitting.
Second redemption failsWhether the account has a redemption in progressWait until the first redemption is processed.
Submission times outCanton update status and withdrawal-account stateDetermine commitment before retrying.
CHYPE decreases but HYPE is pendingWithdrawal state, bridge pause state and limits, HyperEVM finality, and service healthFollow the approved pending-withdrawal escalation path.
HYPE arrives with an unexpected amountRequested amount, approved fees, bridge Withdraw event, and reconciliation recordEscalate; do not make an offsetting transaction automatically.
Destination does not accept HYPEWhether the destination is a contract that rejects HYPEEscalate with sanitized account, transaction, and update identifiers.

Prepare for failures safely: CHYPE errors, retries, and troubleshooting.