This endpoint allows you to subscribe for whale alerts using firebase.
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/firebase/whale-alert/subscribe
along with all required body.
unmarshal.Notifications
.Firebase.SubscribeWhaleAlert({
deviceId: "deviceId",
fcmToken: "deviceFcmToken",
type: "USDValueBasedAlert | VolumeBasedAlert",
threshold: 1000,
tokenAddresses: ["demo.eth"],
}).then(({data}) => console.log(data))
{- "fcm_token": "REPLACE_WITH_YOUR_FCM_TOKEN",
- "device_id": "REPLACE_WITH_YOUR_DEVICE_ID",
- "token_addresses": [
- "0xdac17f958d2ee523a2206206994597c13d831ec7",
- "0x55d398326f99059ff775485246999027b3197955"
], - "type": "USDValueBasedAlert",
- "Threshold": 10000
}
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))
{- "token_addresses": [
- "0xdac17f958d2ee523a2206206994597c13d831ec7",
- "0x55d398326f99059ff775485246999027b3197955"
], - "type": "USDValueBasedAlert",
- "Threshold": 10000
}