0.1.18 • Published 6 years ago

cosmos-client-ts v0.1.18

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

cosmos-client-ts

JavaScript client for the Cosmos SDK API. Made with TypeScript.

Usage

npm install --save cosmos-client-ts
const sdk = new CosmosSdk('http://localsdk:26657');
const privKeyBuffer = await HdWallet.generatePrivKeyByBip39('mnemonic', HdWallet.getBip32PathByBip44(0));
const privKey = new PrivKeySecp256k1(privKeyBuffer);
const stdTx = await Bank.postTransfer(sdk, ...);
const signedStdTx = sdk.signStdTx(privKey, stdTx, ...);
await Auth.postTransaction(sdk, new BroadcastReq(signedStdTx));

const accountInfo = await Auth.getAccount(sdk, privateKey.bech32Address);
0.1.18

6 years ago

0.1.17

6 years ago

0.1.16

6 years ago

0.1.14

6 years ago

0.1.15

6 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.2

6 years ago

0.1.0

6 years ago