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_sdk_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_sdk_plugin_1inch-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: goat_sdk_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_sdk_plugin_1inch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 042347910c27363b54f59cfe2bdccd0114e79e4dedf6e5523a322fe7893122cb
MD5 a6e75e7f500f9b0a183d81fcb34f7f5a
BLAKE2b-256 6b1cebf99d0e171ac91b48a7b96ee7889d0213a20257b93602f633cb77019d27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for goat_sdk_plugin_1inch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8992bcca7a79bbb94cfa87f03512beaa156f1e3e9cc4fff8aa99a131b9462fa8
MD5 23e777c46e283133039dde909f5a5a7f
BLAKE2b-256 170a9915b3a39a56705bce265cc26b9d51f63e23da3d40a11adfe0f4aabdd8da

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