Skip to content

Repository files navigation

wharfkit-light-api

API client for the Light API service.

Installing

yarn add wharfkit-light-api

Usage

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 test

Running tests against a live Light API server:

MOCK='overwrite' make test

About

WharfKit compatible API client for the Light API service.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages