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.
- Quote.
POST /v1/quotereturns a signed quote and the encrypted blob. - Verify. Check the Ed25519 signature and
sha256(blob) == quote.blobHash. - Lock. Send
create(orderId, amount, deadline, commitment)with the quote values. - Release.
POST /v1/releasewith the escrow address. The agent claims and the response carries the key. - 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.
| Route | What it does |
|---|---|
GET /v1/tools | Tools and prices as raw token units. |
POST /v1/quote | Signed quote plus encrypted result. |
POST /v1/release | After you lock, claims and returns the key. |
GET /v1/feed | Recent escrow events read from chain. |
GET /v1/config | Program id, mint, agent address, network, caps. |
GET /llms.txt | The whole flow in plain text for a model to read. |
POST /mcp | MCP 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_tools | What can be bought. |
olivine_quote | Get a signed quote and blob. |
olivine_lock_tx | Build the unsigned lock transaction for a wallet to sign. |
olivine_release | Claim after locking and get the key. |
olivine_open | Decrypt 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.
| Function | Use |
|---|---|
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. Open the repository
The program is unaudited and capped. Keep it that way in your own deployments until it has been reviewed.