0.0.0 • Published 10 months ago
@anton-stack/template-plugin v0.0.0
1Inch Plugin
Get balances for different tokens for a wallet using the 1inch API.
Installation
npm install @anton-stack/1inch-pluginUsage for AgentKit
import { AgentKit } from '@coinbase/agentkit';
import { oneInchActionProvider } from '@anton-stack/1inch-plugin/agentkit';
const oneInch = oneInchActionProvider({ apiKey: 'YOUR_API_KEY' });
const agentKit = await AgentKit.from({
walletProvider, // Your Wallet Provider. eg- viem, cdp, etc.
actionProviders: [oneInch],
});Tools
- Get Balances: Get the balances of a wallet address on a specific chain