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.uniblock.dev/uni/v1/webhook/solana-address-activity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));