Skip to main content
POST
/
webhook
/
solana-address-activity
cURL
curl --request POST \
  --url https://api.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"
        }
      }
    ]
  }
}
'

Authorizations

X-API-KEY
string
header
required

API key to access the API (Optional)

Body

application/json
name
string
required

Name of webhook.

Example:

"My Webhook"

description
string
required

Description of webhook.

Example:

"My Webhook description"

webhookUrl
string
required

URL where webhooks are sent to.

Example:

"https://webhook.uniblock.dev"

provider
enum<string>
required

Provider of webhook service.

Available options:
Alchemy,
Moralis,
Tatum,
SimpleHash,
Helius
Example:

"Helius"

metadata
object
required

Additional metadata to be returned alongside a webhook response.

Example:
{ "source": "Uniblock" }
addresses
string[]

Accounts to be watched.

Example:
[
"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg"
]
filter
object

An object representing the desired filters.

Example:
{
"AND": [
{
"leaf": {
"field": "programId",
"operator": "eq",
"value": "DfXygSm4jCyNCybVYYK6DwvWqjKee8pbDmJGcLWNDXjh"
}
},
{
"leaf": {
"field": "data",
"operator": "gt",
"value": "4294967295"
}
}
]
}

Response

201 - undefined