Skip to content
Tenzro
← All tutorials
Tutorial · Inference and training

Rent compute capacity

Rent a provider's GPU for a fixed term with a stream escrow, or sell your own: stake for the compute role and get paid by the hour on the validators' SLA verdicts.

Intermediate20 min

Sometimes you want the machine rather than answers from it: a GPU for a fine-tuning job, CPU cores for a batch pipeline, memory for a large index. On Tenzro Network a rental is a stream escrow from the renter to the provider's bonded address: it pays the provider one hour at a time until it expires. Renter and provider agree the price first, directly or in a task market a harness runs. Each hour, validators probe the provider and freeze an SLA verdict on whether it was available.

This tutorial walks through both sides.

Prerequisites

  • The tenzro CLI and a funded account with a hardware key (a passkey or the machine's TPM or Secure Enclave).
  • For the provider side: a node running with the compute role. See Join the network as a provider.

Provider: 1. Stake for the compute role

bash
tenzro stake bond --role compute --amount 1000000000000000000000 --accelerators datacentre \
  --rpc https://rpc.tenzro.com
tenzro stake info

--accelerators names the classes you pledge: integrated, consumer, workstation or datacentre. The same stake backs every rental, compute claim and storage claim you take on, and the network refuses an obligation it cannot cover.

Renter: 2. Check the market price

Read the observed price feed before you set a budget. Its rows come from validators that routed real calls, cheapest per compute-second first, and can be narrowed to a region or to attested providers:

bash
tenzro provider compute-price-feed --limit 20
tenzro provider compute-price-feed --region DE --attested-only true

Renter: 3. Open the rental

Agree an hourly rate with the provider, then lock the whole term in a stream escrow to its bonded address:

bash
NOW=$(date +%s000)
tenzro escrow create --payee 0xPROVIDER --amount 36000000000000000000 \
  --expires-at $((NOW + 86400000)) --release stream \
  --rate-per-epoch 1500000000000000000 --epoch-ms 3600000 --rpc https://rpc.tenzro.com

The expiry is the end of the rental. Nobody holds the escrow's key: from now on it accrues to the provider hour by hour until it expires.

4. Let the validators decide each hour

Validators send SLA probes to the provider every hour and freeze a verdict. Read one:

bash
tenzro provider sla-verdict --provider-did <PROVIDER_DID> --epoch <HOUR>

The provider draws what has accrued from the escrow, never more.

5. Stop early

Either side can stop the rental. The accrued part goes to the provider and the rest returns to the renter:

bash
tenzro escrow refund <ESCROW_ID> --payer 0xRENTER

Next steps

ExploreJoin the network