Recommended Update Strategy
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
- Human-readable balance:
balance.value = "20" - Raw blockchain balance:
balance.rawValue = "20000000"
.png?fit=max&auto=format&n=ML35RDblT1Ol-zJb&q=85&s=062e79ad9c4540929eec204aff020178)
.png?fit=max&auto=format&n=ML35RDblT1Ol-zJb&q=85&s=f6328956931c9664a2a070c2edb6e9b3)