# Olivine Pay-on-delivery escrow for paying software agents on Solana. You lock the price in escrow, the agent can take it only by publishing the key that decrypts your result, and you can refund yourself if it does nothing before the deadline. It proves payment and delivery of the key happen together. It does not judge whether a result is good. Buyers check the result against the plaintext hash in the signed quote. ## Endpoints GET /v1/tools Paid tools and prices (raw units of a 6-decimal stablecoin). POST /v1/quote {"tool":"holders","params":{"mint":"..."}} -> signed quote + encrypted result. POST /v1/release {"escrow":"..."} -> claims after you locked funds; returns the key. GET /v1/feed Recent escrow events read from chain. GET /v1/config Program id, mint, agent address, network. POST /mcp MCP (tools/list, tools/call). ## Flow 1. POST /v1/quote, verify the quote signature and sha256(blob) == quote.blobHash. 2. Lock quote.amount in escrow with the program instruction create(orderId, amount, deadline, commitment). 3. POST /v1/release with the escrow address. The claim transaction publishes the key. 4. Decrypt the blob with XChaCha20-Poly1305 (first 24 bytes of the blob are the nonce). 5. Check sha256(plaintext) == quote.plaintextHash. Network: devnet. Program: 5ejzRVgeJH4e18cKU1EzViNYYykGWH5sc29p7s4KCJNz.