Skip to main content
Tempo is a low-cost, high-throughput EVM-compatible blockchain optimized for payments. Just like with other chains, your app can use Privy to create wallets for users to send and receive payments on Tempo. This guide demonstrates how to create an embedded wallet and send transactions on Tempo.

Prerequisites

Before implementing Tempo support, ensure the following:

1. Create an embedded wallet

Privy embedded wallets support Tempo by default. To create an embedded wallet for a user on Tempo, use the same “Ethereum” chain_type as any other EVM-compatible chain. This recipe includes examples of creating an EVM-compatible wallet in React or Node. See Create a wallet for more guidance across all SDKs and the REST API. Once the wallet is created, the address can be used to receive payments on Tempo.

2. Send a transaction on Tempo

To send transactions on Tempo mainnet, specify the CAIP-2 identifier eip155:4217 when making transaction requests. This ensures transactions are routed to the Tempo network.
To send transactions on Tempo testnet, specify the CAIP-2 identifier eip155:42431.
There are several ways to transfer tokens on Tempo:
This approach sends native Tempo transactions (type 0x76), unlocking Tempo-specific features like per-transaction fee token specification. It uses a custom viem account that delegates signing to Privy’s raw secp256k1 signer.
This approach uses Privy’s createViemAccount helper with viem’s tempoActions for a simpler setup. Transactions are sent as standard EIP-1559 transactions. Tempo-specific features like feeToken are not available with this method.
This approach uses Privy’s sendTransaction API directly with manual ABI encoding. This supports Privy’s native gas sponsorship via the sponsor parameter, allowing your application to pay transaction fees on behalf of users.To enable gas sponsorship, configure it in your Privy Dashboard and add the sponsor parameter when sending transactions.
Gas sponsorship is configured per-chain in the Privy Dashboard. Ensure Tempo is enabled in your sponsorship settings before using this feature.

Send a transaction

Complete guide to sending transactions with Privy

Gas sponsorship overview

Learn about Privy’s gas sponsorship engine

Balance webhooks

Subscribe to deposit and withdrawal events.

Create a wallet

Learn more about creating embedded wallets