Metadata-Version: 2.1
Name: goat-sdk-plugin-jsonrpc
Version: 0.1.1
Summary: Goat plugin for JSON-RPC
Home-page: https://ohmygoat.dev/
Keywords: goat,sdk,web3,agents,ai
Author: Andrea Villa
Author-email: andreakarimodm@gmail.com
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

# GOAT SDK JSON-RPC Plugin

A plugin for the GOAT SDK that enables making JSON-RPC calls to any compatible endpoint.

## Features

- Make JSON-RPC calls to any compatible endpoint
- Supports standard JSON-RPC 2.0 protocol
- Fully async implementation using aiohttp
- Integrates seamlessly with GOAT SDK and LangChain

## Installation

```bash
poetry add goat-sdk-plugin-jsonrpc
```

## Usage

```python
from goat_plugins.jsonrpc import jsonrpc, JSONRpcPluginOptions

# Initialize the plugin with your RPC endpoint
tools = get_on_chain_tools(
    wallet=wallet_client,
    plugins=[
        jsonrpc(options=JSONRpcPluginOptions(endpoint="your-rpc-endpoint"))
    ],
)

# Example JSON-RPC call
response = await tools.JSONRpcFunc({
    "method": "eth_blockNumber",
    "params": [],
    "id": 1,
    "jsonrpc": "2.0"
})
```

## License

This project is licensed under the terms of the MIT license.

