Gasless Mode
Last updated
Last updated
Bond provides a gasless mode for projects. When a project operates in gasless mode, users' social activities such as creating a new profile, building relationships through follow and referral on the blockchain, and the resulting gas fees can be covered by the project creators. Additionally, users do not need to directly interact with smart contracts throughout the entire process.
Bond aims to lower the barrier for user participation in social activities and incentivise them to build their own social graph.
EIP-712 presents a standardised method for hashing and signing typed structured data, a cornerstone for enabling gasless transactions within the Bond. This approach replaces the often ambiguous raw hexadecimal blobs encountered in many blockchain interactions with a clear, user-friendly format. The clarity provided by typed data bolsters user confidence, ensuring they fully understand the transactions they're endorsing.
To utilise this method, users obtain the typed data from the Bond API. Access to this data is secured, requiring both the application's API key and the user's signature for validation. After thoroughly reviewing the transaction details, users endorse it by signing the typed data. Post-endorsement, users have two options: they can either directly communicate with the smart contract, bearing any gas fees, or opt for the withSig
methods. Choosing the latter enables the transaction to be authenticated using the user's signature, while the execution and gas fees are overseen by a relay, typically a project's sponsor wallet.
This structure offers users a seamless way to engage in the Web 3.0 landscape without wrestling with gas fee logistics, promoting an efficient and user-centric journey.