Metadata-Version: 2.1
Name: goat-sdk-plugin-1inch
Version: 0.1.1
Summary: 1inch plugin for GOAT SDK
Home-page: https://ohmygoat.dev/
Keywords: goat,sdk,web3,agents,ai,1inch
Author: GOAT SDK Team
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: aiohttp (>=3.8.6,<4.0.0)
Requires-Dist: goat-sdk (>=0.1.1,<0.2.0)
Project-URL: Bug Tracker, https://github.com/goat-sdk/goat/issues
Project-URL: Repository, https://github.com/goat-sdk/goat
Description-Content-Type: text/markdown

# 1inch Plugin for GOAT SDK

A plugin for the GOAT SDK that provides 1inch DEX aggregator functionality.

## Installation

```bash
# Install the plugin
poetry add goat-sdk-plugin-1inch

# Install required wallet dependency
poetry add goat-sdk-wallet-evm
```

## Usage

```python
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.

