1.0.0-rc.b66148b • Published 16 days ago
@alphabill/alphabill-js-sdk v1.0.0-rc.b66148b
Alphabill JavaScript SDK
Development
Installation
Run following command to install all dependencies npm install
Testing
Project uses ts-jest for testing.
Usage
Examples
To run examples, npm run build
must be run to generate lib
folder with
ES2020 code.
Creation of client
To create a client use following code snippet
// 1. Import modules.
import { createPublicClient } from 'alphabill-js-sdk/lib/StateApiClient';
import { http } from 'alphabill-js-sdk/lib/json-rpc/StateApiHttpService';
// 2. Set up your client with transport.
const client = createPublicClient({
transport: http('http://localhost:8545/rpc', new MoneyPartitionUnitFactory(), new CborCodecNode()),
});
// 3. Call the client.
const response = await client.getRoundNumber();
console.log(response);
1.0.0-rc.3d325d1
16 days ago
1.0.0-rc.c71ecfe
2 months ago
1.0.0-rc.745b07b
2 months ago
1.0.0-rc.5aa6a98
2 months ago
1.0.0-rc.93656ab
2 months ago
1.0.0-rc.b44c516
2 months ago
1.0.0-rc.6efdbd6
2 months ago
1.0.0-rc.ad5e9ca
2 months ago
1.0.0-rc.ff9847f
2 months ago
1.0.0-rc.1edcbb4
2 months ago
1.0.0-rc.d7cdb23
2 months ago
1.0.0-rc.8e21c1e
2 months ago
1.0.0-rc.37c8ebf
2 months ago
1.0.0-rc.93b9a9f
2 months ago
1.0.0-rc.597fb3c
2 months ago
1.0.0-rc.b8bd890
2 months ago
1.0.0-rc.60b407e
2 months ago
1.0.0-rc.393173b
2 months ago
1.0.0-rc.3fe9594
2 months ago
1.0.0-rc.b66148b
2 months ago