1inch Plugin for GOAT SDK
A plugin for the GOAT SDK that provides 1inch DEX aggregator functionality.
Installation
# Install the plugin
poetry add goat-sdk-plugin-1inch
# Install required wallet dependency
poetry add goat-sdk-wallet-evm
Usage
from goat_plugins.inch1 import inch1, Inch1PluginOptions
# Initialize the plugin
options = Inch1PluginOptions(
api_key="${INCH1_API_KEY}" # Optional: API key for higher rate limits
)
plugin = inch1(options)
# Get swap quote
quote = await plugin.get_swap_quote(
chain_id=1, # Ethereum mainnet
from_token_address="0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", # ETH
to_token_address="0x6B175474E89094C44Da98b954EedeAC495271d0F", # DAI
amount="1000000000000000000" # 1 ETH in wei
)
Features
- DEX aggregation across multiple chains
- Swap quote functionality
- Token price discovery
- Supported chains:
- Ethereum
- Polygon
- BSC
- Arbitrum
- Optimism
- Avalanche
- Gnosis Chain
- Base
License
This project is licensed under the terms of the MIT license.
Metadata
Release files for goat-sdk-plugin-1inch 0.1.1
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_sdk_plugin_1inch-0.1.1.tar.gz | 2.5 kB | Without provenance | Details for goat_sdk_plugin_1inch-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| goat_sdk_plugin_1inch-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for goat_sdk_plugin_1inch-0.1.1-py3-none-any.whl |
Total release size: 5.8 kB
Release files / goat_sdk_plugin_1inch-0.1.1.tar.gz
| Download URL | goat_sdk_plugin_1inch-0.1.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffd1685195d3aa9eec1fb5fb5f645b7b9d499ef5af15ab995390763732af33f1
|
|
BLAKE2b-256 checksum How to use checksums |
ca5cf66a60a1819c9f65a6a3cfd10b74ab6ab44cac2edeb32b385a4fb9d19130
|
| 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_1inch-0.1.1-py3-none-any.whl
| Download URL | goat_sdk_plugin_1inch-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
759854c74e1f31ec0605fbd719d1ffd19adf514e052f9ffefc92874c338980ec
|
|
BLAKE2b-256 checksum How to use checksums |
08fabd2d240e2861263d676f6b9df7ca678f712ec2438f8e7e1f4bded682b282
|
| 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-1inch 0.1.1
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.