import { Avalanche } from "@avalanche-sdk/chainkit";
const avalanche = new Avalanche();
async function run() {
const result = await avalanche.webhooks.generateOrRotateSharedSecret();
console.log(result);
}
run();{
"secret": "<string>"
}Generates a new shared secret or rotate an existing one.
import { Avalanche } from "@avalanche-sdk/chainkit";
const avalanche = new Avalanche();
async function run() {
const result = await avalanche.webhooks.generateOrRotateSharedSecret();
console.log(result);
}
run();{
"secret": "<string>"
}Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.
Successful response
Was this page helpful?