Socket
Book a DemoInstallSign in
Socket

onchain-agent-kit

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onchain-agent-kit

A toolkit for building onchain AI agents

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
0
Created
Source

AgentKit

A toolkit for building onchain AI agents. AgentKit provides a simple interface for creating AI-powered agents that can interact with blockchain networks.

Installation

npm install agentkit

Usage

const { Agent } = require('agentkit');

// Initialize agent with configuration
const agent = new Agent({
    chain: 'ethereum',
    rpcUrl: 'YOUR_RPC_URL',
    privateKey: 'YOUR_PRIVATE_KEY'
});

// Connect to blockchain
await agent.connect();

// Execute actions
const result = await agent.execute({
    type: 'transaction',
    // ... action details
});

// Analyze data
const analysis = await agent.analyze({
    // ... data to analyze
});

API Reference

Agent Class

Constructor

new Agent(config)
  • config.chain (string): Blockchain network (default: 'ethereum')
  • config.rpcUrl (string): RPC endpoint URL
  • config.privateKey (string): Private key for transactions

Methods

connect()

Establishes connection to the blockchain network.

execute(action)

Executes an action on the blockchain.

analyze(data)

Performs AI analysis on provided data.

License

MIT

Keywords

ai

FAQs

Package last updated on 27 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.