Learn how to implement email logins and sponsored transactions with Privy & Pimlico.
Embedded wallets are self-custodial wallets provisioned by Privy itself for a wallet experience that is directly embedded in your application. Embedded wallets do not require a separate wallet client, like a browser extension or a mobile app, and can be accessed directly from your product. These are primarily designed for users of your app who may not already have an external wallet, or don’t want to connect their external wallet. Smart wallets are programmable, onchain accounts that incorporate the features of account abstraction. With just a few lines of code, you can create smart wallets for your users to sponsor gas payments, send batched transactions, and more.We will be implementing both using Privy + Pimlico.
.env
file and add your App ID:Story Aeneid Testnet
1315
https://aeneid.storyrpc.io
PrivyProvider
and SmartWalletsProvider
. In a providers.tsx
(or whatever you want to call it) file, add the following code:
layout.tsx
like so:
encodedTxData
, which we can use to pass into Privy’s smart wallet. You can see which functions support this in the SDK Reference.