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.Using viem tempoActions (Tempo transaction type)
Using viem tempoActions (Tempo transaction type)
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.Using viem tempoActions (EVM transaction type)
Using viem tempoActions (EVM transaction type)
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.Broadcasting with optional gas sponsorship via Privy directly (EVM transaction type)
Broadcasting with optional gas sponsorship via Privy directly (EVM transaction type)
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.
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

