Tenzro
Payments and settlement

Batch settlement.

Atomic multi-settlement with rollback on failure. Useful for inference-per-token billing.
STATUS
Testnet
CRATE
tenzro-settlement
STABILITY
Stable
TYPE
Component
01

Atomicity

All settlements in a batch commit or none do. If any sub-settlement fails verification, the entire batch rolls back.

02

Use case

Per-token inference billing where many small charges aggregate into one on-chain commit. Cheaper than one-shot for high-volume flows.

03

Surface

Today, BatchProcessor is a Rust API on tenzro-settlement, wired into the node and persisted to CF_SETTLEMENTS. There is no tenzro_* JSON-RPC for atomic batch submission yet — individual settlements go through tenzro_settle. Library callers can drive the batch directly:

use tenzro_settlement::BatchProcessor;

let bp = BatchProcessor::new(100);
bp.add(settlement_a).await?;
bp.add(settlement_b).await?;
let receipt = bp.process().await?; // atomic, rolls back on any failure
Related
← All docs