Address Activity Webhook

Get real-time updates of value and token transfers for the addresses that you track using the Address Activity webhook

Introduction

Alchemy's Address Activity webhook tracks all ETH, ERC20, ERC721 and ERC1155 transfers. This provides your app with real-time state changes when an address sends/receives tokens or ETH. You can specify the addresses for which you want to track this activity. A maximum of 50,000 addresses can be added to a single webhook. Address Activity webhook is supported on all the networks in Alchemy.

📘

TIP

If you are looking for historical activity, check out the Transfers API Endpoints.

Types of transfers

There are three main types of transfers that are captured when receiving a fromAddress activity response.

Transfer typeDescription
External ETHTop-level transactions from an EOA (Externally Owned Account).
TokenEvent logs for ERC20, ERC721, and ERC1155 transfers.
Internal ETHInternal Transfers from a smart contract address.

🚧

NOTE

Internal transfers with the call type delegatecall are not supported on Alchemy. Although they have a value associated with them, they don't transfer a value. For details read the Ethereum Yellow Paper. Internal transfer miner rewards are also unsupported on Alchemy.

Example Response

Whenever one of the addresses that you are tracking sends/receives tokens or ETH, you receive a response from the webhook that looks like this:

{
  "webhookId": "wh_octjglnywaupz6th",
  "id": "whevt_ogrc5v64myey69ux",
  "createdAt": "2022-02-28T17:48:53.306Z",
  "type": "ADDRESS_ACTIVITY",
  "event": {
    "network": "MATIC_MAINNET",
    "activity": [
      {
        "category": "token",
        "fromAddress": "0x59479de9d374bdbcba6c791e5d036591976fe422",
        "toAddress": "0x59479de9d374bdbcba6c791e5d036591976fe425",
        "erc721TokenId": "0x1",
        "rawContract": {
          "rawValue": "0x",
          "address": "0x93C46aA4DdfD0413d95D0eF3c478982997cE9861"
        },
        "log": {
          "removed": false,
          "address": "0x93C46aA4DdfD0413d95D0eF3c478982997cE9861",
          "data": "0x",
          "topics": [
            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
            "0x00000000000000000000000059479de9d374bdbcba6c791e5d036591976fe422",
            "0x00000000000000000000000059479de9d374bdbcba6c791e5d036591976fe425",
            "0x0000000000000000000000000000000000000000000000000000000000000001"
          ]
        }
      }
    ]
  }
}

Field Definitions

Below you can find descriptions for each field of the response.

FieldDescriptionValue
webhookIdUnique ID of the webhook destination.wh_octjglnywaupz6th
idID of the event.whevt_ogrc5v64myey69ux
createdAtTimestamp when the webhook was created.2022-02-28T17:48:53.306Z
typeWebhook event type.ADDRESS_ACTIVITY
eventMined transaction object.N/A
networkThe default network for the webhook.MATIC_MAINNET
activityList of transfer events whose from or to address matches the address configured in the webhook.N/A
categoryThe external, internal, erc721, erc1155, erc20, or token category label for the transfer.token
fromAddressTransfer from address.0x59479de9d374bdbcba6c791e5d036591976fe422
toAddressTransfer to address.0x59479de9d374bdbcba6c791e5d036591976fe425
erc721TokenIdRaw erc721 token ID.0x1
rawContractUnderlying contract data.N/A
rawValueThe raw transfer value.0x
addressContract address.0x93C46aA4DdfD0413d95D0eF3c478982997cE9861
logReturned log of the token transfer event.N/A
removedTransaction is in a chain re-org & no longer in the canonical chain.false
addressLog origination address.0x93C46aA4DdfD0413d95D0eF3c478982997cE9861
dataNon-indexed arguments of the log.0x
topicsArray of zero to four 32 bytes of indexed log arguments.0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
blockNumthe block where the transfer occurred (hex string)N/A
hashtransaction hash (hex string)N/A
value converted asset transfer value as a number (raw value divided by contract decimal). Omitted if erc721 transfer or contract decimal is not availableN/A
assetETH or the token's symbol. Omitted if not defined in the contract and not available from other sourcesN/A
erc1155MetadataA list of objects containing the ERC1155 tokenId (hex string) and value (hex string). Omitted if not an ERC1155 transferN/A
decimalcontract decimal (hex string). Omitted if not defined in the contract and not available from other sources.N/A
typeTraceAddressthe type of internal transfer (call, staticcall, create, suicide) followed by the trace address (ex. call_0_1). Omitted if not internal transfer. (note you can use this as a unique id for internal transfers since they will have the same parent hash)N/A

How to Set-Up Address Activity Webhook

  1. In your Alchemy Dashboard click the Notify tab.
  2. Find Address Activity and click the CREATE WEBHOOK button on the right side of the window.
157157
  1. Select your CHAIN in the dropdown. Then choose your NETWORK.
  2. Paste your unique webhook URL into the WEBHOOK URL field.
  3. Enter your ETHEREUM ADDRESSES.
12001200
  1. Test your webhook by clicking the TEST WEBHOOK button.
  2. After the test is successful, click CREATE WEBHOOK. Your webhook appears in the list.
  3. Check your endpoint to see the responses.

Useful Endpoints

EndpointDescription
Webhook AddressesGet all addresses for an Address Activity webhook
Update Webhook AddressesAdd or remove addresses from a specific webhook.
Create WebhookThis endpoint allows you to create a webhook programatically.
Delete WebhookAllows you to delete a webhook.
Update WebhookAllows you to set status of webhooks to active or inactive.