Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion src/pages/guide/payments/send-parallel-transactions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ Submit multiple transactions in parallel using Tempo's flexible nonce system. Ch

To use expiring nonces, set `nonceKey` to `UINT256_MAX` (`0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff`). This signals to the protocol that the transaction uses time-based replay protection instead of sequential nonces.

```typescript
:::code-group

```typescript [TypeScript]
const tx = await Actions.token.transfer(config, {
amount: parseUnits('100', 6),
to: recipient,
Expand All @@ -30,6 +32,18 @@ const tx = await Actions.token.transfer(config, {
})
```

```rust [Rust]
let pending = provider
.send_transaction(TempoTransactionRequest {
nonce_key: Some(U256::MAX),
valid_before: Some(SystemTime::now().duration_since(UNIX_EPOCH).as_secs() + 30),
..Default::default(),
})
.await?;
```

:::code-group

Benefits:
- No nonce tracking required
- Automatic replay protection via circular buffer
Expand Down