/webhooks/rest/v1/webhooks/{webhookId}/template/{templateId} REST API Endpoint
पथ पैरामीटर
webhookId
डोरी
आवश्यक
लोड हो रहा है...
templateId
डोरी
आवश्यक
लोड हो रहा है...
evmWalletFilterevmContractEventsevmAbiFiltersolanaWalletFilterbitcoinWalletFilterxrplWalletFilterhyperliquidWalletEventsFilterstellarWalletTransactionsSourceAccountFilterशरीर के मापदंड
नाम
डोरी
लोड हो रहा है...
notification_email
डोरी
लोड हो रहा है...
destination_attributes
वस्तु
लोड हो रहा है...
url
डोरी
लोड हो रहा है...
security_token
डोरी
लोड हो रहा है...
compression
डोरी
लोड हो रहा है...
nonegziptemplateArgs
वस्तु
आवश्यक
Template-specific arguments. Select a template to see its required arguments.
Arguments for the evmWalletFilter template.
walletsListName
डोरी
आवश्यक
Name of a kv store list containing EVM wallet addresses to monitor.
Arguments for the evmContractEvents template. At least one of contractsListName or eventHashesListName should be provided.
contractsListName
डोरी
Name of a kv store list containing contract addresses to monitor.
eventHashesListName
डोरी
Name of a kv store list containing event signature hashes to monitor.
Arguments for the evmAbiFilter template.
abiJson
डोरी
आवश्यक
ABI JSON string.
contractsListName
डोरी
Name of a kv store list containing contract addresses to monitor.
Arguments for the solanaWalletFilter template.
accountsListName
डोरी
आवश्यक
Name of a kv store list containing Solana account addresses to monitor.
Arguments for the bitcoinWalletFilter template.
walletsListName
डोरी
आवश्यक
Name of a kv store list containing Bitcoin wallet addresses to monitor.
Arguments for the xrplWalletFilter template.
walletsListName
डोरी
आवश्यक
Name of a kv store list containing XRP Ledger wallet addresses to monitor.
Arguments for the hyperliquidWalletEventsFilter template.
walletsListName
डोरी
आवश्यक
Name of a kv store list containing Hyperliquid wallet addresses to monitor.
Arguments for the stellarWalletTransactionsSourceAccountFilter template.
walletsListName
डोरी
आवश्यक
Name of a kv store list containing Stellar wallet addresses to monitor.
रिटर्न
पहचान
डोरी
लोड हो रहा है...
बनाया गया_पर
डोरी
लोड हो रहा है...
नाम
डोरी
लोड हो रहा है...
नेटवर्क
डोरी
लोड हो रहा है...
notification_email
डोरी
लोड हो रहा है...
destination_attributes
वस्तु
लोड हो रहा है...
url
डोरी
लोड हो रहा है...
security_token
डोरी
लोड हो रहा है...
compression
डोरी
लोड हो रहा है...
sequence
पूर्णांक
लोड हो रहा है...
स्थिति
डोरी
लोड हो रहा है...
templateId
डोरी
लोड हो रहा है...
templateArgs
वस्तु
लोड हो रहा है...
अनुरोध
1curl -X PATCH \2"https://api.quicknode.com/webhooks/rest/v1/webhooks/YOUR_WEBHOOK_ID/template/evmWalletFilter" \3-H "accept: application/json" \4-H "Content-Type: application/json" \5-H "x-api-key: YOUR_API_KEY" \6-d $'{7"name": "Updated Webhook Name",8"notification_email": "contact@example.com",9"destination_attributes": {10"url": "https://webhook.site/your-updated-url",11"security_token": "updated-security-token",12"compression": "none"13},14"templateArgs": {15"wallets": [16"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",17"0xdac17f958d2ee523a2206206994597c13d831ec7",18"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"19]20}21}'
1curl -X PATCH \2"https://api.quicknode.com/webhooks/rest/v1/webhooks/YOUR_WEBHOOK_ID/template/evmWalletFilter" \3-H "accept: application/json" \4-H "Content-Type: application/json" \5-H "x-api-key: YOUR_API_KEY" \6-d $'{7"name": "Updated Webhook Name",8"notification_email": "contact@example.com",9"destination_attributes": {10"url": "https://webhook.site/your-updated-url",11"security_token": "updated-security-token",12"compression": "none"13},14"templateArgs": {15"wallets": [16"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",17"0xdac17f958d2ee523a2206206994597c13d831ec7",18"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"19]20}21}'
1const axios = require('axios')23const webhookId = 'YOUR_WEBHOOK_ID'4const templateId = 'evmWalletFilter'5const url = `https://api.quicknode.com/webhooks/rest/v1/webhooks/${webhookId}/template/${templateId}`67const payload = {8name: 'Updated Webhook Name',9notification_email: 'contact@example.com',10destination_attributes: {11url: 'https://webhook.site/your-updated-url',12security_token: 'updated-security-token',13compression: 'none',14},15templateArgs: {16wallets: [17'0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',18'0xdac17f958d2ee523a2206206994597c13d831ec7',19'0x2260fac5e5542a773aa44fbcfedf7c193bc2c599',20],21},22}2324स्थिर हेडर = {25accept: 'application/json',26'Content-Type': 'application/json',27'x-api-key': 'YOUR_API_KEY', // Replace with your actual API key28}2930axios31.patch(url, payload, { headers })32.then(response => {33console.log(response.data)34})35.catch(error => {36console.error('Error:', error.response?.data || error.message)37})38
1const axios = require('axios')23const webhookId = 'YOUR_WEBHOOK_ID'4const templateId = 'evmWalletFilter'5const url = `https://api.quicknode.com/webhooks/rest/v1/webhooks/${webhookId}/template/${templateId}`67const payload = {8name: 'Updated Webhook Name',9notification_email: 'contact@example.com',10destination_attributes: {11url: 'https://webhook.site/your-updated-url',12security_token: 'updated-security-token',13compression: 'none',14},15templateArgs: {16wallets: [17'0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',18'0xdac17f958d2ee523a2206206994597c13d831ec7',19'0x2260fac5e5542a773aa44fbcfedf7c193bc2c599',20],21},22}2324स्थिर हेडर = {25accept: 'application/json',26'Content-Type': 'application/json',27'x-api-key': 'YOUR_API_KEY', // Replace with your actual API key28}2930axios31.patch(url, payload, { headers })32.then(response => {33console.log(response.data)34})35.catch(error => {36console.error('Error:', error.response?.data || error.message)37})38
1आयात अनुरोध23webhook_id = "YOUR_WEBHOOK_ID"4template_id = "evmWalletFilter"5url = f"https://api.quicknode.com/webhooks/rest/v1/webhooks/{webhook_id}/template/{template_id}"67पेलोड = {8"name": "Updated Webhook Name",9"notification_email": "contact@example.com",10"destination_attributes": {11"url": "https://webhook.site/your-updated-url",12"security_token": "updated-security-token",13"compression": "none"14} ,15"templateArgs": {16"wallets": [17"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",18"0xdac17f958d2ee523a2206206994597c13d831ec7",19"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"20]21}22}2324हेडर = {25"accept": "application/json",26"Content-Type": "application/json",27"x-api-key": "YOUR_API_KEY" # Replace with your actual API key28}2930response = requests.patch(url, headers=headers, json=payload)3132print(response.text)
1आयात अनुरोध23webhook_id = "YOUR_WEBHOOK_ID"4template_id = "evmWalletFilter"5url = f"https://api.quicknode.com/webhooks/rest/v1/webhooks/{webhook_id}/template/{template_id}"67पेलोड = {8"name": "Updated Webhook Name",9"notification_email": "contact@example.com",10"destination_attributes": {11"url": "https://webhook.site/your-updated-url",12"security_token": "updated-security-token",13"compression": "none"14} ,15"templateArgs": {16"wallets": [17"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",18"0xdac17f958d2ee523a2206206994597c13d831ec7",19"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"20]21}22}2324हेडर = {25"accept": "application/json",26"Content-Type": "application/json",27"x-api-key": "YOUR_API_KEY" # Replace with your actual API key28}2930response = requests.patch(url, headers=headers, json=payload)3132print(response.text)
1ज़रूरत होना "उरी"2ज़रूरत होना "नेट/http"3ज़रूरत होना "जेसन"45webhook_id = "YOUR_WEBHOOK_ID"6template_id = "evmWalletFilter"7url = URI("https://api.quicknode.com/webhooks/rest/v1/webhooks/#{webhook_id}/template/#{template_id}")89https = Net :: HTTP . new ( url . host , url . port )10https . use_ssl = सत्य1112request = Net::HTTP::Patch.new(url)13अनुरोध [ "स्वीकार करें" ] = "एप्लिकेशन/जेसन"14अनुरोध [ "सामग्री-प्रकार" ] = "एप्लिकेशन/जेसन"15request["x-api-key"] = "YOUR_API_KEY" # Replace with your actual API key1617request.body = {18"name" => "Updated Webhook Name",19"notification_email" => "contact@example.com",20"destination_attributes" => {21"url" => "https://webhook.site/your-updated-url",22"security_token" => "updated-security-token",23"compression" => "none"24} ,25"templateArgs" => {26"wallets" => [27"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",28"0xdac17f958d2ee523a2206206994597c13d831ec7",29"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"30]31}32}.to_json3334प्रतिक्रिया = https . अनुरोध ( अनुरोध )35puts response.body
1ज़रूरत होना "उरी"2ज़रूरत होना "नेट/http"3ज़रूरत होना "जेसन"45webhook_id = "YOUR_WEBHOOK_ID"6template_id = "evmWalletFilter"7url = URI("https://api.quicknode.com/webhooks/rest/v1/webhooks/#{webhook_id}/template/#{template_id}")89https = Net :: HTTP . new ( url . host , url . port )10https . use_ssl = सत्य1112request = Net::HTTP::Patch.new(url)13अनुरोध [ "स्वीकार करें" ] = "एप्लिकेशन/जेसन"14अनुरोध [ "सामग्री-प्रकार" ] = "एप्लिकेशन/जेसन"15request["x-api-key"] = "YOUR_API_KEY" # Replace with your actual API key1617request.body = {18"name" => "Updated Webhook Name",19"notification_email" => "contact@example.com",20"destination_attributes" => {21"url" => "https://webhook.site/your-updated-url",22"security_token" => "updated-security-token",23"compression" => "none"24} ,25"templateArgs" => {26"wallets" => [27"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",28"0xdac17f958d2ee523a2206206994597c13d831ec7",29"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"30]31}32}.to_json3334प्रतिक्रिया = https . अनुरोध ( अनुरोध )35puts response.body
1qn webhook update-template {webhook_id} --template {template_id} \2--wallet {wallet_address_1} \3--wallet {wallet_address_2} \4-o json
1qn webhook update-template {webhook_id} --template {template_id} \2--wallet {wallet_address_1} \3--wallet {wallet_address_2} \4-o json
1आयात { क्विकनोडएसडीके } से "@quicknode/sdk"23const qn = new QuicknodeSdk({ apiKey: "YOUR_API_KEY" })45const response = await qn.webhooks.updateWebhookTemplate("WEBHOOK_ID", { templateArgs: { templateId: "evmWalletFilter", wallet: "0x0000000000000000000000000000000000000000" } })6कंसोल.लॉग ( प्रतिक्रिया )7
1आयात { क्विकनोडएसडीके } से "@quicknode/sdk"23const qn = new QuicknodeSdk({ apiKey: "YOUR_API_KEY" })45const response = await qn.webhooks.updateWebhookTemplate("WEBHOOK_ID", { templateArgs: { templateId: "evmWalletFilter", wallet: "0x0000000000000000000000000000000000000000" } })6कंसोल.लॉग ( प्रतिक्रिया )7
1asyncio आयात करें2quicknode_sdk से QuicknodeSdk और SdkFullConfig आयात करें345अतुल्यकालिक डीईएफ़ मुख्य ( ) :6qn = QuicknodeSdk ( SdkFullConfig ( api_key = "YOUR_API_KEY" ) )7response = await qn.webhooks.update_webhook_template("WEBHOOK_ID", template_args={"template_id": "evmWalletFilter", "wallet": "0x0000000000000000000000000000000000000000"})8प्रिंट ( प्रतिक्रिया )91011asyncio.run ( main ( ) )12
1asyncio आयात करें2quicknode_sdk से QuicknodeSdk और SdkFullConfig आयात करें345अतुल्यकालिक डीईएफ़ मुख्य ( ) :6qn = QuicknodeSdk ( SdkFullConfig ( api_key = "YOUR_API_KEY" ) )7response = await qn.webhooks.update_webhook_template("WEBHOOK_ID", template_args={"template_id": "evmWalletFilter", "wallet": "0x0000000000000000000000000000000000000000"})8प्रिंट ( प्रतिक्रिया )91011asyncio.run ( main ( ) )12
1ज़रूरत होना "क्विकनोड_एसडीके"23qn = QuicknodeSdk :: SDK . from_config ( api_key : "YOUR_API_KEY" )45response = qn.webhooks.update_webhook_template("WEBHOOK_ID", template_args: { template_id: "evmWalletFilter", wallet: "0x0000000000000000000000000000000000000000" })6प्रतिक्रिया देता है7
1ज़रूरत होना "क्विकनोड_एसडीके"23qn = QuicknodeSdk :: SDK . from_config ( api_key : "YOUR_API_KEY" )45response = qn.webhooks.update_webhook_template("WEBHOOK_ID", template_args: { template_id: "evmWalletFilter", wallet: "0x0000000000000000000000000000000000000000" })6प्रतिक्रिया देता है7
1use quicknode_sdk::{QuicknodeSdk, SdkFullConfig};23#[टोकियो::मुख्य]4async fn main() -> Result<(), Box<dyn std::error::Error>> {5मान लीजिए qn = QuicknodeSdk :: new ( & SdkFullConfig :: builder ( ) . api_key ( "YOUR_API_KEY" ) . build ( ) ) ? ;6let response = qn.webhooks.update_webhook_template("WEBHOOK_ID", &quicknode_sdk::webhooks::UpdateWebhookTemplateParams { template_args: quicknode_sdk::webhooks::TemplateArgs::evm_wallet_filter(&quicknode_sdk::webhooks::EvmWalletFilterTemplate { wallets: vec!["0x0000000000000000000000000000000000000000".to_string()] })?, ..Default::default() }).await?;78println!("{:?}", response);9ठीक है ( ( ) )10}11
1use quicknode_sdk::{QuicknodeSdk, SdkFullConfig};23#[टोकियो::मुख्य]4async fn main() -> Result<(), Box<dyn std::error::Error>> {5मान लीजिए qn = QuicknodeSdk :: new ( & SdkFullConfig :: builder ( ) . api_key ( "YOUR_API_KEY" ) . build ( ) ) ? ;6let response = qn.webhooks.update_webhook_template("WEBHOOK_ID", &quicknode_sdk::webhooks::UpdateWebhookTemplateParams { template_args: quicknode_sdk::webhooks::TemplateArgs::evm_wallet_filter(&quicknode_sdk::webhooks::EvmWalletFilterTemplate { wallets: vec!["0x0000000000000000000000000000000000000000".to_string()] })?, ..Default::default() }).await?;78println!("{:?}", response);9ठीक है ( ( ) )10}11
अब तक कोई खाता नहीं है?
कुछ ही सेकंड में अपना क्विकनोड एंडपॉइंट बनाएं और निर्माण शुरू करें।
मुफ़्त में शुरुआत करें