@goat-sdk/plugin-erc721
TypeScript icon, indicating that this package has built-in type declarations

0.1.22 • Public • Published

ERC721 GOAT Plugin

ERC721 plugin for Goat. Allows you to create tools for transferring and getting the balance of ERC721 tokens.

Installation

npm install @goat-sdk/plugin-erc721

Usage

import { erc721, BAYC } from "@goat-sdk/plugin-erc721";

const plugin = erc721({
    tokens: [BAYC],
});

Adding custom tokens

import { erc721, BAYC } from "@goat-sdk/plugin-erc721";

const plugin = erc721({
  tokens: [
    BAYC,
    {
      symbol: "PUNK",
      name: "CryptoPunks",
      chains: {
        "1": {
          contractAddress: "0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB",
        },
      },
    },
  ],
});

Tools

  1. Get token info by symbol
  2. Get balance
  3. Transfer
  4. Approve
  5. Revoke approval
  6. Total supply


Readme

Keywords

Package Sidebar

Install

npm i @goat-sdk/plugin-erc721

Homepage

ohmygoat.dev

Weekly Downloads

3

Version

0.1.22

License

MIT

Unpacked Size

32.4 kB

Total Files

44

Last publish

Collaborators

  • aigustin
  • mpaella