terra-clients
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

Terra Clients

Autogenerated TypeScript clients for common CosmWasm smart contracts on Terra.

Usage

  1. Install terra-clients
npm install terra-clients
  1. Import your desired client
import { Cw721MetadataOnchainClient } from 'terra-clients'
  1. Initialize and use client
const cw721 = new Cw721MetadataOnchainClient(
  lcd, // LCDClient
  wallet, // Wallet or ConnectedWallet
  'terra1qxhz7qr8389gtpjx0tqr2t63mk55072mzrxnpgupv8uj3mk2qclq0cpjy5', // Contract address
);

await cw721.transferNft({
  recipient: 'address',
  tokenId: '0',
});

Documentation

terra-clients exports two types of clients for each contract, a query client and a write client. The query client includes all of the exposed query methods and is read-only, the write client extends the query client to add exposed execute methods.

You can find typedoc generated documentation here.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i terra-clients

Weekly Downloads

3

Version

1.2.0

License

MIT

Unpacked Size

228 kB

Total Files

37

Last publish

Collaborators

  • octalmage