@luxwallet/lux-api
v1.8.17
Published
## Install
Downloads
6
Readme
lux-api
Install
npm install @luxfi/lux-api @luxfi/common
Usage
import { OpenApiService } from '@luxfi/lux-api';
import { WebSignApiPlugin } from '@luxfi/lux-api/dist/plugins/web-sign.ts';
const service = new OpenApiService({
store: {
host: 'https://api.rabby.io',
},
// you can also customize plugin as you requirement
plugin: WebSignApiPlugin,
});
// init service
await service.init();
// call api
await service.getTotalBalance('0x1234');