---
title: "Onchain activity detected"
method: POST
path: "onchainActivityDetected"
tags: ["Onchain Data"]
---

# Onchain activity detected

`POST onchainActivityDetected` (webhook)

Triggered when onchain activity matching your subscription filters is detected. Your API will receive a POST request at the webhook URL you configured. Use `labels` on your webhook subscription to filter which onchain events are delivered (see the Create Webhook Subscription endpoint for allowed labels).

## Headers

- `X-Webhook-Signature` string, required
- `X-Hook0-Signature` string, required

## Payload

- OnchainActivityDetectedEvent: The payload delivered when onchain activity matching your subscription filters is detected. Each event corresponds to a single decoded contract log emitted onchain. The set of keys in `parameters` varies by the contract event being decoded (e.g., `Transfer(address,address,uint256)`).
  - `block_number` integer, required: The block number containing the transaction that emitted the event.
  - `contract_address` string, required: The contract address that emitted the event.
  - `event_name` string, required: The name of the decoded contract event.
  - `event_signature` string, required: The canonical event signature used to decode the log, including parameter types (e.g., `Transfer(address,address,uint256)`).
  - `log_index` integer, required: The zero-based index of the log within the transaction.
  - `network` string, required: The blockchain network where the activity was detected.
  - `parameters` OnchainActivityEventParameters, required: Decoded event parameters from the contract event. Keys correspond to the named arguments in the event signature (e.g., `from`, `to`, `value` for an ERC-20 `Transfer`). Values are returned as strings to preserve precision for large integers and to avoid loss for address types. The exact set of keys depends on the contract event.
  - `timestamp` string, date-time, required: The block timestamp of the transaction (ISO 8601 format).
  - `transaction_from` string, required: The address that initiated the transaction (the transaction sender).
  - `transaction_hash` string, required: The hash of the transaction that emitted the event.
  - `transaction_to` string, required: The address the transaction was sent to (typically a contract address).

## Acknowledgement `200`

Webhook received and processed successfully. Return a 200 status code to acknowledge receipt. If your endpoint does not return a 2xx status code, the webhook will be retried with exponential backoff.

## Other responses

- `401`: Invalid signature. The webhook signature verification failed.

---

[API](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis.md) - [All operations](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57?raw)
