Session Keys
Last updated
Last updated
Session keys require that you whitelist specific contracts and calls with Argent on mainnet. On Sepolia testnet, there is no whitelist Please reach out to ecosystem@argent.xyz
Solving UX issues in the crypto space have always been the main focus of Argent. With session keys, a user can perform several actions in a dapp without having to manually sign each transactions. In fact, the user authorizes the app the act on his behalf for a limited period of time and within certain constraints (only a few function calls for instance).
A great use case is gaming. Session keys enhance the user experience of games by allowing uninterrupted gameplay. Users can authorize dapps to sign required transactions on their behalf, creating a more immersive gaming experience. To experience session keys firsthand, play Influence.
We could also imagine new payment possibilities. Dapps could implement new payment models such as recurring payments, dollar-cost-averaging, subscriptions and more.
The DeFi space could also benefit from Session keys. Apps such as DEXs can achieve the ease and smoothness of CEXs without their many drawbacks. Potential uses include:
Automatic claim of DeFi rewards
Automatic rebalancing of liquidity pools
User safety protections in lending applications, such as the automatic closing of positions approaching liquidation
💡 You can see sessions in action by playing Influence with web wallet. Session keys are also powering the Argent card and the Argent Telegram wallet.
Sessions maintain security through multiple features:
User-defined permissions specify exactly what actions are allowed
Time-bounded sessions automatically expire
On-chain revocation is always possible and so independently from the Argent backend
Argent's backend co-signs each transaction
Sessions become inactive if backend verification is unavailable
Initializing a session.
Use a session
The Dapp generates a public/private key pair on its side. With this key pair, the dapp can cosign transactions with Argent Backend on behalf of the user. Of course, the dapp can only send transactions that the user specifically allowed. No surprises are possible!
To use session keys, users’ accounts must have enabled Argent as a co-signer. This is the case for Argent X Smart Accounts, Argent Mobile and Web Wallet.
The table below shows which accounts are compatible with session keys:
Testnet
✖️
✅
✅ (contact us)
✖️
Mainnet
✖️
✅
✅
✅