0.1.22 • Published 8 months ago

@goat-sdk/plugin-erc721 v0.1.22

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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
0.1.22

8 months ago

0.1.21

8 months ago

0.1.20

8 months ago

0.1.19

9 months ago

0.1.18

9 months ago

0.1.17

9 months ago

0.1.16

10 months ago

0.1.15

10 months ago

0.1.14

10 months ago

0.1.13

10 months ago

0.1.12

10 months ago

0.1.11

10 months ago