Only this contract
Chainhook reports USDC transfers from 0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e only. Tokens on Avalanche C-Chain that copy the USDC name or symbol are ignored, so a spoofed deposit never reaches your endpoint.
Get a signed webhook when a Avalanche C-Chain address sends or receives USD Coin (USDC). Chainhook waits 20 blocks, about 20 seconds, then posts the transfer to your endpoint.
The contract Chainhook watches, how amounts are scaled, and how long USDC takes to reach your endpoint.
0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6eAvalanche C-Chain produces about one block per second. Register an address once and Chainhook pushes each confirmed transfer after 20 blocks, instead of you polling an RPC per address.
Create a webhook with network: "avalanche", type: "token" and the address you want to watch. The signing secret is returned once.
Every Avalanche C-Chain block is scanned. A matching USDC transfer is held until it is 20 blocks deep, about 20 seconds.
A transfer.detected event arrives with an X-Webhook-Signature header. Failed attempts are retried automatically, up to 3 attempts in total, waiting 1 minute, then 5 minutes between attempts.
{
"network": "avalanche",
"type": "token",
"direction": "in",
"address": "0x3c3facc56a38aab3314e6a46dc4f1c9f303b023e",
"webhook_url": "https://api.example.com/webhooks/chainhook"
}What your endpoint receives for an incoming USDC transfer on Avalanche C-Chain. amount is already scaled by decimals; amount_raw is the on-chain integer.
POST /webhooks/chainhook HTTP/1.1 Host: api.example.com Content-Type: application/json User-Agent: chainhook/1.x X-Webhook-Id: 01a0fbfd-4fe4-7a3c-8f21-6b9d0e4c7a15 X-Webhook-Signature: 7a12d02673420517279805cf8188a1a62c6f69706161ba5cf0a8ec91ea66b8e3 { "id": "01a0fbfd-4fe4-7a3c-8f21-6b9d0e4c7a15", "event": "transfer.detected", "created_at": "2026-10-02T09:41:17Z", "webhook_id": "01a0fbf2-fadc-7c3e-9b1a-4d6f2e8a5c71", "data": { "network": "avalanche", "direction": "in", "type": "token", "transaction_hash": "0x29728f6d8309f1f11f6a7cc8fcba903aae83bf404ac4a2579e9f613c2fc571b7", "transfer_index": 6, "block_number": 98152017, "block_hash": "0x62b84b2229e167d954cc4ec7076a87a1c04ee9eea82dfd22271df8a63c6ec54b", "block_timestamp": "2026-10-02T09:41:05Z", "confirmations": 20, "from": "0x5b8ddac816baad6111c7c7b39c88355c00ba7ea1", "to": "0x3c3facc56a38aab3314e6a46dc4f1c9f303b023e", "currency": "USDC", "amount": "250", "amount_raw": "250000000", "decimals": 6, "contract_address": "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e" } }
X-Webhook-Signature is a hex HMAC-SHA256 of the raw body, keyed with your webhook's secret. Reject any request where it doesn't match.
import crypto from 'node:crypto'; import express from 'express'; const app = express(); app.post( '/webhooks/chainhook', express.raw({ type: 'application/json' }), (req, res) => { const signature = req.get('X-Webhook-Signature') ?? ''; const expected = crypto .createHmac('sha256', process.env.CHAINHOOK_SIGNING_SECRET) .update(req.body) .digest('hex'); const valid = signature.length === expected.length && crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected)); if (!valid) { return res.sendStatus(401); } const event = JSON.parse(req.body); // Skip event.id if you've already processed it. res.sendStatus(200); }, );
Chainhook reports USDC transfers from 0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e only. Tokens on Avalanche C-Chain that copy the USDC name or symbol are ignored, so a spoofed deposit never reaches your endpoint.
USDC on Avalanche C-Chain uses 6 decimals. Credit the amount string, or scale amount_raw by decimals; never parse amounts as floating-point numbers.
A webhook with type: "token" reports every listed token on the address. Filter on currency and contract_address if you only accept USDC.
Delivery is at least once. Store the event id, or transaction_hash with transfer_index, and skip events you have already processed.
Start with 100 trial detections for 1 month and pay only for what you use. Paid plans add detections, webhooks, and per-detection overage.
$0/month
Card required, no monthly fee
$9/month
or $90/year billed yearly
$29/month
or $290/year billed yearly
$99/month
or $990/year billed yearly
Custom limits for teams that need more than 400,000 detections a month or more than 200 active webhooks. Contact us and we'll set up a plan around your volume.
Prices in USD, plus applicable tax. Billed monthly or yearly, and paid allowances reset monthly. Cancel any time and keep your plan until the period ends.
Can't find your answer? Contact support.
0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e, with 6 decimals.
Create a webhook with network: "avalanche", type: "token", direction: "in" and the receiving address. Each confirmed USDC transfer arrives as a transfer.detected event.
About 20 seconds. Chainhook waits 20 blocks on Avalanche C-Chain before it sends the event.
No. Chainhook only reads public blockchain data. You register a public address and receive events about it.
Create an account and start with 100 trial detections for 1 month.