JSON-RPC Plugin for GOAT SDK
A plugin for the GOAT SDK that enables making JSON-RPC calls to any blockchain or protocol endpoint supporting the JSON-RPC 2.0 specification.
Installation
# Install the plugin
poetry add goat-sdk-plugin-jsonrpc
# Install optional wallet dependencies for chain-specific operations
poetry add goat-sdk-wallet-evm
poetry add goat-sdk-wallet-solana
Usage
from goat_plugins.jsonrpc import jsonrpc, JSONRpcPluginOptions
# Initialize the plugin for EVM chain
evm_options = JSONRpcPluginOptions(
endpoint="${RPC_PROVIDER_URL}" # Your EVM RPC endpoint
)
evm_plugin = jsonrpc(evm_options)
# Get latest block number on Ethereum
eth_response = await evm_plugin.call({
"method": "eth_blockNumber",
"params": [],
"id": 1,
"jsonrpc": "2.0"
})
# Initialize plugin for Solana
sol_options = JSONRpcPluginOptions(
endpoint="${RPC_PROVIDER_URL}" # Your Solana RPC endpoint
)
sol_plugin = jsonrpc(sol_options)
# Get account info on Solana
sol_response = await sol_plugin.call({
"method": "getAccountInfo",
"params": [
"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",
{"encoding": "base58"}
],
"id": 1,
"jsonrpc": "2.0"
})
Features
-
Protocol Support:
- JSON-RPC 2.0 specification
- WebSocket connections
- Batch requests
- Error handling
-
Chain Compatibility:
- Ethereum and EVM chains
- Solana
- Any JSON-RPC compatible chain
-
Advanced Features:
- Async implementation
- Request retries
- Rate limiting
- Response validation
-
Integration Support:
- GOAT SDK integration
- LangChain compatibility
- Custom middleware support
- Error event handling
License
This project is licensed under the terms of the MIT license.
Metadata
Release files for goat-sdk-plugin-jsonrpc 0.1.2
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_jsonrpc-0.1.2.tar.gz | 2.7 kB | Without provenance | Details for goat_sdk_plugin_jsonrpc-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| goat_sdk_plugin_jsonrpc-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for goat_sdk_plugin_jsonrpc-0.1.2-py3-none-any.whl |
Total release size: 6.1 kB
Release files / goat_sdk_plugin_jsonrpc-0.1.2.tar.gz
| Download URL | goat_sdk_plugin_jsonrpc-0.1.2.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ceb382a8c984c63b22a119b6a61dacd294d227cb1e2ebc3cadc0bfd96a4ece62
|
|
BLAKE2b-256 checksum How to use checksums |
cbccb1de2787adaaec47e599429ba72ad0f00f117d24cce8a87bdbaacd671f31
|
| 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_jsonrpc-0.1.2-py3-none-any.whl
| Download URL | goat_sdk_plugin_jsonrpc-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
de9e4b44742d887168e68ccefc1b3a4133632eca51b2e1caa7e6122a6c500fbb
|
|
BLAKE2b-256 checksum How to use checksums |
1c5d7d118454a7b4443bbc03b89d11da693f5811d9f38d1ef53d69f3b9e09809
|
| 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-jsonrpc 0.1.2
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.