1.0.4 • Published 1 year ago

@cosmonauts/cosmos v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Cosmos

Transaction codec and client to communicate with any cosmos blockchain.

Usage

npm install @cosmonauts/cosmos

Taking direct signing mode as example.

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

const signer = new DirectSigner(<auth>, <encoders>, <rpc endpoint>);
const result = await signer.signAndBroadcast(<messages>);
console.log(result.hash); // the hash of TxRaw

Implementations

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

License

MIT License (MIT) & Apache License

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

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago