Events and payloads
Verified and unverified tokens
Every token event says whether the token is verified, and you can skip unverified tokens.
Overview
Anyone can create a token and send it to any address, so busy wallets often receive spam tokens. Every fungible token transfer and token approval carries data.verified:
true: the token is verified in the Gray3 token registry.false: the token is unknown or not reviewed. It may be legitimate, or it may be spam.
The tokens setting
| tokens | Behavior |
|---|---|
| all (default) | Send every token event, with verified set to true or false. Filter in your own code. |
| verified | Skip token transfers and approvals for unverified tokens. Skipped events are not sent and use no credits. |
The setting affects fungible tokens only. Coin transfers, NFT events, and contract events are always sent, and NFT events have no verified field.
Switch to verified only
bash
curl -sS -X PATCH "https://webhooks.gray3.io/v1/webhook" \
-H "X-Gray-Project-Id: proj_your_project_id" \
-H "Authorization: Bearer gray_whk_your_webhook_key" \
-H "Content-Type: application/json" \
-d '{ "tokens": "verified" }'