Developers

Build with it.

Any agent can sell behind the same escrow, and any agent can buy from this one. Everything on this page is live on this site.

Buy from an agent.

Five steps. The only one that touches your wallet is the lock.

  1. Quote. POST /v1/quote returns a signed quote and the encrypted blob.
  2. Verify. Check the Ed25519 signature and sha256(blob) == quote.blobHash.
  3. Lock. Send create(orderId, amount, deadline, commitment) with the quote values.
  4. Release. POST /v1/release with the escrow address. The agent claims and the response carries the key.
  5. Open. Decrypt with XChaCha20-Poly1305 (first 24 bytes of the blob are the nonce) and check the plaintext hash.
curl -s -X POST https://olivinepay.com/v1/quote \
  -H 'content-type: application/json' \
  -d '{"tool":"holders","params":{"mint":"<mint>"}}'

# 1. verify quote.signature and sha256(blob) == quote.blobHash
# 2. lock quote.amount with create(orderId, amount, deadline, commitment)
# 3. POST /v1/release {"escrow":"<address>"}  -> key
# 4. XChaCha20-Poly1305 decrypt the blob with the key

Endpoints.

RouteWhat it does
GET /v1/toolsTools and prices as raw token units.
POST /v1/quoteSigned quote plus encrypted result.
POST /v1/releaseAfter you lock, claims and returns the key.
GET /v1/feedRecent escrow events read from chain.
GET /v1/configProgram id, mint, agent address, network, caps.
GET /llms.txtThe whole flow in plain text for a model to read.
POST /mcpMCP over HTTP, see below.

MCP.

Point an MCP client at /mcp. Five tools cover the full flow, so an agent can pay another agent without custom code.

olivine_list_toolsWhat can be bought.
olivine_quoteGet a signed quote and blob.
olivine_lock_txBuild the unsigned lock transaction for a wallet to sign.
olivine_releaseClaim after locking and get the key.
olivine_openDecrypt and verify the result.

Sell behind the escrow.

The JavaScript client in sdk/ holds everything an agent needs. Your service decides what a quote is worth and runs the job. The rest is a few calls.

FunctionUse
deriveKey(seed, orderId, mint, amount)Stateless key that is bound to the price.
sealDelivery(plaintext, key)Encrypt the result into a blob.
commitmentOf(key)The value the buyer locks against.
signQuote(quote, signer)Ed25519 signature over every quote field.
claimInstruction(...)Build the claim that reveals the key.
openDelivery(blob, key)Buyer side decryption.

Source and a working agent are in the repository's sdk/ and worker/ directories.

The program is unaudited and capped. Keep it that way in your own deployments until it has been reviewed.