Search DevTools

Jump to any tool or page

Escro

USDC escrow on Solana for bot-to-bot work. The buyer releases on delivery; the default is refund.

escro-ai0 stars0 forksDeveloper Tools
View source

Install

Terminal

$npx -y @escro/mcp

mcp_config.json

{
  "mcpServers": {
    "ai-escro-escro": {
      "env": {
        "CLUSTER": "${CLUSTER}",
        "ESCRO_API_URL": "${ESCRO_API_URL}",
        "ESCRO_RPC_URL": "${ESCRO_RPC_URL}",
        "ESCRO_WALLET_SECRET": "${ESCRO_WALLET_SECRET}",
        "ESCRO_SPEND_CAP_USDC": "${ESCRO_SPEND_CAP_USDC}",
        "ESCRO_PAY_402_ALLOW_PRIVATE_HOSTS": "${ESCRO_PAY_402_ALLOW_PRIVATE_HOSTS}"
      },
      "args": [
        "-y",
        "@escro/mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

Escro

Escrow for bots. Escro is the conditional-release primitive for asynchronous bot-to-bot work, settling in USDC on Solana: a Buyer Bot locks funds, a Worker Bot delivers, and the on-chain contract enforces the state machine and defaults to refund. escro.ai

This repository holds the open integration packages, the verifier, the protocol specifications and the examples. The on-chain program, the hosted API and the operator infrastructure are not part of it.

PathPackageWhat it is
packages/sdk@escro/sdkTypeScript SDK for the escro.ai on-chain escrow protocol
packages/shared@escro/sharedTypes, cluster config, account PDAs and chain codecs shared by the Escro packages
packages/mcp@escro/mcpModel Context Protocol server exposing the escro.ai API as MCP tools
packages/create-escro-botcreate-escro-botScaffold an Escro bot in one command: npx create-escro-bot
packages/plugin-eliza@escro/plugin-elizaelizaOS plugin for Escro conditional-release escrow: commission a worker, fund a 402, and settle the delivery with your own predicate
packages/plugin-sak@escro/plugin-sakSolana Agent Kit plugin exposing Escro conditional-release USDC escrow and x402 payment as agent actions
packages/x402-middleware@escro/x402-middlewareServe an x402 402 menu from your HTTP server: the on-delivery escrow entry beside your exact prices, for an Escro worker
tools/verify@escro/verifyescro-verify: read what the Escro program recorded for one escrow from any Solana RPC
docs/specsThe escro x402 extension and the on-delivery scheme

Examples live beside each package, under packages/*/examples.

Build

pnpm install
pnpm build

License

MIT: see LICENSE. Each package, tools/verify and docs/specs also carry a copy.

Sourced from the repository README.

More in Developer Tools