@mod-haus/cosmo-contracts-client
TypeScript icon, indicating that this package has built-in type declarations

0.2.10 • Public • Published

@mod-haus/cosmo-contract-clients

NPM Version

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

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

Usage Example

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');
}

Readme

Keywords

none

Package Sidebar

Install

npm i @mod-haus/cosmo-contracts-client

Weekly Downloads

17

Version

0.2.10

License

MIT

Unpacked Size

714 kB

Total Files

78

Last publish

Collaborators

  • mod-haus