Error Handling and Failure Scenarios

Robust error handling is critical when working with stablecoin transfers across multiple blockchains. Failures can occur at various stages—during validation, broadcasting, or on-chain confirmation. Bitnob is designed to surface these issues clearly, let you respond safely, and maintain system integrity.

Categories of Failures

Failure StageCommon CauseRecovery Strategy
Pre-validationInvalid address, unsupported chain/tokenReturn 400 error with descriptive message
Broadcast errorRPC node issues, network congestionRetry or requeue transfer
On-chain failureOut-of-gas, revert from smart contract, frozen tokenEmit transfer.failed webhook and unlock balance
Webhook deliveryTimeout, non-2xx responseRetry delivery with exponential backoff

Error Response Example

If a transfer fails validation (e.g., unsupported chain):

Validation Error Response

Failure Webhook: transfer.failed

When a transfer is initiated successfully but fails during execution (e.g., due to a revert or RPC issue), Bitnob will emit a transfer.failed webhook:

transfer.failed Webhook Payload

Idempotency and Duplicate Submissions

You must use a unique reference per transfer. If the same reference is submitted twice:

If the first succeeded: the second call will return the same response

If the first failed: the second call may retry, or return an error, depending on the failure reason

Client logic should not blindly retry on failure without checking webhook results.

Retry Patterns

For network or RPC-related errors, design your system to:

Use exponential backoff for retries

Avoid retry storms during congestion events

Degrade gracefully and notify support teams

For webhook retries:

Bitnob will retry failed deliveries automatically

You can monitor undelivered webhooks from the Dashboard

Retry logs include timestamps, error responses, and attempt count

Recovery Tools for Operations Teams

Dashboard visibility of failed transactions and retry logs

Searchable logs by reference, status, chain or token

Manual retry options (optional toggle in UI)

Export CSV of failed events for compliance/auditing