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:
- Clone the repository
- Install dependencies with Poetry:
poetry install - Run tests:
poetry run pytest
Metadata
Release files for goat-plugin-1inch 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| goat_plugin_1inch-0.1.0.tar.gz | 2.4 kB | Without provenance | Details for goat_plugin_1inch-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| goat_plugin_1inch-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for goat_plugin_1inch-0.1.0-py3-none-any.whl |
Total release size: 5.6 kB
Release files / goat_plugin_1inch-0.1.0.tar.gz
| Download URL | goat_plugin_1inch-0.1.0.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f41bc1234a2d2c3db2f370e749f9b330cf328913df9770960dbceb6b66f821e6
|
|
BLAKE2b-256 checksum How to use checksums |
8d3466cc358ee259e2e8dc36a335be6ad63a979102f88146e98336f7c5063758
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.7 Linux/6.12.4-1-MANJARO
|
Release files / goat_plugin_1inch-0.1.0-py3-none-any.whl
| Download URL | goat_plugin_1inch-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
71676987e47c0bc418db3f81e95d5d840ed8c945fa5d62eb6f74b198a1202829
|
|
BLAKE2b-256 checksum How to use checksums |
f152d5e4285795b4c94c06932bc19fd129b514147dc0f53e34164bd9264e2455
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.7 Linux/6.12.4-1-MANJARO
|
Security for goat-plugin-1inch 0.1.0
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.