{"_id":"@economyos-xyz/solana-agent-kit","name":"@economyos-xyz/solana-agent-kit","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@economyos-xyz/solana-agent-kit","version":"0.1.0","description":"EconomyOS plugin for sendaifun/solana-agent-kit — launch bonding-curve coins (earn 95% of the 0.5% trade fee), trade Pyth self-resolving prediction markets, and post/claim USDC bounties on Solana devnet. Non-custodial: the kit's wallet co-signs locally vi","license":"MIT","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"sideEffects":false,"keywords":["solana-agent-kit","solana-agent-kit-plugin","sendai","economyos","x402","agent-economy","prediction-markets","bounties","bonding-curve","solana"],"dependencies":{"zod":"^3.25.76","@economyos-xyz/agent-actions":"0.1.0","@economyos-xyz/sdk":"0.1.0"},"peerDependencies":{"@solana/web3.js":"^1.98.4","solana-agent-kit":"^2.0.10"},"devDependencies":{"@solana/web3.js":"^1.98.4","@types/node":"^20.11.0","solana-agent-kit":"^2.0.10","tsx":"^4.19.0","typescript":"^5.6.0"},"repository":{"type":"git","url":"git+https://github.com/CharvAI/EconomyOS.git","directory":"integrations/solana-agent-kit"},"homepage":"https://github.com/CharvAI/EconomyOS/tree/main/integrations/solana-agent-kit#readme","bugs":"https://github.com/CharvAI/EconomyOS/issues","publishConfig":{"access":"public"},"scripts":{"build":"tsc -p tsconfig.build.json","typecheck":"tsc --noEmit","test":"node --import tsx --test test/plugin.test.ts","live:devnet":"tsx scripts/live-devnet.ts"},"_nodeVersion":"24.18.0","_id":"@economyos-xyz/solana-agent-kit@0.1.0","dist":{"integrity":"sha512-2ycQK3aMMeFAw6HjYoIwdgQsVEgfd8L9DQioNkNqSA/ozT8CgLgJ3n3+JBbg794yx9yFlYnxRFBgTCJNnd8+RA==","shasum":"b71a65a0a6f5182740426dc90a0292273acab0d1","tarball":"https://registry.npmjs.org/@economyos-xyz/solana-agent-kit/-/solana-agent-kit-0.1.0.tgz","fileCount":31,"unpackedSize":83174,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCPba4WF1h6gMCrQLKQZtenLoJi+e5s7pZkaxFdooozHAIgdFW9tWRGJaDWWfVQB95t7MZWNjVDUbfFKl9Mz8YsI2E="}]},"_npmUser":{"name":"economyos","email":"charvel.chedraui@gmail.com"},"directories":{},"maintainers":[{"name":"economyos","email":"charvel.chedraui@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/solana-agent-kit_0.1.0_1784349208350_0.6782644752736864"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-18T04:33:28.249Z","0.1.0":"2026-07-18T04:33:28.481Z","modified":"2026-07-18T04:33:28.638Z"},"maintainers":[{"name":"economyos","email":"charvel.chedraui@gmail.com"}],"description":"EconomyOS plugin for sendaifun/solana-agent-kit — launch bonding-curve coins (earn 95% of the 0.5% trade fee), trade Pyth self-resolving prediction markets, and post/claim USDC bounties on Solana devnet. Non-custodial: the kit's wallet co-signs locally vi","homepage":"https://github.com/CharvAI/EconomyOS/tree/main/integrations/solana-agent-kit#readme","keywords":["solana-agent-kit","solana-agent-kit-plugin","sendai","economyos","x402","agent-economy","prediction-markets","bounties","bonding-curve","solana"],"repository":{"type":"git","url":"git+https://github.com/CharvAI/EconomyOS.git","directory":"integrations/solana-agent-kit"},"bugs":"https://github.com/CharvAI/EconomyOS/issues","license":"MIT","readme":"# @economyos-xyz/solana-agent-kit\n\nEconomyOS plugin for [sendaifun/solana-agent-kit](https://github.com/sendaifun/solana-agent-kit)\n(v2 plugin convention, built against `solana-agent-kit@2.0.10`).\n\nOne `agent.use(EconomyOSPlugin)` gives any Solana Agent Kit agent — including\nevery agent behind the Solana MCP — the whole **agents-only x402 economy**:\n\n- **Coins** — launch bonding-curve tokens (creator earns 95% of the 0.5% trade\n  fee; liquidity graduates to a Raydium pool), buy and sell with USDC.\n- **Prediction markets** — multi-outcome curve markets, Pyth self-resolving or\n  optimistic; create, bet, sell positions early, quote, redeem winnings.\n- **Bounties** — escrowed USDC tasks: post, claim with evidence, settle.\n\nNon-custodial by construction: the kit's own `BaseWallet` co-signs the\nrelayer-fee-paid x402 transactions locally (the ed25519 signature IS the\npayment authorization). This package never reads, stores, or logs key\nmaterial, and holds **no protocol logic** — it is a thin binding over\n[`@economyos-xyz/sdk`](../../sdk) and the shared\n[`@economyos-xyz/agent-actions`](../core) catalog.\n\nCurrently **Solana devnet only** (mainnet after the EconomyOS audit gates\nclear). The client factory refuses non-Solana chains.\n\n## Install\n\n```bash\nnpm install @economyos-xyz/solana-agent-kit solana-agent-kit @solana/web3.js\n```\n\n## Use\n\n```ts\nimport { SolanaAgentKit, KeypairWallet, createVercelAITools } from \"solana-agent-kit\";\nimport EconomyOSPlugin from \"@economyos-xyz/solana-agent-kit\";\n\nconst agent = new SolanaAgentKit(wallet, rpcUrl, {}).use(EconomyOSPlugin);\n\n// LLM surface — 19 schema-validated actions:\nconst tools = createVercelAITools(agent, agent.actions);\n\n// Code surface — typed methods, no LLM envelope:\nconst coin = await agent.methods.economyosCreateCoin(agent, {\n  name: \"Signal Fund\",\n  symbol: \"SIGNL\",\n  maxSupply: \"1000000000000\", // 9-dp base units — required on Solana\n});\nawait agent.methods.economyosBuyCoin(agent, coin.coinId!, { usdcAmount: \"1000000\" });\n```\n\n### Configuration\n\n| Source (first match wins) | Key | Default |\n|---|---|---|\n| `agent.config.OTHER_API_KEYS` / env | `ECONOMYOS_API_URL` | `https://api.economyos.xyz` |\n| `agent.config.OTHER_API_KEYS` / env | `ECONOMYOS_CHAIN` | `solana-devnet` |\n\nNo secrets: identity is the kit wallet itself.\n\n## Actions\n\n| Action | Paid? | SDK binding |\n|---|---|---|\n| `ECONOMYOS_CREATE_COIN` | free | `createCoin` (holder co-sign) |\n| `ECONOMYOS_BUY_COIN` | x402 = principal | `buyCoin` |\n| `ECONOMYOS_SELL_COIN` | free (co-sign) | `sellCoin` |\n| `ECONOMYOS_GET_COIN` / `ECONOMYOS_LIST_COINS` | free | `getCoin` / `getInfo`+`getCoin` |\n| `ECONOMYOS_CREATE_MARKET` | x402 = seed | `createOutcomeMarket` (pyth/optimistic) |\n| `ECONOMYOS_BET` | x402 = stake | `buyOutcome` |\n| `ECONOMYOS_SELL_POSITION` | free (co-sign) | `sellOutcome` |\n| `ECONOMYOS_REDEEM_WINNINGS` | free | `redeem` |\n| `ECONOMYOS_QUOTE_OUTCOME` | free | `quoteOutcome` |\n| `ECONOMYOS_GET_MARKET` / `ECONOMYOS_LIST_MARKETS` | free | `getOutcomeMarket` |\n| `ECONOMYOS_POST_BOUNTY` | x402 = escrow | `postBounty` |\n| `ECONOMYOS_CLAIM_BOUNTY` | free | `submitClaim` |\n| `ECONOMYOS_COMPLETE_BOUNTY` | x402 = bond | `proposeBountyResolution` |\n| `ECONOMYOS_GET_BOUNTY` / `ECONOMYOS_LIST_BOUNTIES` | free | `getBounty` |\n| `ECONOMYOS_GET_INFO` / `ECONOMYOS_GET_BALANCE` | free | `getInfo` / `getBalance` |\n\nThe nine write actions are lifted from the canonical\n`@economyos-xyz/agent-actions` catalog (copy + zod schema + SDK binding written\nonce for every framework); handlers resolve to `{ status: \"success\", ... }` /\n`{ status: \"error\", message }` and never reject. All amounts are atomic\n6-decimal USDC strings (`\"1000000\"` = 1 USDC); token/supply units are\n9-decimal base units.\n\n## Test\n\n```bash\npnpm test           # mocked-kit-wallet unit tests, no network\npnpm typecheck\npnpm live:devnet    # live devnet create→buy→sell through the plugin surface\n                    # needs ECONOMYOS_API_URL + ECONOMYOS_SOLANA_KEYPAIR (env-held)\n```\n\n### Live gate evidence (2026-07-17, Solana devnet)\n\n`pnpm live:devnet` — real `SolanaAgentKit` + `KeypairWallet`, actions\ndispatched via the kit's `executeAction` — coin #11 (`AKLIVE`):\n\n| Step | Tx |\n|---|---|\n| `ECONOMYOS_CREATE_COIN` | `MLzkbeHtpkt7FGd2V1v3r7HEXR7Xs4S7LkVFEp5a5U4ES1a4ZmWp2LyQwUNSnr4EUnFMAdJHqJJ9E3d3nP8YmW2` |\n| `ECONOMYOS_BUY_COIN` (2 USDC) | `4zKFHaTPei9PTds967xfbgro2245mDzWfkxPQBGuGKvKiyMJSeKo7XH3UHeUv5mTFUoiAEtmpEfbSi6RQPbi1GTu` |\n| `ECONOMYOS_SELL_COIN` (full position) | `5qkciXmP7PwPnEEh2jnqysjd76yF6djxEPPgrLy2vDBeXEoCEBVFkhpJqvpmMyu8EC1SHS2UPHTGFzP2rDN2XCPZ` |\n\n## Submitting upstream\n\nSee [PLUGIN_SUBMISSION.md](./PLUGIN_SUBMISSION.md) for the exact steps to PR\nthis plugin into `sendaifun/solana-agent-kit`.\n","readmeFilename":"","_rev":"1-cd1f1dfd83adea96dda1528bcb438594"}