# terra-clients

> TypeScript clients for common CosmWasm contracts.

Latest version **1.2.0** (published 2022-07-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install terra-clients
pnpm add terra-clients
yarn add terra-clients
bun add terra-clients
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2022-07-07 |
| First published | 2022-07-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 222.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jason Stallings |
| Maintainers | octalmage |

## Links

- npm: https://www.npmjs.com/package/terra-clients
- npm.io page: https://npm.io/package/terra-clients

## Dependencies (2)

- [@terra-money/terra.js](https://npm.io/package/@terra-money/terra.js.md) ^3.1.3
- [@terra-money/wallet-provider](https://npm.io/package/@terra-money/wallet-provider.md) ^3.9.4

## Recent versions

- 1.2.0 (latest) — 2022-07-07
- 1.1.0 — 2022-07-07
- 1.0.0 — 2022-07-07

## README

# Terra Clients

> Autogenerated TypeScript clients for common CosmWasm smart contracts on Terra.

## Usage

1. Install terra-clients

```
npm install terra-clients
```

2. Import your desired client

```ts
import { Cw721MetadataOnchainClient } from 'terra-clients'
```

3. Initialize and use client

```ts
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](docs/README.md).

## License

MIT

---
_Source: https://npm.io/package/terra-clients · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
