post https://notify.unmarshal.com/v1/webhook/whale-alert/subscribe
This endpoint allows you to subscribe for whale alerts using webhook.
Chains Supported:
Mainnet: Ethereum, BSC, Matic, Celo, Avalanche, Xinfin, Klaytn, Kadena, Velas, Cronos, Fuse, Solana, Fantom, Arbitrum, Aurora.
Testnet: bsc-testnet, klaytn-testnet and polygon-testnet(mumbai-testnet)
In order to use notifications for testnets use
https://testnet-notify.unmarshal.com/v1/webhook/whale-alert/subscribe
along with all required body.
unmarshal.Notifications
.Webhook.SubscribeWhaleAlert({
webhookUrl: "http://localhost:8080",
tokenAddresses: ["demo.eth"],
type: "USDValueBasedAlert | VolumeBasedAlert",
threshold: 1000,
}).then(({data}) => console.log(data))