Balance
How many currencies and NFTs do you own?
After the address, the second most essential feature of wallets are the display of the current wallet balance. Next to the standard inputs, you can define a fiat currency display of the balance.
1
var parameters = {
2
serviceId: 'optional',
3
walletID: 'optional',
4
currency: 'optional',
5
}
6
7
const response = await relysia.balance(parameters);
Copied!
The balance endpoint returns the BSV balance and fiat equivalent and STAS token balances of your wallet.
get
https://api.relysia.com
/v1/balance
Get your wallet balance.

STAS Token Balance

While the balance function is retrieving all balances, we added the additional helper function STAS Token Balance to get all token details of your wallet.
1
var parameters = {
2
walletId: 'required',
3
}
4
5
const response = await relysia.stasTokenBalance(parameters);
Copied!
Error while parsing the OpenAPI file.
Could not find the operation GET "/v1/stasTokenBalance" in the OpenAPI file.