DropClaw Store — Permanent Encrypted File Storage#
Store any file permanently on-chain using AES-256-GCM client-side encryption and the x402 payment protocol. Zero-knowledge: the server never sees your encryption key.
Quick Reference#
- API Base:
https://dropclaw.cloud
- Protocol: x402 (HTTP 402 payment flow)
- Storage chain: Monad (chainId 143)
- Payment: MON, SOL, or Base USDC
- Cost: ~$30 USD + gas to store. Free to retrieve.
How to Store a File#
- Read the file into a buffer
- Compute SHA-256 hash of the original
- Compress with zlib deflate
- Generate random 32-byte AES key + 12-byte IV
- Encrypt with AES-256-GCM → output:
[IV:12][AuthTag:16][Ciphertext]
POST /vault/store with the encrypted blob as multipart form data (field: file)
- You will get a
402 response with payment options — pick a chain and send payment
- Retry the POST with header
X-PAYMENT: base64(JSON({ network, txHash }))
- CRITICAL: Save BOTH the returned skill file AND your encryption key locally
How to Retrieve a File#
POST /vault/retrieve/{fileId} with the skill file JSON in the body
- Receive encrypted blob
- Extract IV (first 12 bytes), AuthTag (next 16 bytes), then ciphertext
- Decrypt with AES-256-GCM using your saved key
- Decompress with zlib inflate
- Verify SHA-256 matches
Endpoints#
MethodPathAuthDescriptionPOST/vault/storex402Store encrypted filePOST/vault/retrieve/{fileId}noneRetrieve encrypted fileGET/vault/pricing?size={bytes}noneGet pricing for file sizeGET/.well-known/x402nonex402 discovery manifestGET/dropclaw-skill.jsonnoneFull skill spec (JSON)GET/claude-tools.jsonnoneClaude tool definitionsGET/openai-tools.jsonnoneOpenAI tool definitions
MCP Server#
For Claude Desktop / Claude Code integration:
text
claude mcp add dropclaw -- node /path/to/mcp/index.js
Install SDK: npm i dropclaw or pip install dropclaw
Payment Chains#
- Monad (eip155:143) — MON native
- Solana (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp) — SOL native
- Base (eip155:8453) — USDC
Important#
- The encryption key is generated client-side and NEVER sent to the server
- Without your key, files cannot be decrypted by anyone
- 50% of all fees go to FARNS token buyback