Call backend API method directly (types unsafe)
Use it if backend API update (add new methods, change request or response fileds), but library is not
Backend API method name
Backend API options object
Promise, what resolved to backend API response result
field value
Create invoice
Use toInvoice backend API result convert function and prepare backend API parameters prepareCreateInvoiceOptions function
New invoice options
Promise, what resolved to created invoice information object
Get API app balance value for passed currency
Call Client.getBalances method to fetch balances information
Currency code
If true, return raw balances in nanos, else return converted to coins balances
If true, return fresh data from backend API, not from cache
Promise, what resolved to API app balance value for passed currency
Get API app balances infomation
Use toBalances backend API result convert function
Call Store.getCurrencies method to fetch exchange rates information
If true, return raw balances in nanos, else return converted to coins balances
If true, return fresh data from backend API, not from cache
Promise, what resolved to API app balances infomation object
Get API supported currencies infomation
Use toCurrencies backend API result convert function
If true, return fresh data from backend API, not from cache
Promise, what resolved to API supported currencies infomation object
Get currency with passed code infomation
Call Store.getCurrencies method to fetch currencies information
Currency code
If true, return fresh data from backend API, not from cache
Promise, what resolved to currency with passed code infomation object or null, if currency with passed code not exists
Get one exchange rate infomation to passed currencies pair
Call Store.getExchangeRates method to fetch exchange rates information, Store.getCurrencies method to fetch currencies information and use getExchageRate function to get signle exchange rate
Source currency code
Target currency code
If true, return fresh data from backend API, not from cache
Promise, what resolved to exchange rate or zero, if currencies pair not exists
Get API supported currencies exchange rate infomation
Use toExchangeRates backend API result convert function
If true, return fresh data from backend API, not from cache
Promise, what resolved to API supported currencies exchange rate infomation object
Get invoices
Use toInvoices backend API result convert function and prepare backend API parameters prepareGetInvoicesOptions function
Filters options
Promise, what resolved to invoices information object
Get invoices paginated
Fetch invoices with page
options parameter, except count
and offset
See Client.getPageSize and Client.setPageSize
Use toInvoicesPaginated backend API result convert function and prepare backend API parameters prepareGetInvoicesPaginateOptions function
Filters options
Promise, what resolved to invoices information object
Return count invoices per page for Client.getInvoicesPaginate method
Set count invoices per page for Client.getInvoicesPaginate method
Create class instance
Crypto Bot API key, looks like '1234:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
API endpoint url or 'mainnet' or 'testnet' for hardcoded in library endpoint urls
Transport class instance
Page size for Client.getInvoicesPaginate method
Main class for work with API for browsers
Library for browsers default export this class