Skip to main content

ERC20 Plugin for GOAT SDK

A plugin for the GOAT SDK that provides ERC20 token interaction functionality.

Installation

# Install the plugin
poetry add goat-sdk-plugin-erc20

# Install required wallet dependency
poetry add goat-sdk-wallet-evm

Usage

from goat_plugins.erc20 import erc20, ERC20PluginOptions

# Initialize the plugin
options = ERC20PluginOptions(
    rpc_url="${RPC_PROVIDER_URL}"  # Your EVM RPC provider URL
)
plugin = erc20(options)

# Get token balance
balance = await plugin.balance_of(
    token_address="0x6B175474E89094C44Da98b954EedeAC495271d0F",  # DAI token
    wallet_address="0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
)

# Check allowance
allowance = await plugin.allowance(
    token_address="0x6B175474E89094C44Da98b954EedeAC495271d0F",  # DAI token
    owner="0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
    spender="0x1111111254EEB25477B68fb85Ed929f73A960582"  # 1inch router
)

Features

  • Token balance checking
  • Allowance management
  • Token transfers
  • Token approvals
  • Supported chains:
    • Ethereum
    • Polygon
    • BSC
    • Arbitrum
    • Optimism
    • Avalanche
    • Base
    • Any EVM-compatible chain

License

This project is licensed under the terms of the MIT license.

Metadata

Release files for goat-sdk-plugin-erc20 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for goat-sdk-plugin-erc20 0.1.2
File Size Uploaded Provenance Actions
goat_sdk_plugin_erc20-0.1.2.tar.gz 4.5 kB Without provenance Details for goat_sdk_plugin_erc20-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for goat-sdk-plugin-erc20 0.1.2
File Interpreter ABI Platform Actions
goat_sdk_plugin_erc20-0.1.2-py3-none-any.whl Python 3 none any Details for goat_sdk_plugin_erc20-0.1.2-py3-none-any.whl

Total release size: 10.2 kB

Release files / goat_sdk_plugin_erc20-0.1.2.tar.gz

Download URL goat_sdk_plugin_erc20-0.1.2.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
40f40f8dc0212817cdccb2cf8802ad2f40ff5c76994adf87a0f987c4239dcc90
BLAKE2b-256 checksum
How to use checksums
02daa75fd64495e027d32100cbe157f1ff9eef79a93614a5671e12716d6adf4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.16 Linux/6.8.0-1021-azure

Release files / goat_sdk_plugin_erc20-0.1.2-py3-none-any.whl

Download URL goat_sdk_plugin_erc20-0.1.2-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96f58f668e90fcc99d907e277ff5ce2bfd8c5448eb828dd579a4a55b0d8978c9
BLAKE2b-256 checksum
How to use checksums
575b193f287f4d4d29a9b45b54fd582712fb0996c05346d5f27c5a7cce7584a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.16 Linux/6.8.0-1021-azure

Security for goat-sdk-plugin-erc20 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page