What We’re Building
By the end of this tutorial, you’ll have a backend service that can:- Use Para sessions for secure authentication
- Execute batched transactions without holding ETH
- Handle operations across multiple chains
How it works: Users authenticate with Para on the frontend and receive a session token. Your backend uses this token to sign transactions on the user’s behalf, routing them through Biconomy’s MEE for gas abstraction.
Step 1: Install Dependencies
@getpara/server-sdk— Para’s server SDK for session management@getpara/viem-v2-integration— Adapter to use Para with viem@biconomy/abstractjs— Biconomy’s SDK for smart accounts and MEEviem— Ethereum library for building transactions
Step 2: Set Up Environment Variables
Create a.env file:
Step 3: Create the Request Handler
Set up an Express handler that receives the user’s session:Step 4: Create Para Account
Create a viem-compatible account from the Para session:What’s happening here? Para already has the user’s key material from their session. The adapter lets viem use Para for signing operations.
Step 5: Set Up Custom Signing
Para requires custom signing methods for EIP-7702:Step 6: Create Wallet Client
Create a wallet client for signing transactions:Step 7: Sign EIP-7702 Authorization
Sign the authorization that upgrades the EOA to a smart account:What is chainId: 0? Setting chainId to 0 means the authorization works on any chain. This is useful for cross-chain applications where you want one authorization to enable transactions everywhere.
Step 8: Create the Smart Account
Create a Nexus account using the EOA address for EIP-7702 mode:Step 9: Create MEE Client and Execute
Create the MEE client and execute your transaction:Step 10: Wait for Confirmation
Complete Example
Here’s a full Express.js handler:Gas Abstraction Options
Pay with ERC-20 Token
Sponsor Gas Entirely
Configure sponsorship in your Biconomy dashboard to cover all gas costs for users.Cross-Chain Execution
Add multiple chains and execute across them:Key Takeaways
- Para provides sessions — Users authenticate once, then your backend can sign on their behalf
- EIP-7702 adds smart features — The user’s address gains smart account capabilities
- MEE handles execution — Gas abstraction and cross-chain routing are automatic
- Server-side control — Your backend manages transaction flow securely