mirror of
https://github.com/d0zingcat/solana-agent-kit.git
synced 2026-05-14 07:26:46 +00:00
chore: readme
This commit is contained in:
13
README.md
13
README.md
@@ -1,6 +1,6 @@
|
||||
# Solana Agent Kit
|
||||
|
||||
A powerful toolkit for interacting with the Solana blockchain, providing easy-to-use functions for token operations, NFT management, and trading.
|
||||
A powerful toolkit for interacting with the Solana blockchain, providing easy-to-use functions for token operations, NFT management, and trading. Now integrated with LangChain for enhanced functionality.
|
||||
|
||||
## Features
|
||||
|
||||
@@ -19,6 +19,10 @@ A powerful toolkit for interacting with the Solana blockchain, providing easy-to
|
||||
- Token swaps with customizable slippage
|
||||
- Direct routing options
|
||||
|
||||
- 🔗 LangChain Integration
|
||||
- Utilize LangChain tools for enhanced blockchain interactions
|
||||
- Access a suite of tools for balance checks, transfers, token deployments, and more
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
@@ -28,13 +32,16 @@ npm install solana-agent-kit
|
||||
## Quick Start
|
||||
|
||||
```typescript
|
||||
import { SolanaAgentKit } from 'solana-agent-kit';
|
||||
import { SolanaAgentKit, createSolanaTools } from 'solana-agent-kit';
|
||||
|
||||
// Initialize with private key and optional RPC URL
|
||||
const agent = new SolanaAgentKit(
|
||||
'your-private-key',
|
||||
'https://api.mainnet-beta.solana.com'
|
||||
);
|
||||
|
||||
// Create LangChain tools
|
||||
const tools = createSolanaTools(agent);
|
||||
```
|
||||
|
||||
## Usage Examples
|
||||
@@ -128,4 +135,4 @@ ISC License
|
||||
|
||||
## Security
|
||||
|
||||
This toolkit handles private keys and transactions. Always ensure you're using it in a secure environment and never share your private keys.
|
||||
This toolkit handles private keys and transactions. Always ensure you're using it in a secure environment and never share your private keys.
|
||||
Reference in New Issue
Block a user