@xchainjs/xchain-cosmos
Version:
Custom Cosmos client and utilities used by XChainJS clients
45 lines (29 loc) • 1.59 kB
Markdown
# `@xchainjs/xchain-client`
Cosmos Module for XChainJS Clients
## Installation
```
yarn add @xchainjs/xchain-cosmos
```
Following peer dependencies have to be installed into your project. These are not included in `@xchainjs/xchain-cosmos`.
```
yarn add @xchainjs/xchain-client @xchainjs/xchain-crypto @xchainjs/xchain-util axios
```
## Cosmos Client Testing
```
yarn install
yarn test
```
## Documentation
### [`xchain cosmos`](http://docs.xchainjs.org/xchain-client/xchain-cosmos/)
[`How xchain-cosmos works`](http://docs.xchainjs.org/xchain-client/xchain-cosmos/how-it-works.html)\
[`How to use xchain-cosmos`](http://docs.xchainjs.org/xchain-client/xchain-cosmos/how-to-use.html)
## Service Providers
This package uses the following service providers:
| Function | Service | Notes |
| --------------------------- | ---------- | ------------------------------------------------------------------- |
| Balances | Cosmos RPC | https://cosmos.network/rpc/v0.37.9 (`GET /bank/balances/{address}`) |
| Transaction history | Cosmos RPC | https://cosmos.network/rpc/v0.37.9 (`GET /txs`) |
| Transaction details by hash | Cosmos RPC | https://cosmos.network/rpc/v0.37.9 (`GET /txs/{hash}`) |
| Transaction broadcast | Cosmos RPC | https://cosmos.network/rpc/v0.37.9 (`POST /txs`) |
| Explorer | BigDipper | https://cosmos.bigdipper.live |
Rate limits: No