Links

Create Webhook

Note: It may take up to 2 minutes for webhook changes to take effect!

POST /webhooks

Creates a webhook given account addresses, transaction types, and a webhook URL. You can optionally provide an authorization header to verify that the webhook came from Helius. The given webhook URLs will be called with our ​webhook payload.
Important! For a full list of supported transactionTypes —please see Transaction Types​
​
If you'd like a raw transaction payload instead of our enhanced transaction object, please input "raw" for the webhookType. If you'd like the enhanced version, input "enhanced". Note that raw transactions have much lower latencies due to us not parsing the event types.
Oops, something is missing.
We could not find the original source to display this content.

Sample Payload (Raw Transactions)

{
"webhookURL": "https://TestServer.test.repl.co/webhooks",
"transactionTypes": ["Any"],
"accountAddresses": ["M2mx93ekt1fmXSVkTrUL9xVFHkmME8HTUi5Cyc5aF7K"],
"webhookType": "raw", // "rawDevnet"
"authHeader": "<Optional_AuthHeader>"
}

Sample Payload (Enhanced Transactions)

{
"webhookURL": "https://TestServer.test.repl.co/webhooks",
"transactionTypes": ["NFT_SALE"],
"accountAddresses": ["M2mx93ekt1fmXSVkTrUL9xVFHkmME8HTUi5Cyc5aF7K"],
"webhookType": "enhanced", // "enhancedDevnet"
"authHeader": "<Optional_AuthHeader>"
}

Sample Payload (Discord Transactions)

{
"webhookURL": "https://discord.com/api/webhooks/<WebhookID>/<TokenID>",
"transactionTypes": ["NFT_SALE"],
"accountAddresses": ["M2mx93ekt1fmXSVkTrUL9xVFHkmME8HTUi5Cyc5aF7K"],
"webhookType": "discord" // "discordDevnet"
}

To create a discord webhookURL

  • Make sure you are an admin on the server
  • Go to Server Settings -> Integrations -> Webhooks
  • Click "New Webhook"
  • Copy Webhook URL
​
​