Skip to main content
It is recommended not to implement balance updates using increment/decrement logic from webhook amounts. Instead, always overwrite balances using the latest balance values returned in webhook payloads to prevent drift, duplicate accounting, or inconsistent wallet state.

Samples

wallets are always synchronized with onchain state. Balance values returned in webhook events reflect the latest blockchain state for the wallet and token. Use the balance from: wallet → token or tokens → balance → value
In this example:
  • Human-readable balance: balance.value = "20"
  • Raw blockchain balance: balance.rawValue = "20000000"