Links

Fetch Balances

Javascript

Install

npm i @proton/api
Instantiation
import { ApiClass } from '@proton/api'
const proton = new ApiClass('proton')

Fetch balances

const tokens = await proton.getAccountTokens('dex');
An example of an expected response is shown below.
[{
"currency": "XUSDC",
"amount": 373.477613,
"contract": "xtokens",
"decimals": "6"
}]