open-index/open-npm huggingface dataset:
npm package: @mod-haus/cosmo-contracts-client
Description: A TypeScript Client to interact with Cosmo Contracts
Author: Hyojun Kim
Latest version: 0.2.10

## @mod-haus/cosmo-contract-clients

[![NPM Version](https://shields.io/npm/v/@mod-haus/cosmo-contracts-client)](https://npmjs.com/package/@mod-haus/cosmo-contracts-client)

An TypeScript client library to interact with Cosmo contracts. Supports both Web and Node.JS.

```
 $ yarn add @mod-haus/cosmo-contract-clients
```

### Usage Example

```typescript
import { resolveCosmoContract, Objekt__factory } from '@mod-haus/cosmo-contracts-client';
import { Wallet } from 'ethers';

async function sendNft(yourWallet: Wallet) {
  const objekt = resolveCosmoContract(Objekt__factory, yourWallet, 'polygon-mainnet');

  // now `objekt` is ethers.Contract with ERC721 interface and your wallet attached.
  await objekt.transfer('101', 'vitalik.eth');
}
```