Skip to main content
Every error thrown by the Deposit SDK is a DepositError instance with a machine-readable code property. This lets you branch on failure mode without parsing message strings.

DepositError

Error codes

getDisplayMessage

Returns a user-friendly display string for a DepositError. You can show this directly in your UI.

Usage

React

The useBlinkDeposit hook provides displayMessage as a convenience:

Handling specific error codes

DepositErrorCode

The union of all error code strings: