Skip to content
Docs

Get set up

Quickstart

Create a webhook, run a receiver, send a test, and watch your first address in five minutes.

Overview

This walk-through takes you from nothing to a real event arriving at your server. You need a project on a plan that includes webhooks, and an HTTPS URL that can receive POST requests. For local testing, a tunnel such as ngrok or Cloudflare Tunnel works.

1. Create the webhook in Console

  1. Open Console, choose your project, then go to Webhooks.
  2. Enter your URL, for example https://api.example.com/webhooks/gray3.
  3. Pick the networks to listen on.
  4. Create the webhook and copy the key that starts with gray_whk_. It is shown only once.

2. Run a receiver

Your endpoint must check the signature and answer with a 2xx status quickly. The receiver guide has a complete example. Save the key as GRAY_WEBHOOK_KEY on your server.

3. Send a test event

Click Send test in Console, or call the API. A 2xx reply marks the webhook as verified, and only verified webhooks can watch addresses.

Request
curl -sS -X POST "https://webhooks.gray3.io/v1/webhook/test" \
  -H "X-Gray-Project-Id: proj_your_project_id" \
  -H "Authorization: Bearer gray_whk_your_webhook_key"

4. Watch an address

Request
curl -sS -X POST "https://webhooks.gray3.io/v1/webhook/addresses" \
  -H "X-Gray-Project-Id: proj_your_project_id" \
  -H "Authorization: Bearer gray_whk_your_webhook_key" \
  -H "Content-Type: application/json" \
  -d '{
  "chainId": "base",
  "address": "0x8ba1f109551bD432803012645Ac136ddd64DBA72",
  "label": "Deposit wallet #1"
}'

5. Make it move

Send a small amount to that address. Within seconds your server receives a native_transfer message with confirmed: false, followed by the same id with confirmed: true once the block is final. Check deliveries or Console if nothing arrives.