How buckette differs: on-chain metering and settlement

This is the first post in a series on how buckette differs from the services people compare it with. Each post takes one class of service, says what it does well, where buckette does something else, and when you should pick the other one.

We start with on-chain metering and settlement, because it is the comparison that sounds closest and is in fact the furthest. Both count usage, both make the count checkable by someone who was not there, and both are being pitched for agents that pay for things. They make opposite choices about who you have to trust.

What the class does

Three kinds of project get grouped under this heading. They solve different problems, and it helps to keep them apart.

  • Metered access paid in a token. In Pocket Network, an application stakes and burns POKT to pay for API requests, each priced in compute units. The nodes that serve the requests package them into relay proofs and submit them on-chain, and they are paid when the network settles those proofs. The meter, the proof and the payment are all the network’s.
  • Escrow between agents who do not know each other. In Masumi, a buyer agent locks funds in a smart contract on Cardano, the seller does the work and submits a hash of the result, and the seller collects when a dispute window ends without a refund request. Masumi also offers to record hashes of agent outputs on-chain, as decision logging.
  • Signed responses. Ankr’s Verifiable RPC signs each JSON-RPC response from inside a hardware enclave, so a client can check that the data came from the node it expected. It is about the truth of the data, not about usage, and it is often confused with the other two.

What they share is the reason to use a chain at all: no single party has to be trusted. The parties may be strangers, and the record is kept by a network that none of them controls. That is a real property, and nothing in buckette provides it.

What buckette does instead

buckette is a budget service. You give it budgets (buckets), and every spend from them goes through an API call that either succeeds or is refused before the money is spent. There is no network and no token: one service, run by us or (on request) on your own machines, holds the count, and that service is the party everyone trusts.

That sounds like a weakness, and for strangers it is. Inside one organisation, or between a company and its customer, it is what makes the rest simple:

  • Admission, not only accounting. A buckette budget is checked before the spend happens, and a call that does not fit is refused, or waits for capacity if you ask it to. A relay proof or an escrow records and pays for work; neither stops an agent from starting work it cannot afford. buckette is a circuit breaker in front of the spending.
  • One atomic call, no block to wait for. A consume or a claim either debits every budget it names, or none of them, in one HTTP request (AllOf claims). There are no fees per call, no confirmation time, and nothing for the caller to hold but an API key.
  • Budgets you can carve and take back. A bucket can be split into a child bucket for one run or one sub-agent, with a key that can only touch that child, and reclaimed when the run ends. That delegation, inside a trust domain, is the everyday work of a team running agents, and it has no equivalent in a per-job escrow.
  • The money stays money. Budgets are counted in whatever your team counts (dollars, tokens, requests, GPU minutes), several at once if you like. Nobody has to hold or price a token to use them.

Receipts instead of consensus

Where a chain makes a record trustworthy by having many parties agree on it, buckette makes one checkable by signing it.

Send a nonce chosen by the party who wants proof (crNonce on a consume, rrvNonce on a reservation) and the answer carries a receipt: an Ed25519 signature over “this bucket consumed this amount at this time for this nonce”. The relying party, say an auditor, a customer you bill, or a service downstream, verifies it offline, against your tenant’s public key from GET /tenants/:tenantId/receipt-public-key, a route that needs no credentials. They get no API key and no account, and they do not call buckette back to check. A receipt has no expiry, and a reservation’s commit token lets that same outside party settle a hold without ever holding a key. Without a nonce no receipt is made, and nothing on the common path costs more. The guide for agents has the format and a short verifier in Python, under “Trusted-third-party receipts”.

Be clear about what a receipt proves and what it does not. It proves that the buckette instance holding your tenant’s key said the spend happened. It does not prove that no other spend happened, and it is not a public ledger anyone can replay: the full history is the tenant’s event log, which the tenant can export, and which is kept under the tenant’s retention settings. If the relying party does not trust whoever runs that instance, a receipt does not help them. That is the trade: you get checkable records at the cost of one HTTP call, in exchange for trusting one party.

When to use a chain instead

Pick on-chain metering or settlement, not buckette, when:

  • The parties do not share anyone they trust. Agents from different owners, hiring each other on an open market, need what Masumi’s escrow offers: funds locked by a contract neither side controls, released on delivery or refunded. buckette has no answer to “and what if the budget service lies”, other than that you run it yourself.
  • The suppliers are an open network. If anyone may join and serve requests, and must be paid without a contract, a protocol like Pocket’s is the design. buckette assumes one operator who sets up the budgets.
  • The record must be public and permanent. A hash on a chain can be read by anyone, forever, without asking. A buckette receipt is checkable by anyone you hand it to, and the history lives in a database someone runs.
  • Payment itself is the product. buckette bounds what may be spent and records what was; it moves no money. If what you need is the transfer, you need a payment rail, on-chain or not.

The two also combine. An agent with a buckette budget can pay a seller on Masumi out of it: buckette decides whether this spend fits the allowance its owner gave it, and the escrow handles the stranger on the other side. One is the budget, the other the payment.

Where to start

If your agents and services all answer to you or to your customers, start with a budget around the run: the getting started page sets one up in a few minutes. When someone outside needs proof of what was spent, add a nonce and hand them the receipt.

The next post in the series compares buckette with the quotas a hosting platform gives you.