spl-8004-sdk
v1.0.0
Published
Official TypeScript SDK for SPL-8004 protocol - decentralized AI agent payments on Solana
Maintainers
Readme
@spl-8004/sdk
Official TypeScript SDK for SPL-8004 identity and reputation protocol on Solana.
Installation
npm install @spl-8004/sdk
# or
yarn add @spl-8004/sdkQuick Start
import { SPL8004SDK } from '@spl-8004/sdk';
import { Keypair } from '@solana/web3.js';
// Create SDK instance
const wallet = Keypair.generate();
const sdk = SPL8004SDK.create(wallet, 'devnet');
// Register an agent
const agent = await sdk.registerAgent({
agentId: 'my-agent',
metadataUri: 'https://example.com/metadata.json'
});
console.log('Agent PDA:', agent.pda.toBase58());Features
- ✅ Agent registration and management
- ✅ On-chain identity verification
- ✅ Reputation scoring
- ✅ Payment integration
- ✅ TypeScript support
- ✅ Zero API key required
Documentation
Full documentation: https://docs.noemaprotocol.xyz
License
MIT
