-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
38 lines (36 loc) · 980 Bytes
/
Copy pathindex.js
File metadata and controls
38 lines (36 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* Solana Agent Kit
* A lightweight toolkit for AI agents to interact with Solana
*
* @example
* const { Wallet, Swapper, Transfer } = require('solana-agent-kit');
*
* // Load wallet
* const wallet = Wallet.fromFile('~/.config/solana/id.json');
*
* // Check balance
* const balance = await wallet.getBalance();
*
* // Swap tokens
* const swapper = new Swapper(wallet);
* const result = await swapper.swap('SOL', 'USDC', 1000000000); // 1 SOL
*
* // Transfer
* const transfer = new Transfer(wallet);
* await transfer.sendSol('recipient...', 0.1);
*/
const { Wallet, DEFAULT_RPC } = require('./src/wallet');
const { Swapper, TOKENS } = require('./src/swap');
const { Transfer } = require('./src/transfer');
const { Staking, VALIDATORS } = require('./src/stake');
const { AgentDEXClient } = require('./src/integrations/agentdex');
module.exports = {
Wallet,
Swapper,
Transfer,
Staking,
AgentDEXClient,
TOKENS,
VALIDATORS,
DEFAULT_RPC
};