Skip to content

Instantly share code, notes, and snippets.

@bmoyroud
Last active November 9, 2022 14:30
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmoyroud/cd0b0f57d7dd92ca662d7b0c705b07c7 to your computer and use it in GitHub Desktop.
Save bmoyroud/cd0b0f57d7dd92ca662d7b0c705b07c7 to your computer and use it in GitHub Desktop.
Alchemy - NFT Activity Webhook Payload
{
"webhookId": "wh_octjglnywaupz6th",
"id": "whevt_ogrc5v64myey69ux",
"createdAt": "2022-02-28T17:48:53.306Z",
"type": "NFT_ACTIVITY",
"blockNumber": 15000000,
"events": [
{
"network": // network for the event - e.g ETH_MAINNET, ETH_GOERLI
"activity": {
"fromAddress": "0x15dd13f3c4c5279222b5f09ed1b9e9340ed17185", // from address of NFT transfer (hex string)
"toAddress": "0xfae46f94ee7b2acb497cecaff6cff17f621c693d", // to address of NFT transfer (hex string)
"transactionHash": // transaction hash (hex string)
"category": "erc1155", // erc721 or erc1155
"erc721TokenId": // token id of ERC721 token transferred (hex string)
// null if not an ERC721 transfer
"erc1155Metadata": [ // null if not ERC1155 transfer
{
"tokenId": "0x15dd13f3c4c5279222b5f09ed1b9e9340ed17185000000000000020000000001", // ERC1155 token id (hex string)
"value": "0x1" // hex string
},
...
],
"log": {
"address": "0x88b48f654c30e99bc2e4a1559b4dcf1ad93fa656",
"topics": [
"0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62",
"0x00000000000000000000000015dd13f3c4c5279222b5f09ed1b9e9340ed17185",
"0x00000000000000000000000015dd13f3c4c5279222b5f09ed1b9e9340ed17185",
"0x000000000000000000000000fae46f94ee7b2acb497cecaff6cff17f621c693d"
],
"data": "0x15dd13f3c4c5279222b5f09ed1b9e9340ed171850000000000000200000000010000000000000000000000000000000000000000000000000000000000000001",
"blockNumber": "0xa98a55",
"transactionHash": "0xc8d14d6649a186e6609fce2ac7c46145347ee9e2f0ba32869452755db5c668a1",
"transactionIndex": "0x6",
"blockHash": "0x44bd2324fc1343e862e34a94a1d5d573c80713ff62f1f7fcb0187837b13eb66b",
"logIndex": "0xd",
"removed": false
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment