curl --request PATCH \
--url https://api-test.uniblock.dev/uni/v1/webhook/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"name": "My Webhook",
"description": "My Webhook description",
"metadata": {
"source": "Uniblock"
},
"contractAddress": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"chainIds": [
1
],
"addChainIds": [
1
],
"removeChainIds": [
1
],
"addresses": [
"0x89e51fA8CA5D66cd220bAed62ED01e8951aa7c40"
],
"addAddresses": [
"0x89e51fA8CA5D66cd220bAed62ED01e8951aa7c40"
],
"removeAddresses": [
"0x89e51fA8CA5D66cd220bAed62ED01e8951aa7c40"
],
"filter": {
"AND": [
{
"leaf": {
"field": "topic0",
"operator": "eq",
"value": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
}
},
{
"leaf": {
"field": "data",
"operator": "gt",
"value": "4294967295"
}
}
]
},
"walletAddresses": [
"0xfa6E0aDDF68267b8b6fF2dA55Ce01a53Fad6D8e2"
],
"addWalletAddresses": [
"0xfa6E0aDDF68267b8b6fF2dA55Ce01a53Fad6D8e2"
],
"removeWalletAddresses": [
"0xfa6E0aDDF68267b8b6fF2dA55Ce01a53Fad6D8e2"
],
"contractAddresses": [
"ethereum.0x582048c4077a34e7c3799962f1f8c5342a3f4b12",
"solana.28PLEmWxWF2oib7Wh2TKoH3XVNuWyaxLejveBHLtFkJo"
],
"addContractAddresses": [
"ethereum.0x582048c4077a34e7c3799962f1f8c5342a3f4b12",
"solana.28PLEmWxWF2oib7Wh2TKoH3XVNuWyaxLejveBHLtFkJo"
],
"removeContractAddresses": [
"ethereum.0x582048c4077a34e7c3799962f1f8c5342a3f4b12",
"solana.28PLEmWxWF2oib7Wh2TKoH3XVNuWyaxLejveBHLtFkJo"
],
"marketplaces": [
"opensea",
"x2y2",
"looksrare"
],
"addMarketplaces": [
"opensea",
"x2y2",
"looksrare"
],
"removeMarketplaces": [
"opensea",
"x2y2",
"looksrare"
],
"collectionIds": [
"510139ec0d8cf5513d59a8d3afa1c061"
],
"addCollectionIds": [
"510139ec0d8cf5513d59a8d3afa1c061"
],
"removeCollectionIds": [
"510139ec0d8cf5513d59a8d3afa1c061"
],
"nftIds": [
"ethereum.0x05b1ef501cfdeed15f73bfc4a926e528cd95d190.6120",
"solana.2iZBbRGnLVEEZH6JDsaNsTo66s2uxx7DTchVWKU8oisR"
],
"addNftIds": [
"ethereum.0x05b1ef501cfdeed15f73bfc4a926e528cd95d190.6120",
"solana.2iZBbRGnLVEEZH6JDsaNsTo66s2uxx7DTchVWKU8oisR"
],
"removeNftIds": [
"ethereum.0x05b1ef501cfdeed15f73bfc4a926e528cd95d190.6120",
"solana.2iZBbRGnLVEEZH6JDsaNsTo66s2uxx7DTchVWKU8oisR"
]
}
'Edit an existing webhook.
curl --request PATCH \
--url https://api-test.uniblock.dev/uni/v1/webhook/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"name": "My Webhook",
"description": "My Webhook description",
"metadata": {
"source": "Uniblock"
},
"contractAddress": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"chainIds": [
1
],
"addChainIds": [
1
],
"removeChainIds": [
1
],
"addresses": [
"0x89e51fA8CA5D66cd220bAed62ED01e8951aa7c40"
],
"addAddresses": [
"0x89e51fA8CA5D66cd220bAed62ED01e8951aa7c40"
],
"removeAddresses": [
"0x89e51fA8CA5D66cd220bAed62ED01e8951aa7c40"
],
"filter": {
"AND": [
{
"leaf": {
"field": "topic0",
"operator": "eq",
"value": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
}
},
{
"leaf": {
"field": "data",
"operator": "gt",
"value": "4294967295"
}
}
]
},
"walletAddresses": [
"0xfa6E0aDDF68267b8b6fF2dA55Ce01a53Fad6D8e2"
],
"addWalletAddresses": [
"0xfa6E0aDDF68267b8b6fF2dA55Ce01a53Fad6D8e2"
],
"removeWalletAddresses": [
"0xfa6E0aDDF68267b8b6fF2dA55Ce01a53Fad6D8e2"
],
"contractAddresses": [
"ethereum.0x582048c4077a34e7c3799962f1f8c5342a3f4b12",
"solana.28PLEmWxWF2oib7Wh2TKoH3XVNuWyaxLejveBHLtFkJo"
],
"addContractAddresses": [
"ethereum.0x582048c4077a34e7c3799962f1f8c5342a3f4b12",
"solana.28PLEmWxWF2oib7Wh2TKoH3XVNuWyaxLejveBHLtFkJo"
],
"removeContractAddresses": [
"ethereum.0x582048c4077a34e7c3799962f1f8c5342a3f4b12",
"solana.28PLEmWxWF2oib7Wh2TKoH3XVNuWyaxLejveBHLtFkJo"
],
"marketplaces": [
"opensea",
"x2y2",
"looksrare"
],
"addMarketplaces": [
"opensea",
"x2y2",
"looksrare"
],
"removeMarketplaces": [
"opensea",
"x2y2",
"looksrare"
],
"collectionIds": [
"510139ec0d8cf5513d59a8d3afa1c061"
],
"addCollectionIds": [
"510139ec0d8cf5513d59a8d3afa1c061"
],
"removeCollectionIds": [
"510139ec0d8cf5513d59a8d3afa1c061"
],
"nftIds": [
"ethereum.0x05b1ef501cfdeed15f73bfc4a926e528cd95d190.6120",
"solana.2iZBbRGnLVEEZH6JDsaNsTo66s2uxx7DTchVWKU8oisR"
],
"addNftIds": [
"ethereum.0x05b1ef501cfdeed15f73bfc4a926e528cd95d190.6120",
"solana.2iZBbRGnLVEEZH6JDsaNsTo66s2uxx7DTchVWKU8oisR"
],
"removeNftIds": [
"ethereum.0x05b1ef501cfdeed15f73bfc4a926e528cd95d190.6120",
"solana.2iZBbRGnLVEEZH6JDsaNsTo66s2uxx7DTchVWKU8oisR"
]
}
'API key to access the API (optional)
Id of the webhook to edit.
"ba8eea63-9354-42f5-8268-03483a7f1df5"
Name of webhook.
"My Webhook"
Description of webhook.
"My Webhook description"
Additional metadata to be returned alongside a webhook response.
{ "source": "Uniblock" }Address of contract to watch.
"0xdAC17F958D2ee523a2206206994597C13D831ec7"
Unique identifier for blockchain networks.
[object Object] [1]Add unique identifiers for blockchain networks.
[object Object] [1]Remove unique identifiers for blockchain networks.
[object Object] [1]Addresses to be watched.
[
"0x89e51fA8CA5D66cd220bAed62ED01e8951aa7c40"
]Add addresses to be watched.
[
"0x89e51fA8CA5D66cd220bAed62ED01e8951aa7c40"
]Remove addresses from being watched.
[
"0x89e51fA8CA5D66cd220bAed62ED01e8951aa7c40"
]An object representing the desired filters.
{
"AND": [
{
"leaf": {
"field": "topic0",
"operator": "eq",
"value": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
}
},
{
"leaf": {
"field": "data",
"operator": "gt",
"value": "4294967295"
}
}
]
}Set addresses watched by wallet event.
[
"0xfa6E0aDDF68267b8b6fF2dA55Ce01a53Fad6D8e2"
]Add addresses watched by wallet event.
[
"0xfa6E0aDDF68267b8b6fF2dA55Ce01a53Fad6D8e2"
]Remove addresses watched by wallet event.
[
"0xfa6E0aDDF68267b8b6fF2dA55Ce01a53Fad6D8e2"
]Set contract addresses for a webhook. Input format is {chain}.{address}
[
"ethereum.0x582048c4077a34e7c3799962f1f8c5342a3f4b12",
"solana.28PLEmWxWF2oib7Wh2TKoH3XVNuWyaxLejveBHLtFkJo"
]Addresses to add from webhook. Input format is {chain}.{address}
[
"ethereum.0x582048c4077a34e7c3799962f1f8c5342a3f4b12",
"solana.28PLEmWxWF2oib7Wh2TKoH3XVNuWyaxLejveBHLtFkJo"
]Addresses to remove from webhook. Input format is {chain}.{address}
[
"ethereum.0x582048c4077a34e7c3799962f1f8c5342a3f4b12",
"solana.28PLEmWxWF2oib7Wh2TKoH3XVNuWyaxLejveBHLtFkJo"
]Marketplaces to monitor.
["opensea", "x2y2", "looksrare"]Additional marketplaces to monitor.
["opensea", "x2y2", "looksrare"]Marketplaces to remove from monitoring.
["opensea", "x2y2", "looksrare"]Collection Ids to monitor.
["510139ec0d8cf5513d59a8d3afa1c061"]Additional collection Ids to monitor.
["510139ec0d8cf5513d59a8d3afa1c061"]Collection Ids to remove from monitoring.
["510139ec0d8cf5513d59a8d3afa1c061"]NFT Ids to monitor. Input format is {chain}.{contract}.{token_id} for EVM chains, {chain}.{token_id} for Solana
[
"ethereum.0x05b1ef501cfdeed15f73bfc4a926e528cd95d190.6120",
"solana.2iZBbRGnLVEEZH6JDsaNsTo66s2uxx7DTchVWKU8oisR"
]Addtional NFT Ids to monitor. Input format is {chain}.{contract}.{token_id} for EVM chains, {chain}.{token_id} for Solana
[
"ethereum.0x05b1ef501cfdeed15f73bfc4a926e528cd95d190.6120",
"solana.2iZBbRGnLVEEZH6JDsaNsTo66s2uxx7DTchVWKU8oisR"
]NFT Ids to remove from monitoring. Input format is {chain}.{contract}.{token_id} for EVM chains, {chain}.{token_id} for Solana
[
"ethereum.0x05b1ef501cfdeed15f73bfc4a926e528cd95d190.6120",
"solana.2iZBbRGnLVEEZH6JDsaNsTo66s2uxx7DTchVWKU8oisR"
]Was this page helpful?