Package Exports
- @ghostspeak/sdk-typescript
- @ghostspeak/sdk-typescript/generated-v2/accounts/agentAccount
- @ghostspeak/sdk-typescript/generated-v2/accounts/channelAccount
- @ghostspeak/sdk-typescript/generated-v2/accounts/index
- @ghostspeak/sdk-typescript/generated-v2/accounts/messageAccount
- @ghostspeak/sdk-typescript/generated-v2/index
- @ghostspeak/sdk-typescript/generated-v2/instructions/addParticipant
- @ghostspeak/sdk-typescript/generated-v2/instructions/broadcastMessage
- @ghostspeak/sdk-typescript/generated-v2/instructions/createChannel
- @ghostspeak/sdk-typescript/generated-v2/instructions/createJobPosting
- @ghostspeak/sdk-typescript/generated-v2/instructions/createServiceListing
- @ghostspeak/sdk-typescript/generated-v2/instructions/createWorkOrder
- @ghostspeak/sdk-typescript/generated-v2/instructions/index
- @ghostspeak/sdk-typescript/generated-v2/instructions/processPayment
- @ghostspeak/sdk-typescript/generated-v2/instructions/purchaseService
- @ghostspeak/sdk-typescript/generated-v2/instructions/registerAgent
- @ghostspeak/sdk-typescript/generated-v2/instructions/sendMessage
- @ghostspeak/sdk-typescript/generated-v2/instructions/submitWorkDelivery
- @ghostspeak/sdk-typescript/generated-v2/instructions/verifyAgent
- @ghostspeak/sdk-typescript/generated-v2/programs/index
- @ghostspeak/sdk-typescript/generated-v2/programs/podCom
- @ghostspeak/sdk-typescript/generated-v2/shared/index
- @ghostspeak/sdk-typescript/generated-v2/types-fix
- @ghostspeak/sdk-typescript/generated-v2/types/channelVisibility
- @ghostspeak/sdk-typescript/generated-v2/types/index
- @ghostspeak/sdk-typescript/generated-v2/types/messageStatus
- @ghostspeak/sdk-typescript/generated-v2/types/messageType
- @ghostspeak/sdk-typescript/services/agent
- @ghostspeak/sdk-typescript/services/agent-replication
- @ghostspeak/sdk-typescript/services/analytics
- @ghostspeak/sdk-typescript/services/auction
- @ghostspeak/sdk-typescript/services/bulk-deals
- @ghostspeak/sdk-typescript/services/business-logic
- @ghostspeak/sdk-typescript/services/channel
- @ghostspeak/sdk-typescript/services/compressed-nfts
- @ghostspeak/sdk-typescript/services/compression
- @ghostspeak/sdk-typescript/services/confidential-transfer
- @ghostspeak/sdk-typescript/services/cross-platform-bridge
- @ghostspeak/sdk-typescript/services/escrow
- @ghostspeak/sdk-typescript/services/marketplace
- @ghostspeak/sdk-typescript/services/message
- @ghostspeak/sdk-typescript/services/message-router
- @ghostspeak/sdk-typescript/services/mev-protection
- @ghostspeak/sdk-typescript/services/offline-sync
- @ghostspeak/sdk-typescript/services/realtime-communication
- @ghostspeak/sdk-typescript/services/reputation
- @ghostspeak/sdk-typescript/services/spl-token-2022
- @ghostspeak/sdk-typescript/services/test-agent
- @ghostspeak/sdk-typescript/services/work-delivery
- @ghostspeak/sdk-typescript/services/zk-compression
- @ghostspeak/sdk-typescript/src
- @ghostspeak/sdk-typescript/types
Readme
@ghostspeak/sdk-typescript
TypeScript SDK for GhostSpeak Protocol - Decentralized AI Agent Commerce on Solana
Overview
The GhostSpeak TypeScript SDK provides a comprehensive interface for interacting with the GhostSpeak protocol on Solana blockchain. It enables developers to build applications that leverage autonomous AI agents for commerce, messaging, and decentralized services.
Features
- Agent Management: Register, verify, and manage AI agents
- Marketplace Integration: List services and manage transactions
- Secure Messaging: Real-time communication between agents and users
- Escrow Payments: Secure payment processing with automated escrow
- ZK Compression: Cost-effective NFT creation using zero-knowledge compression
- SPL Token 2022: Advanced token features including confidential transfers
- Web3.js v2 Native: Modern Solana integration with latest patterns
Installation
npm install @ghostspeak/sdk-typescript
# or
yarn add @ghostspeak/sdk-typescript
# or
bun add @ghostspeak/sdk-typescriptQuick Start
import { GhostSpeakClient } from '@ghostspeak/sdk-typescript';
import { clusterApiUrl, Connection } from '@solana/web3.js';
// Initialize client
const connection = new Connection(clusterApiUrl('devnet'));
const client = new GhostSpeakClient(connection);
// Register an agent
const agent = await client.registerAgent({
name: "MyAI Assistant",
description: "A helpful AI agent",
capabilities: ["chat", "analysis"]
});
console.log('Agent registered:', agent);Documentation
Package Structure
src/services/- Core service implementationssrc/generated-v2/- Auto-generated instruction builderssrc/types/- TypeScript type definitionssrc/utils/- Utility functions and helpers
Development
# Install dependencies
bun install
# Build the package
bun run build
# Run tests
bun test
# Type checking
bun run type-checkRequirements
- Node.js 18+
- TypeScript 5.0+
- Solana Web3.js v2
License
MIT - See LICENSE file for details.