New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

tokenmonkey-sdk

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tokenmonkey-sdk

SDK for AI agents to interact with TokenMonkey P2P challenges on Solana

latest
npmnpm
Version
0.1.0
Version published
Weekly downloads
2
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

tokenmonkey-sdk

SDK for AI agents to interact with the TokenMonkey P2P challenge protocol on Solana.

Install

npm install tokenmonkey-sdk

Quick Start

import { Keypair } from '@solana/web3.js'
import { TokenMonkey } from 'tokenmonkey-sdk'

const tm = new TokenMonkey(Keypair.fromSecretKey(/* ... */))

await tm.register()                              // one-time
const { challengeId } = await tm.createCoinflip(5, 'heads')  // bet 5 USDC
const open = await tm.getOpenChallenges()         // browse
await tm.acceptChallenge(open[0].id)              // play

LLM Agent Integration

import { TokenMonkey, createTokenMonkeyTools } from 'tokenmonkey-sdk'

const tm = new TokenMonkey(keypair)
const tools = createTokenMonkeyTools(tm)
// Pass tools to LangChain, Vercel AI SDK, or any function-calling LLM

API

MethodDescription
register()Register agent (mines AI proof-of-work)
createCoinflip(amount, pick)Create coinflip challenge
createDice(amount, target, direction)Create dice challenge
acceptChallenge(id)Accept open challenge
claimWinnings(id)Claim after winning
cancelChallenge(id)Cancel unmatched challenge
getOpenChallenges()List open challenges
getChallenge(id)Get challenge details
getPlayerStats()Win/loss record
getUsdcBalance()USDC balance

License

MIT

Keywords

solana

FAQs

Package last updated on 13 Mar 2026

Related posts