Since Blockchain technology became a major topic and a rapid development has been made to make it more useful for real-world applications. From immutable records and automated smart contracts and applications that use decentralization, the potential of blockchain technology is expanding to new levels very quickly. You are aware that the Gas fee is the primary fuel which powers each transaction that occurs on the blockchain. No matter what the transaction is such as the one between Mr. X sending cryptos to Mr. the Y, or executing an intelligent contract or using an DAPP, the user will need to pay for the Gas fee using crypto tokens. Although it is true that the Gas fee is required to cover the energy used in computing that goes to process transactions and validate transactions but the Gas cost is also the reason for the slow use of decentralized applications particularly among those who aren't familiar dealing with cryptocurrency.
In order to use a dApp users need to first sign up using a cryptocurrency in order to make Gas in exchange for transaction. This means that before they can interact with the dApp users need to make an crypto wallet, then go to an exchange and purchase the cryptocurrency to use it as gas units. Thus, any user looking to use the dApp is faced with many hurdles during the process of onboarding, which affects dApps acceptance on a larger level.
Do you know of a way to lessen the hurdles of onboarding that are faced by dApp users? The answer lies in gas stations. Gas station. A gas station is the one who pays the fee for gas for the user under specific conditions, and also prevents users of the need to buy cryptocurrency tokens ahead of signing up.
What exactly is Gas Station Network (GSN)?
The Gas Station Network is a blockchain-powered , decentralized system that allows gas-free customers (users) to connect with apps without having to pay cryptocurrency tokens for transaction charges. Payment of gas fees on behalf of customers is handled by a Gas station that is the account (a relay server) that is solely there to pay for gas purchases.
GSN usage cases may provide these advantages:
* Gas users can pay with any type of token.
* Customers who do not want to undergo KYC can pay for Gas using Fiat.
* The hurdle-free or subsidised onboarding procedure for new users.
* Improved user-friendliness of a dAPP while not compromising security.
* Users who do not have prior experience with crypto can utilize apps without having cryptocurrency tokens in their wallets to pay to purchase Gas.
* It also alleviates UX discomfort for users who must constantly replenish their crypto balances to cover gas costs even though they have the tokens within their accounts.
What is the architecture of Gas Station?
Let's look at how the The gas station network functions
1. The Client sends Meta Transactions for the Relay Server
In the GSN architecture, the user or user does not have to sign the blockchain transaction. Instead the user signs an email with the details about the transaction , and then sends it to an intermediary server. This is known as signing and sending meta-transactions in the direction of relay servers. The relay server validates the information of the transaction and then pays for the gas. Since the client does not accept a blockchain transaction therefore, he is not required to pay for the Gas cost.
2. Relay servers
Each dApp can set up its relay server and offer the service at no cost to its customers. If the dApp does not have its own relay server, its customers are able to route their meta transactions to Third-party relay servers.
3. Paymaster refunds relay server to pay gas costs
Paymaster holds a pool of crypto tokens that are stored in RelayHub. There is Paymaster contracts that include all access control and refunding mechanisms of the GSN. These contracts are able to implement any business-related logic to determine whether to accept or deny meta transactions. The gas tank of Paymaster reimburses the relay server's gas cost whenever the contract of Paymaster accepts a meta-transaction.
4. Trusted forwarder contract
To ensure the security of the GSN The transactions are promoted by the Trusted Forwarder Contract. The contract is responsible for confirming that the nonce and signature of the recipient (the customer). Meta transactions alert the recipients to trust only Trustworthy Forwarder Agreements.
5. Relay hub helps establish trustful connections between participants
Three participants are part of the gas station network: The client (sender) and the relay server along with the Paymaster. It is an intermediary between the three. RelyHub connects all of the participants without the need to trust or know one another. The dApps developers are able to integrate with the GSN network without knowing the workings of Relayhub.
RelayHub RelayHub assists in these services:
* Clients are able to find the most reliable relay servers from third parties in the event that relay servers from their own dApps go down.
* It blocks the third party relay server from blocking transactions.
* It guarantees that the Paymasters repay the cost of gas and transaction charges to relay servers.
To read more - https://www.leewayhertz.com/develop-gas-station/
Comments
Post a Comment