Skip to content
Docs

Overview

What webhooks do

Gray3 sends a signed POST to your server whenever a watched address moves funds or calls a contract.

Overview

Gray3 Webhooks tell your server when something happens to an address you care about. Register a wallet address once, and every time it sends or receives coins, tokens, or NFTs, or calls a contract, Gray3 sends a signed POST request to your URL within seconds. You do not need to poll.

Common uses:

  • Credit a user as soon as a deposit lands on their deposit address.
  • Show "payment received" in your app before the block is final, then mark it final when it confirms.
  • Alert on any outgoing transfer from a treasury or hot wallet.
  • Keep a local copy of wallet history up to date without re-reading the chain.

The model in one minute

  • One webhook per project. It has one URL, one signing key, and a list of networks it listens on.
  • Watched addresses. You add the addresses you want to follow, one at a time or up to 500 per request.
  • Events. Each matching on-chain action becomes one JSON message with a stable id, a type such as token_transfer, and a direction of in, out, or self.
  • Two moments. By default you get a message when the transaction is first seen (confirmed: false) and another when it has enough confirmations (confirmed: true).

Where to go next