Wallet
Get to know how many Satoshis are how much balance in any fiat currency

Balance

Users can check the balance from any of the wallet by using this endpoint. The following roles can have access of this.
  • admin
  • manager
  • viewer
  • operator
users can authenticate by using two method
  1. 1.
    Bareer authToken
1
curl --location --request GET 'https://us-central1-changedev-3b21a.cloudfunctions.net/api/v1/balance' \
2
--header 'walletId: walletId' \
3
--header 'Authorization: Bearer authToken'
Copied!
2. API Key and User UID
1
curl --location --request GET 'https://us-central1-changedev-3b21a.cloudfunctions.net/api/v1/balance' \
2
--header 'uid: uid' \
3
--header 'apikey: apiKey' \
4
--header 'walletId: walletId'
Copied!

Create wallet

Users having role of "manager" can create new wallets
  1. 1.
    Bareer authToken
1
curl --location --request GET 'https://us-central1-changedev-3b21a.cloudfunctions.net/api/v1/createWallet' \
2
--header 'wallettitle: username' \
3
--header 'Authorization: Bearer authToken'
Copied!
  1. 1.
    API Key and User UID
1
curl --location --request GET 'https://us-central1-changedev-3b21a.cloudfunctions.net/api/v1/createWallet' \
2
--header 'uid: uid' \
3
--header 'apikey: apiKey' \
4
--header 'wallettitle: username'
Copied!

Mnemonic

The mnemonic phrase secures your wallet keys. Each mnemonic acts as seed of a HDPrivatekey that itself contains hundrets of PrivateKeys. Only manager role can have access.
Using authToken
Using API Key and UID
1
curl --location --request GET 'https://us-central1-changedev-3b21a.cloudfunctions.net/api/v1/mnemonic' \
2
--header 'walletid: walletId' \
3
--header 'Authorization: Bearer id_Token'
Copied!
1
curl --location --request GET 'https://us-central1-changedev-3b21a.cloudfunctions.net/api/v1/mnemonic' \
2
--header 'uid: uid' \
3
--header 'apikey: apikey' \
4
--header 'walletid: walletId'
Copied!

Wallets

The endpoint provides the user with a list of all active wallets on their account. Depending on your service requirements, you might have one or multiple wallets. Only users having "manager" can access this endpoint.
authToken
API Key and UID
1
curl --location --request GET 'https://us-central1-changedev-3b21a.cloudfunctions.net/api/v1/wallets' \
2
--header 'Authorization: Bearer authToken'
Copied!
1
curl --location --request GET 'https://us-central1-changedev-3b21a.cloudfunctions.net/api/v1/wallets' \
2
--header 'uid: uid' \
3
--header 'apikey: apiKey'
Copied!
Copy link
Contents