Prerequisites
Before implementing Tempo support, ensure the following:- A Privy app configured with your application
- Basic familiarity with sending transactions
- (Optional) Gas sponsorship enabled to sponsor transaction fees
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 identifiereip155: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.viem wallet clientand Privy SDK together, or just Privy directly.
Using viem wallet client and Privy SDK together
Here is an example of transferring a stablecoin with a memo:Using Privy directly
Privy supports gas sponsorship on Tempo, allowing your application to pay transaction fees on behalf of users. This eliminates the need for users to hold native tokens for gas. If you want to use Privy’s native gas sponsorship feature, you should use Privy directly for broadcasting. To enable gas sponsorship for Tempo transactions, configure sponsorship in your Privy Dashboard and add thesponsor 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.
Related resources
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

