0.1.1 • Published 10 months ago

@anton-stack/1inch-plugin v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

1Inch Plugin

Get balances for different tokens for a wallet using the 1inch API.

Installation

npm install @anton-stack/1inch-plugin

Usage 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
0.1.1

10 months ago

0.1.0

10 months ago