This endpoint allows you to subscribe through webhook to get notified for all transactions made by a wallet.
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/subscribe
along with all required body.
unmarshal.Notifications
.Webhook.Subscribe({
url: "http://localhost:8080",
walletIds: ["demo.eth"]
}).then(({data}) => console.log(data))
OK
{- "wallet_ids": [
- "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"
]
}
{- "Success": [
- {
- "created_at": "2021-11-30T12:07:30.139473623Z",
- "updated_at": "2021-11-30T12:07:30.139473623Z",
- "address": "0xad1840d72191a1172786214cba4da6d4a3bbfa1a",
- "type": "TransactionalNotification",
- "channel": "Webhook",
- "client": "xyz",
- "filter_type": "USDTValueBasedFilter",
- "filter_meta_data": {
- "operator": "GreaterThanOrEqualTo",
- "value": "1"
}
}
], - "Failed": [
- {
- "created_at": "2021-11-30T12:07:30.147136553Z",
- "updated_at": "2021-11-30T12:07:30.147136553Z",
- "address": "0x24f7c33ae5f77e2a9eceed7ea858b4ca2fa1b7ec",
- "type": "TransactionalNotification",
- "channel": "Webhook",
- "client": "xyz",
- "filter_type": "USDTValueBasedFilter",
- "filter_meta_data": {
- "operator": "GreaterThanOrEqualTo",
- "value": "1"
}, - "ErrorCode": "DUPLICATE_SUBSCRIPTION"
}
]
}
This endpoint allows you to subscribe through firebase to get notified for all transactions made by a wallet.
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/subscribe
along with all required body.
unmarshal.Notifications
.Firebase.Subscribe({
deviceId: "deviceId",
fcmToken: "deviceFcmToken",
walletIds: ["demo.eth"]
}).then(({data}) => console.log(data))
{- "fcm_token": "FCM_TOKEN",
- "device_id": "DEVICE_ID",
- "wallet_ids": [
- "demo.eth"
]
}
{- "Success": [
- {
- "created_at": "string",
- "updated_at": "string",
- "address": "string",
- "type": "string",
- "channel": "string",
- "device_id": "string",
- "fcm_token": "string",
- "client": "string",
- "filter_type": "string",
- "filter_meta_data": null,
- "status": "string"
}
], - "Failed": [
- {
- "created_at": "string",
- "updated_at": "string",
- "address": "string",
- "type": "string",
- "channel": "string",
- "device_id": "string",
- "fcm_token": "string",
- "client": "string",
- "filter_type": "string",
- "filter_meta_data": null,
- "status": "string",
- "ErrorCode": "string"
}
]
}