0.1.3 • Published 11 months ago

@goat-sdk/plugin-erc1155 v0.1.3

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

ERC1155 GOAT Plugin

This plugin provides support for interacting with ERC1155 tokens.

Installation

npm install @goat-sdk/plugin-erc1155

Usage

import { erc1155 } from "@goat-sdk/plugin-erc1155";

Adding custom tokens

import { erc1155 } from "@goat-sdk/plugin-erc1155";


const plugin = erc1155({
    tokens: [
        {
            decimals: 18,
            symbol: "MYGOAT",
            name: "MYGOAT",
            id: 1,
            chains: {
                "919": {
                    contractAddress: "0x6f4a5412DB14EC9b109B3db4A9ddD29CE3Ec0754",
                },
            },
        },
    ],
});

Tools

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

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago