Pactwright StudioRun a settlement

Purchases, on the record.

Pactwright Studio is the public ledger and the escrow engine for purchases made by AI agents on Stellar.

When an agent buys an API call, compute, or a dataset translation, the money waits in a Soroban contract until a verifier has checked what came back. Then it goes to the seller, or it goes back to the buyer. Studio shows you which, and why.

8 pacts on this page: 7 paid out, 0 sent back, 1 still open.Counted from the rows below, which are read from the chain, not written down by the sellers.

The life of one pact

A pact is a promise with a deadline on each side of it: one for the verdict, one for the settlement. Nothing else in the system can move the money, and neither deadline can be moved once the pact is open.

  1. The agent opens a pact

    opened

    Before it asks for anything, a buyer's agent opens a pact on Stellar and locks a cap into a Soroban contract. The cap is the most that can ever leave it, and it leaves the agent's own account, not a database balance.

  2. The seller delivers and signs

    paid

    The seller runs the job and signs a delivery receipt for what it sent. There is exactly one attestation per pact: the buyer submits the evidence, the sellers sign the receipts, and neither can file a second one.

  3. A verifier checks it

    verdict

    An independent verifier weighs the delivery against the condition the pact was opened with, and returns a verdict before the verdict deadline: allow, deny, or a partial that names how much was actually delivered.

  4. The contract splits it

    settled

    The verdict goes on-chain and the contract pays the seller and returns the rest, in one transaction, before the settle deadline. The receipt leaf it produces is batched into a Merkle root and anchored to Stellar.

  5. Or nobody says anything

    refunded

    Silence is a case the pact already answers for. Each one is opened with what happens if the verdict never arrives: the cap goes back to the buyer, or the seller is paid. Either way the money does not sit in limbo, and no one has to open a dispute to find out which.

A pact record page: its seal, its state, the chain of stages it passed through and the transaction behind each.
What one pact looks like once it has settled: every stage, the ledger it was written in, and the transaction behind each step.

Why an agent can't just use a card

Buying on an API key

  • You pay before anyone has seen the output, and the only way back is a support ticket.
  • A chargeback needs a human to notice, and to still have the evidence six weeks later.
  • The provider's own counter is the record of what it charged you.
  • If the service stops mid-request, the money for that request is gone.

Buying on a pact

  • The cap sits in a contract until a verdict says what was delivered.
  • The settlement is the contract's own transaction, so nobody has to be asked.
  • The record is a public chain, and the receipt has a Merkle proof you can check alone.
  • A missed deadline is an outcome the pact already decided in advance.

Follow one pact

A pact ID is the 64 hex characters a buyer's agent gets when it opens one. Paste one here and Studio shows every stage it has been through, with the transaction behind each.

Set the terms, then break them

Four scenarios, one contract. Choose what the seller delivers and watch the same split the contract makes: who is paid, who is refunded, and what the ledger ends up saying.

Simulated Pact ID

9b1deb4d3b7d4b648ac4290d03ee69d3a7b57b98a3b5a772c1c3f2d24b7a42ec

Settled
1. Locked Escrow1.00 USDC
2. Verifier VerdictALLOW 1.00
3. Settlement ExecutionFull Seller Payout
Paid to Seller1.00 USDC
Refunded to Buyer0.00 USDC
“The hosted verifier validated translation quality: 4 of 4 pages approved. 1.00 USDC paid to seller.”
On-chain settlement event payload
{
  "pact_id": "9b1deb4d3b7d4b648ac4290d03ee69d3a7b57b98a3b5a772c1c3f2d24b7a42ec",
  "action": "settle",
  "to_seller": "1.0000000",
  "to_buyer": "0.0000000",
  "resolution": "fulfilled",
  "network": "stellar-soroban"
}

Recent pacts

The eight newest rows. Browse the whole ledger, filtered by state or by seller.

PactModeCapTo sellerTo buyerState
455d0b99…adcb5cEscrow0.100.000.00In escrow
a01f5018…3741ccEscrow1.001.000.00Settled
25841260…322da1Escrow1.000.001.00Released
a473e2ec…e304d8Escrow1.000.001.00Released
0d66180c…b432abEscrow1.000.750.25Settled
d9ec22fa…e64eb9Escrow1.001.000.00Settled
747f61ae…c2580dEscrow1.000.001.00Released
7a31bd6e…6d4b2bEscrow1.000.001.00Released

Questions people ask before they hand an agent a budget

Eight of them, answered with what the contract does rather than what the product promises.

A cap, in USDC, locked by the buyer's agent when it opens the pact. It is the most that can ever move to the seller for that purchase. Two modes exist: an exact-refund pact, where a cooperative seller returns what was not delivered, and an escrow pact, where a verifier's verdict decides the split. There is no mode where the seller can draw more than the cap.

The verdict is a signed attestation recorded against the pact, so a wrong one is attributable rather than anonymous. It is checked against the condition the pact was opened with, which is written down before the work starts. If the verdict never arrives at all, the pact's silence option decides the outcome — that case is settled in advance, not left open.

No. Studio is a public record: pacts, stages, verdicts and certificates are readable here without connecting a wallet. You need a Stellar account to open a pact, to sell into one, or to sign anything. The network this deployment reads is stated in the footer of every page.

Stellar fees are denominated in XLM and are a fraction of a cent per transaction, which is why an agent can open and settle pacts without the fee dwarfing the purchase. The sponsor balance that covers rent for the contract instances is monitored, and its floor is one of the operations probes.

That a specific receipt was included in a batch whose Merkle root was anchored on Stellar. The leaf is a hash over the pact, the ledger, the cap, the payout, the envelope and a nonce. The viewer recomputes the proof in your browser, so you can check a certificate without trusting this site's opinion about it.

A seller registers its Stellar address and the endpoint it will serve, and signs that registration so it cannot be attributed to anyone else. From then on it receives pacts for that route, signs delivery receipts for what it sends, and is paid by the contract's settlement rather than by an invoice.

The pact is: its amount, its parties, its states and its settlement are on a public chain, which is the point of the record. What is not published here is any payload. Evidence and deliverables stay between the parties and the verifier.

The record you are reading is real for the network named in the footer. This deployment reads Stellar testnet, so the amounts are genuine contract behaviour and not real money. The same code path runs against pubnet.

Three ways in

Studio is one record with three desks over it. Each reads the same rows the chain wrote; none of them can change them.