0.0.7 • Published 24 days ago

@interchainjs/cosmos v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
24 days ago

@interchainjs/cosmos

Transaction codec and client to communicate with any cosmos blockchain.

Usage

npm install @interchainjs/cosmos

Taking direct signing mode as example.

// import * from "@interchainjs/cosmos"; // Error: use sub-imports, to ensure small app size
import { DirectSigner } from "@interchainjs/cosmos/direct";

const signer = new DirectSigner(<AUTH>, <ENCODER>[], <RPC_ENDPOINT>); // **ONLY** rpc endpoint is supported for now
const result = await signer.signAndBroadcast(<MESSAGE>[]);
console.log(result.hash); // the hash of TxRaw

Implementations

  • direct signer from @interchainjs/cosmos/direct
  • amino signer from @interchainjs/cosmos/amino

License

MIT License (MIT) & Apache License

Copyright (c) 2024 Cosmology (https://cosmology.zone/)

0.0.1-beta.1

24 days ago

0.0.1-beta.0

24 days ago

0.0.0-test4

2 months ago

0.0.0-test3

2 months ago

0.0.0-test

2 months ago

0.0.7

2 months ago

0.0.0-test2

2 months ago

0.0.6

2 months ago

0.0.5

2 months ago