const { readFileSync } = require('fs');
const { Connection, constants, ApiClient } = require('flax-api');
(async () => {
const conn = new Connection('localhost:55400', {
cert: readFileSync('private_daemon.crt'),
key: readFileSync('private_daemon.key'),
});
conn.onMessage((message) => {
console.log(message);
});
conn.addService(constants.SERVICE.walletUi);
const fullNode = new ApiClient.FullNode({ connection: conn, origin: 'my-cool-service' });
await fullNode.init();
const blockchainState = await fullNode.getBlockchainState();
})();
-
Notifications
You must be signed in to change notification settings - Fork 1
License
thauch/flax-api
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published