@mod-haus/cosmo-contracts-client
v0.2.10
Published
A TypeScript Client to interact with Cosmo Contracts
Downloads
56
Readme
@mod-haus/cosmo-contract-clients
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');
}