I'm pretty new to Solana Blockchain development, and we are working on a dApp solution where users can process multiple transactions at once. We came across this article from Squad which has mentioned that we can use session keys to pre-approve transactions. I went through several sites to check how to implement this, but couldn't find any solution. Does anyone know how we can allow users to pre-approve transactions using session keys as mentioned in the article?

Squads Account Abstraction Use Cases

1 Answer 1


Session keys is a feature that is currently maintained by magic block:


You can setup and example project with session keys using the games preset:

npx create-solana-game gameName 

It creates and anchor program and a js next js client using session keys.

Here is the code in github for the example.


  • Thank you so much for the information. will check this out.
    – JPabs
    Commented Apr 9 at 10:27
  • another question, it seems like Gum is not functioning anymore. is @magicblock-labs/gum-react-sdk still valid?
    – JPabs
    Commented Apr 9 at 10:34
  • The gum sdk is the old one i think. They deployed a new program. The old one is not compatible with the new unity sdk version anymore. You can ask them in their discord maybe: discord.gg/rqBxPGSB
    – Jonas H.
    Commented Apr 9 at 12:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.