Creates a webhook with specified account addresses, transaction types, and a webhook URL. Optionally, you can include an authorization header to verify that the webhook originated from Helius. For a full list of supported transaction types, please see Transaction Types
You can add up to 100,000 addresses via the API.
Code Examples
Enhanced Transactions Payload
{"webhookURL":"https://TestServer.test.repl.co/webhooks","transactionTypes": ["NFT_SALE"],// Use ["ACCOUNT_ADDRESS", "ACCOUNT_ADDRESS"] for multiple accountAddresses. "accountAddresses": ["ACCOUNT_ADDRESS"],"webhookType":"enhanced",// "enhancedDevnet""authHeader":"<Optional_AuthHeader>"}
Raw Transactions Payload
{"webhookURL":"https://TestServer.test.repl.co/webhooks","transactionTypes": ["Any"],// Use ["ACCOUNT_ADDRESS", "ACCOUNT_ADDRESS"] for multiple accountAddresses. "accountAddresses": ["ACCOUNT_ADDRESS"],"webhookType":"raw",// "rawDevnet""txnStatus":"all",// success/failed"authHeader":"<Optional_AuthHeader>"}
Discord Transactions
{"webhookURL":"https://discord.com/api/webhooks/<WebhookID>/<TokenID>","transactionTypes": ["NFT_SALE"],// Use ["ACCOUNT_ADDRESS", "ACCOUNT_ADDRESS"] for multiple accountAddresses. "accountAddresses": ["ACCOUNT_ADDRESS"],"webhookType":"discord"// "discordDevnet"}