Tutorial — Payments
Settle on Tempo
Tempo is the stablecoin settlement chain that pairs with the MPP wire format. Tenzro participates directly through
TempoParticipant, signing EIP-155 transactions and submitting them viaeth_sendRawTransaction.- Level
- Intermediate
- Time
- ~15 min
- Prerequisites
- Tempo RPC URL, funded EVM-style wallet
- Stack
- Rust · TypeScript
01
Configure the Tempo participant
Provide the Tempo RPC and the wallet bound to your Tenzro identity.
use tenzro_payments::tempo::{TempoConfig, TempoParticipant};
let cfg = TempoConfig::new("https://rpc.tempo.xyz", 91110);
let p = TempoParticipant::with_wallet(cfg, wallet)?;02
Check the balance
The participant exposes a typed Tip20 balance reader for the bound address.
let bal = p.balance_of(&p.address(), "USDT").await?;
println!("USDT balance: {bal}");03
Sign and submit a transfer
The participant builds the RLP, signs Keccak-256, and submits via eth_sendRawTransaction.
let tx = p.build_transfer("USDT", &recipient, "12.50").await?;
let hash = p.send(tx).await?;04
Reconcile against Tenzro
Tenzro records the Tempo settlement reference; you can audit it like any other settlement.
const entry = await client.settlement.getSettlement(settlementId);
console.log(entry);Related