Join the presale
X
Join
2. Meta-Transactions
Technical Implementation

2. Meta-Transactions

Meta-transactions are a cornerstone feature in Shaaare's "Blockchain Abstractions" technology stack, designed to simplify user interactions with the blockchain while maintaining a high level of security. The mechanism behind meta-transactions allows users to execute transactions without bearing the burden of gas fees, effectively making the platform more user-friendly and accessible.

Account Absraction

At the heart of meta-transactions lies the concept of delegating transaction execution to a 'relayer wallet.' This way, the relayer wallet is responsible for covering the gas fees involved in carrying out the transaction. This delegation provides an extra layer of abstraction, freeing users from some complexities associated with blockchain transactions.

However, the question arises: how can Shaaare facilitate such transactions while maintaining the highest level of security, particularly when we use noncustodial wallets to protect our users' funds? The answer is straightforward but ingenious. Shaaare does not possess the private keys of its users; hence, the process has been structured to move funds only with explicit user authorization.

When a user wants to engage in a transaction involving XKO Tokens, they first sign a specific transaction through the "SignMessage" function available in the XKO Smart Contract. This process generates a unique signature that could only be provided by the specific user, thereby confirming their consent for the transaction.

Once signed, this transaction is sent to the relayer wallet, which then showcases it to the "MetaTransactionSigns" function on the blockchain. This function reviews the incoming transaction, validates the signature, and, if all criteria are met, executes the transaction. Since the relayer wallet initiated the transaction on the blockchain, it absorbs the gas fees, providing a seamless and cost-effective experience for the user.

MetaTransaction Signs Diagram

Meta-transactions in Shaaare serve as an efficient and secure way to enhance user experience, by allowing transactions to be conducted without the users having to worry about the technicalities and costs commonly associated with blockchain operations.