1inch plugin for GOAT SDK
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file goat_sdk_plugin_1inch-0.1.1.tar.gz.
File metadata
- Download URL: goat_sdk_plugin_1inch-0.1.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.16 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffd1685195d3aa9eec1fb5fb5f645b7b9d499ef5af15ab995390763732af33f1
|
|
| MD5 |
dcca134997e66f3f5a51cb9667de8132
|
|
| BLAKE2b-256 |
ca5cf66a60a1819c9f65a6a3cfd10b74ab6ab44cac2edeb32b385a4fb9d19130
|
File details
Details for the file goat_sdk_plugin_1inch-0.1.1-py3-none-any.whl.
File metadata
- Download URL: goat_sdk_plugin_1inch-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.16 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
759854c74e1f31ec0605fbd719d1ffd19adf514e052f9ffefc92874c338980ec
|
|
| MD5 |
562bb91329ee130d3842d8cc3e1016f9
|
|
| BLAKE2b-256 |
08fabd2d240e2861263d676f6b9df7ca678f712ec2438f8e7e1f4bded682b282
|