Skip to content
Docs

Events and payloads

Unconfirmed and confirmed messages

Choose fast unconfirmed messages, final confirmed ones, or both with the notify setting.

Overview

Blocks near the tip of a chain can still be replaced. Gray3 lets you choose between speed and certainty with the webhook's notify setting.

notifyWhat you receiveCredits per event
both (default)An unconfirmed message as soon as the transaction is in a block, then a confirmed message with the same id.2
confirmedOnly the confirmed message.1
unconfirmedOnly the early message. If the early message was missed, the confirmed one is sent in its place.1

Change it with PATCH /v1/webhook or in Console.

Confirmation depth

Each network has its own depth, chosen for how often that chain reorganizes. A few examples: Ethereum 6 blocks, Base and Optimism 10, BNB Smart Chain 15, Polygon 16, Arbitrum 20. On Bitcoin-family networks the depth is the confirmation count wallets show, where the block with the transaction counts as one: Bitcoin 3, Bitcoin Cash, Litecoin, and Dash 6, Dogecoin and DigiByte 40, Ravencoin 60. On Solana the confirmed message is sent once the slot is finalized, about 30 slots (under 10 seconds) after it appears. On Tron it is sent once the block is solid, about 19 blocks or one minute later. The exact value for every network is in the chain list under capabilities.webhook.confirmations. See Supported chains.

When a block is replaced

If the block with an unconfirmed transaction is replaced, the confirmed message for it is never sent. If the transaction is included again in a later block, it is sent again, and token events may get a new id because their position in the block changed. Gray3 does not send a "cancelled" message, so:

  • Show unconfirmed events as pending.
  • Credit balances, ship goods, or release funds only on confirmed: true.
  • Expire pending items that never confirm, for example after an hour.