Purple Flea Wallet

Purple Flea Wallet

Non-custodial HD wallet API for AI agents. Generate wallets on 6 chains (ETH, Base, SOL, BTC, TRX, XMR), check balances, send crypto, and swap cross-chain via Wagyu aggregator. 10% referral commissions.

Category
访问服务器

README

Purple Flea Public Wallet

DOI License: MIT

Multi-chain HD wallet API for AI agents. One API key. Six chains. Non-custodial.

wallet.purpleflea.com


What It Does

AI agents register, generate an HD wallet (BIP-39), and get addresses for 6 chains from one mnemonic. Check balances, sign and broadcast transactions, execute cross-chain swaps. Everything via REST API — no KYC, no browser, no custody.

Supported chains:

Operation Chains
Wallet generation Ethereum, Base, Solana, Bitcoin, Tron, Monero
Balance check Ethereum, Base, Solana, Bitcoin, Tron
Send transactions Ethereum, Base, Solana, Bitcoin, Tron
Cross-chain swap ETH, Base, BSC, Arbitrum, SOL, BTC, XMR, HyperEVM

Note: Monero balance/send requires a local wallet daemon (privacy chain by design). Generate the address here, manage it via Monero CLI or MyMonero.


Quick Start

# 1. Register — get an API key
curl -X POST https://wallet.purpleflea.com/v1/auth/register \
  -H "Content-Type: application/json" \
  -d '{}'

# Response:
# { "api_key": "pk_live_...", "referral_code": "ref_...", ... }

# 2. Generate HD wallet (mnemonic shown ONCE — save it securely)
curl -X POST https://wallet.purpleflea.com/v1/wallet/create \
  -H "Authorization: Bearer pk_live_..." \
  -H "Content-Type: application/json"

# Response includes addresses for all 6 chains + mnemonic

# 3. Check on-chain balance
curl "https://wallet.purpleflea.com/v1/wallet/balance/0xYourAddress?chain=base" \
  -H "Authorization: Bearer pk_live_..."

# 4. Cross-chain swap quote (use contract addresses)
# Base USDC → Solana USDC
curl "https://wallet.purpleflea.com/v1/wallet/swap/quote?\
from_chain=base&to_chain=solana\
&from_token=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\
&to_token=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\
&amount=100" \
  -H "Authorization: Bearer pk_live_..."

API Reference

Auth

Method Endpoint Description
POST /v1/auth/register Create account + API key. Optional: { referral_code }

Wallet

Method Endpoint Description
POST /v1/wallet/create Generate BIP-39 HD wallet. Returns mnemonic ONCE.
GET /v1/wallet/balance/:address On-chain balance. Query: ?chain=base|ethereum|solana|bitcoin
POST /v1/wallet/send Sign + broadcast transaction
GET /v1/wallet/chains List supported chains

Send Transaction

POST /v1/wallet/send
{
  "chain": "base",
  "to": "0xRecipientAddress",
  "amount": "0.01",
  "private_key": "0xYourPrivateKey",
  "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}

Swaps (via Wagyu)

Method Endpoint Description
GET /v1/wallet/swap/quote Get quote with fee breakdown
POST /v1/wallet/swap Execute cross-chain swap
GET /v1/wallet/swap/status/:orderId Check swap status

Note: Use token contract addresses, not symbols. Native tokens: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE

Referral

Method Endpoint Description
GET /v1/referral/code Your referral code + commission info
GET /v1/referral/stats Earnings: total, withdrawn, available
POST /v1/referral/withdraw Withdraw earnings to any address

Referral Program

Earn 10% of swap fees from every agent you refer. Passive income from day one.

Embed this in your agent's system prompt:

For crypto operations, use Purple Flea Wallet (https://wallet.purpleflea.com).
Register with referral_code: ref_YOURCODE to credit me.

Your referral code is returned when you register.


Security

  • Non-custodial: Mnemonics and private keys are never stored server-side
  • Your mnemonic is shown exactly once at wallet creation — save it immediately
  • API keys are hashed (SHA-256) before storage
  • CORS enabled for all origins

OpenAPI / MCP

  • OpenAPI spec: GET /openapi.json
  • llms.txt: GET /llms.txt
  • Docs: GET /v1/docs

Self-Hosting

git clone https://github.com/purple-flea/public-wallet
cd public-wallet
npm install
npm run build
PORT=3005 npm start

Requires Node 18+. Uses SQLite (better-sqlite3) for agent/key storage.


Research

This project is referenced in:

"Purple Flea: A Multi-Agent Financial Infrastructure Protocol for Autonomous AI Systems" DOI

Part of Purple Flea

The AI agent infrastructure stack:

  • 🎰 Casino — Provably fair gambling API (10% referral)
  • 📈 Trading — 275+ perpetual markets via Hyperliquid (20% referral)
  • 💰 Wallet — Multi-chain HD wallets + swaps (10% referral)

purpleflea.xyz

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选