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

0.1.11 • Public • Published

Goat ERC20 Plugin 🐐 - TypeScript

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

Installation

npm install @goat-sdk/plugin-erc20

Usage

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


const plugin = erc20({
    tokens: [USDC, PEPE],
});

Adding custom tokens

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


const plugin = erc20({
    tokens: [
        USDC,
        {
            decimals: 18,
            symbol: "SHIB",
            name: "Shiba Inu",
            chains: {
                "1": {
                    contractAddress: "0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE",
                },
            },
        },
    ],
});

Goat

Go out and eat some grass.

Docs | Examples | Discord

Goat 🐐

Goat 🐐 (Great Onchain Agent Toolkit) is an open-source library enabling AI agents to interact with blockchain protocols and smart contracts via their own wallets.

Readme

Keywords

Package Sidebar

Install

npm i goat-plugin-erc721

Homepage

ohmygoat.dev

Weekly Downloads

0

Version

0.1.11

License

MIT

Unpacked Size

70.2 kB

Total Files

58

Last publish

Collaborators

  • aeither