Securely providing Biconomy API key for gasless transactions in SmartAccount

To enable gasless transactions capabilities for the SmartAccount, the dappAPIKey variable is required (Gasless Transactions - Biconomy SDK). I have successfully used the API key for Polygon Mumbai that you have provided in my fork of your sdk-examples repository. You can review the code here: sdk-examples/nextjs-biconomy-web3Auth-nextAuth-siwe at master Β· sebpalluel/sdk-examples Β· GitHub.

I have noted that your SDK cannot be used on the server side, and thus, I have ensured that the code using the SDK is only executed on the client side.

However, I am unsure of how to securely provide my own API key. While using an environment variable, such as NEXT_APP_BICONOMY_API_KEY, is an option, it poses a risk of leaking the key to unauthorized users, which could lead to the depletion of funds from the Paymaster I have deployed on your dashboard.

Do you have any suggestions on how I can safely provide my own API key?

Thank you in advance!

Hi @sebpalluel is your project working now after our chat ?

Yes, it’s been merged to main and deployed in production environment:

1 Like