0.1.22 • Published 1 year ago

@goat-sdk/plugin-erc721 v0.1.22

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.1.21

1 year ago

0.1.20

1 year ago

0.1.19

1 year ago

0.1.18

1 year ago

0.1.17

1 year ago

0.1.16

1 year ago

0.1.15

1 year ago

0.1.14

1 year ago

0.1.13

1 year ago

0.1.12

1 year ago

0.1.11

1 year ago