1 import Connection from './connection'
2 import accountsApi from './api/accounts'
3 import assetApi from './api/assets'
4 import keysApi from './api/keys'
5 import transactionApi from './api/transactions'
6 import balancesApi from './api/balances'
7 import unspentOutputsAPI from './api/unspentOutputs'
8 import accessTokensApi from './api/accessTokens'
9 import configAPI from './api/config'
10 import blockAPI from './api/block'
13 constructor(baseUrl, token) {
14 this.connection = new Connection(baseUrl, token)
16 this.accounts = new accountsApi(this.connection)
17 this.assets = new assetApi(this.connection)
18 this.keys = new keysApi(this.connection)
19 this.transactions = new transactionApi(this.connection)
20 this.balances = new balancesApi(this.connection)
21 this.unspentOutputs = new unspentOutputsAPI(this.connection)
22 this.accessTokens = new accessTokensApi(this.connection)
23 this.status = new configAPI(this.connection)
24 this.block = new blockAPI(this.connection)
28 module.exports = Client