Skip to content

Commit

Permalink
demo
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Feb 3, 2025
1 parent 302bad2 commit a0840cf
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,31 @@
# libra-ts-sdk

Tools for interacting with Open Libra REST API
## Quickstart

In a common JS file you can import the sdk to manage wallets
and query the chain. See the minimal example:
```
const libraSDK = require('../libra-ts-sdk/dist/');
const main = async () => {
const mnem = libraSDK.generateMnemonic();
console.log("Generate a mnemonic:\n");
console.log(mnem, "\n");
console.log("Calling Libra Explorer API");
const client = new libraSDK.LibraClient();
await client.connect();
client.assertReady();
const res = await client.getIndex();
console.log(res)
}
main()
```

# Installation

Expand Down

0 comments on commit a0840cf

Please sign in to comment.