JavaScript SDK for Terra blockchain apps.
Features
- Written in TypeScript and includes type definitions for core data objects
- Includes Cosmos SDK compatible
Int
and Dec
numeric types - Includes a standard mnemonic key / wallet features
- Supports both JSON-format Terra objects and native type formats
- Small and consistent API for converting to/from blockchain data
- Works in both Node.js, the browser, and mobile (React Native)
Installation
Install from NPM:
yarn add @terra-money/terra.js
Usage
Node.js
Terra.js is written in TypeScript and compiled to JavaScript alongside type definitions, so it can be used with both TypeScript and Javascript.
Browser
If you are are creating a React application, you can simply install Terra.js to your.
React Native
Using Types