Gas System

If we continue to rely on the traditional gas system, which requires users to have a reserve of funds in their wallets for transactions, on-chain social gaming will not be feasible. This limitation would force developers to revert to creating hybrid games that operate on centralized servers and only use the blockchain for payment processing, which is not our desired outcome. Therefore, we have designed an innovative gas system based on a domain subscription model. For underlying reason, please refer to the "Gas System" page.

Game Sponsored Gas Fee

Game developers can sponsor the gas fees for transactions made to their smart contracts. Developers have the option to set the following parameters for gas sponsorship:

  • Contract address to sponsor

  • Total gas credit budget

  • Gas credit allowance per user

  • Gas credit for Farcaster users

  • Gas credit for domain holders

Farcaster Frame Gas Credit

Transactions from the Farcaster frame receive sponsored gas credits to promote the adoption of on-chain social gaming. Since Farcaster users must purchase Farcaster storage, this gas credit system is not exploitable, and the amount of free gas credit is proportional to the storage units purchased. However, the amount will not be as substantial as that obtained through our domain subscription, to encourage users to subscribe to our domain and thus generate annual revenue for Hokum.

Domain Subscription as a Gas System

For transactions involving unsponsored smart contracts outside of the Farcaster frame, or when the prepaid gas is exceeded, users must register their domain name and pay an annual fee to obtain gas credits. If the gas credits purchased are depleted, an additional domain fee is required. However, it is rare for gas credits from a domain subscription to be exhausted since our model is designed to provide enough credits for a typical user to play games for a year.

The gas purchased with the domain name will be shared among all wallets associated with that domain name, allowing intermediate keys to execute game transactions without needing upfront gas in the wallet, leading to an overall improvement in the gaming experience.

Last updated