mirror of
https://github.com/luxfi/lux-api.git
synced 2026-10-30 16:20:47 +00:00
main
A version written into a manifest is written into every manifest that wants it, which is how eslint came to exist in a hundred and four forms across this estate and how a package came to resolve twice at run time. The catalog moves the number out of the manifest: a manifest names the package, the workspace names the version. Four are held below their latest because the newer release cannot be used, and the reason is recorded rather than the version alone: @noble/hashes 2 renamed every subpath the web3 stack imports, @splinetool/runtime 2 depends on a package that was never published, @dynamic-labs 5.4.1 the same, and react-resizable-panels 3 points its types condition at the bundle.
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');
Languages
SVG
100%