Skip to main content
POST
/
webhook
/
solana-address-activity
Create Solana Address 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"
  }
}
'
const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'My Webhook',
description: 'My Webhook description',
webhookUrl: 'https://webhook.uniblock.dev',
provider: 'Helius',
metadata: {source: 'Uniblock'}
})
};

fetch('https://api-test.uniblock.dev/uni/v1/webhook/solana-address-activity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://api-test.uniblock.dev/uni/v1/webhook/solana-address-activity"

payload = {
"name": "My Webhook",
"description": "My Webhook description",
"webhookUrl": "https://webhook.uniblock.dev",
"provider": "Helius",
"metadata": { "source": "Uniblock" }
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)

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