Skip to main content

1inch plugin for GOAT SDK

Project description

1inch Plugin for GOAT

This plugin provides integration with the 1inch API for the GOAT SDK.

Features

  • Get token balances and allowances for a wallet address on a specific chain

Installation

pip install goat-plugin-1inch

Usage

from goat_plugins.inch1 import OneInchService

# Initialize the service with your API key
service = OneInchService(api_key="your_api_key")

# Get balances for a wallet
balances = await service.get_aggregated_balances({
    "wallet_address": "0x...",
    "chain_id": 1  # Ethereum mainnet
})

Configuration

The plugin requires a 1inch API key to function. You can obtain one from the 1inch Developer Portal.

Set your API key when initializing the service:

service = OneInchService(api_key="your_api_key")

Development

To set up the development environment:

  1. Clone the repository
  2. Install dependencies with Poetry:
    poetry install
    
  3. Run tests:
    poetry run pytest
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

goat_plugin_1inch-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

goat_plugin_1inch-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file goat_plugin_1inch-0.1.0.tar.gz.

File metadata

  • Download URL: goat_plugin_1inch-0.1.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.12.4-1-MANJARO

File hashes

Hashes for goat_plugin_1inch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f41bc1234a2d2c3db2f370e749f9b330cf328913df9770960dbceb6b66f821e6
MD5 978a4de406d2ca6f9b44e8ab1e8aea89
BLAKE2b-256 8d3466cc358ee259e2e8dc36a335be6ad63a979102f88146e98336f7c5063758

See more details on using hashes here.

File details

Details for the file goat_plugin_1inch-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: goat_plugin_1inch-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.12.4-1-MANJARO

File hashes

Hashes for goat_plugin_1inch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71676987e47c0bc418db3f81e95d5d840ed8c945fa5d62eb6f74b198a1202829
MD5 6fd1ba9213be2be516b6cf86966ace9f
BLAKE2b-256 f152d5e4285795b4c94c06932bc19fd129b514147dc0f53e34164bd9264e2455

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page