Recommended Sync Strategy
Instead of calculating state changes incrementally, set your local ledger records directly using the verified snapshot provided inparams.wallet.token.balance:
value: The human-readable string representation of the verified balance, pre-formatted to match token decimals.rawValue: The raw integer string representation in minimal base units (atomic units/wei/lamport/satoshi/sun).
Samples
wallets are always synchronized with onchain state. Balance values returned in webhook events reflect the latest blockchain state for the wallet and token.
Why Use params.wallet.token.balance?
- State Overwriting: Replacing local database values with the payload state guarantees absolute alignment with the on-chain ledger at transaction execution time.
- Re-org Protection: In the event of a chain re-organization, subsequent state updates automatically correct local records without requiring manual database reconciliation.
- Multi-Source Consistency: Overwriting state avoids race conditions when multiple transactions occur in close succession across automated wallet workflows.
.png?fit=max&auto=format&n=ML35RDblT1Ol-zJb&q=85&s=062e79ad9c4540929eec204aff020178)
.png?fit=max&auto=format&n=ML35RDblT1Ol-zJb&q=85&s=f6328956931c9664a2a070c2edb6e9b3)