Tenzro
Tutorial — Network markets

Rent compute capacity

Book a provider's idle capacity for a fixed term. You fund a prepaid balance once with a real on-chain debit, the provider proves it stayed available each epoch, and TNZO streams one epoch-slice at a time out of your balance. A missed availability proof moves nothing — you keep the slice.
Level
Intermediate
Time
~20 min
Prerequisites
tenzro-node reachable; a funded TNZO account
Stack
CLI
01

Fund a prepaid balance

Streaming settlement draws from a prepaid ledger rather than debiting your on-chain account every epoch. The deposit debits your real balance once and credits the prepaid ledger; it persists across a node restart. Amounts are in wei (1 TNZO = 1018 wei).

tenzro escrow prepaid-deposit \
  --renter 0xYOUR_ADDRESS \
  --amount 5000000000000000000
02

Find a provider and its rate

A provider that serves AI already advertises the capability; renting compute rides the same role and stake. Read its effective per-epoch rate before booking — it may be a flat rate or network-dynamic.

tenzro node compute status --rpc https://PROVIDER_RPC
03

Book the rental

Booking locks your exposure (price_per_epoch × total_epochs) and registers the provider's obligation against its stake. It fails if the stake cannot cover the new obligation on top of everything else the node owes — storage deals included. Keep the returned rental_id.

tenzro node compute book-rental \
  --rpc https://PROVIDER_RPC \
  --renter 0xYOUR_ADDRESS \
  --total-epochs 24
04

Settle epochs as they pass

Each epoch the provider settles with an availability proof. A valid proof moves one slice (Settled); an absent proof moves nothing and you keep the slice (Missed); the rental closes on term end, lost coverage, or crossing the miss threshold (Closed). Unspent term stays yours until it is earned.

# provider proved availability this epoch
tenzro node compute settle-epoch \
  --rpc https://PROVIDER_RPC \
  --rental-id <rental-id> --proof-valid true

# provider went dark  no value moves
tenzro node compute settle-epoch \
  --rpc https://PROVIDER_RPC \
  --rental-id <rental-id> --proof-valid false
05

Inspect the rental

tenzro node compute rental \
  --rpc https://PROVIDER_RPC \
  --rental-id <rental-id>
06

Withdraw the unspent remainder

When the term ends, whatever was not earned is still in your prepaid balance. Withdraw it back to your on-chain account; the remainder is capped at the available prepaid balance.

tenzro escrow prepaid-balance --renter 0xYOUR_ADDRESS
tenzro escrow prepaid-withdraw \
  --renter 0xYOUR_ADDRESS \
  --amount <remaining-wei>
Related
← All tutorials