Custom program error

0x1723

Appears in logs as custom program error: 0x17

Token-2022TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb

ConfidentialTransferAccountHasBalance

“An account can only be closed if its confidential balance is zero”

The account still has an encrypted confidential balance, so it cannot be closed.

Common causes

  • Closing a confidential-transfer-enabled account without withdrawing the encrypted balance.

How to fix it

  • Apply pending balance, withdraw the confidential balance to the public balance, then close.

Decode another error

Try: