JS/TS SDK

An SDK written in Javascript/Typescript for KiiChain

Note: This project is still under development so future changes will be made.

Kiijs-SDK

A JS/TS library for interacting with KiiChain and other Cosmos-based blockchain networks. This repo will not be 100% finalized until mainnet launch, therefore, changes could be made.

Getting Started

kiijs is a library written in TypeScript used for interacting with KiiChain. The library provides methods to conveniently send transactions, query data, and manage wallets. The library is implemented based on gRPC-web protocol which sends HTTP/1.5 or HTTP/2 requests to a gRPC proxy server, before serving them as HTTP/2 to gRPC server.

The library supports both Node.js and browsers.

Installation

Install with npm

npm install kiijs

Install with yarn

yarn add kiijs

Getting Started

Below is a simple example for querying an account's balances:

import {KiiStargateQueryClient} from "../kiijs/client";

async function main() {

  // connect to Kiichain test network using rpc
  const rpcEndpoint = "https://a.testnet.kiivalidator.com:26658/";
  const client = await KiiStargateQueryClient.connect(
    rpcEndpoint
  );
  
  // show all coin balances
  const address = "kii1s0jekzmfy3ejmf75lh0xfc2zl3958lfk8gqtws";
  const balance = await client.getAllBalances(address);
  console.log('balance', balance);
}

Documentation

The full documentation and repo can be found here.

Examples

Under the examples directory, you can find examples of basic ledger interactions using kiijs, such as transferring tokens, staking, and deploying.

Contributing

All contributions are very welcome! Remember, contribution is not only PRs and code, but any help with docs or helping other developers solve their issues are very appreciated!

Read below to learn how you can take part in the KiiPy project.

Code of Conduct

Please be sure to read and follow our Code of Conduct. By participating, you are expected to uphold this code.

Contribution Guidelines

Read our contribution guidelines to learn about our issue and pull request submission processes, coding rules, and more.

Issues, Questions and Discussions

We use GitHub Issues for tracking requests and bugs, for general questions and discussion.

License

The KiiPy project is licensed under Apache License 2.0.

Last updated