This endpoint allows you to update firebase server credentials
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/credentials
along with all required body.
unmarshal.Notifications
.Firebase.UpdateServerCredentials(serverCredentials)
.then(({data}) => console.log(data))
{- "type": "service_account",
- "project_id": "xscan-stg",
- "private_key_id": "REPLACE_WITH_PRIVIATE_KEY_ID",
- "private_key": "REPLACE_WITH_PRIVIATE_KEY",
- "client_email": "firebase-adminsdk-4sy3l@xscan-stg.iam.gserviceaccount.com",
- "client_id": "112758514319167661112",
}
This endpoint allows you to refresh firebase token
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/refresh-token
along with all required body.
unmarshal.Notifications
.Firebase.RefreshFCMToken({
fcmToken: "FCM_TOKEN",
deviceId: "DEVICE_ID"
})
.then(({data}) => console.log(data))
{- "fcm_token": "REPLACE_WITH_YOUR_FCM_TOKEN",
- "device_id": "REPLACE_WITH_YOUR_DEVICE_ID"
}