Polygon Gasless Mint Technical Breakdown
How 0xPass, Biconomy, and Decent came together to create a gasless mint on Polygon
Here’s a high-level breakdown on how we build the gasless mint on Polygon. Hopefully this helps you build similar projects as well!
If you’d rather read this as a tweet, check out our post on “X” here :)
For login method aggregation, authentication, and user management
0xPass handled the login flow that end-users were exposed to. We opened up multiple login methods (web3 and web2) and leveraged our KMS connectors to Magic to allow for web2 logins. At the end of the login flow, every user had an EOA tied to them (either one they brought themselves or one created through 0xPass).
If your dapp stores any user context, 0xPass also helps by authenticating wallets and providing a single user ID that all login methods point to, making user management a breeze.
For account abstraction infra - smart contract wallets, paymasters, and bundlers
We then built a connector to Biconomy’s smart contract wallet tying any created EOAs to smart wallets under the hood.
These smart wallets then leveraged Biconomy’s AA infra - the paymasters and bundlers - to allow for gas sponsorships.
At the end of this connection, every user now had a smart wallet which in turn was tied to an EOA that acted as its signer.
For NFT infrastructure - NFT smart contracts and one-click mint/checkouts powered by “The Box” SDK
Once the smart wallet was created, we leveraged Decent’s infrastructure to setup the NFT contract and build the checkout experience.
This meant that any mints now went into the user’s associated smart wallet directly and not their EOA.
Here’s an overview of all the components and the flow!
Build It Yourself!
Want to build a similar project yourself? We’ve open sourced the GitHub repo so you can get started when and how you want!
Community Sneak Peak
I can’t wait to share what we’ve been cooking up at 0xPass with all of you very very soon :D
For now, I’ll leave you with this meme -