@wharfkit/light-api
v4.0.2
Published
API Client to access Light API endpoints
Downloads
619
Readme
@wharfkit/light-api
API client for the Light API service.
Installing
yarn add @wharfkit/light-apiUsage
import {APIClient, FetchProvider} from '@wharfkit/antelope'
import {LightAPIClient} from '@wharfkit/light-api'
const client = new APIClient({
provider: new FetchProvider('https://eos.light-api.net'),
})
const lightapi = new LightAPIClient(client)
const account = await lightapi.get_account('eos', 'teamgreymass')
const balances = await lightapi.get_balances('eos', 'teamgreymass')
const status = await lightapi.get_status()Running Tests
make testRunning tests against a live Light API server:
MOCK='overwrite' make test