curl --request POST \
--url https://api-test.uniblock.dev/uni/v1/webhook/solana-address-activity \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"name": "My Webhook",
"description": "My Webhook description",
"webhookUrl": "https://webhook.uniblock.dev",
"provider": "Helius",
"metadata": {
"source": "Uniblock"
},
"addresses": [
"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg"
],
"filter": {
"AND": [
{
"leaf": {
"field": "programId",
"operator": "eq",
"value": "DfXygSm4jCyNCybVYYK6DwvWqjKee8pbDmJGcLWNDXjh"
}
},
{
"leaf": {
"field": "data",
"operator": "gt",
"value": "4294967295"
}
}
]
}
}
'Create an address activity driven webhook.
curl --request POST \
--url https://api-test.uniblock.dev/uni/v1/webhook/solana-address-activity \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"name": "My Webhook",
"description": "My Webhook description",
"webhookUrl": "https://webhook.uniblock.dev",
"provider": "Helius",
"metadata": {
"source": "Uniblock"
},
"addresses": [
"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg"
],
"filter": {
"AND": [
{
"leaf": {
"field": "programId",
"operator": "eq",
"value": "DfXygSm4jCyNCybVYYK6DwvWqjKee8pbDmJGcLWNDXjh"
}
},
{
"leaf": {
"field": "data",
"operator": "gt",
"value": "4294967295"
}
}
]
}
}
'API key to access the API (optional)
Name of webhook.
"My Webhook"
Description of webhook.
"My Webhook description"
URL where webhooks are sent to.
"https://webhook.uniblock.dev"
Provider of webhook service.
Alchemy, Moralis, Tatum, SimpleHash, Helius "Helius"
Additional metadata to be returned alongside a webhook response.
{ "source": "Uniblock" }Accounts to be watched.
[
"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg"
]An object representing the desired filters.
Show child attributes
{
"AND": [
{
"leaf": {
"field": "programId",
"operator": "eq",
"value": "DfXygSm4jCyNCybVYYK6DwvWqjKee8pbDmJGcLWNDXjh"
}
},
{
"leaf": {
"field": "data",
"operator": "gt",
"value": "4294967295"
}
}
]
}Was this page helpful?