Starcoin Easy Gas : More Flexible,More Easy

Why Starcoin Innovates

Starcoin Easy Gas

  • Prologue: Calculates the Gas fee required by the exchange and checks if the user has enough funds to pay.
  • Eprologue: After the transaction is executed, the Gas Fee Token specified by the user is converted to STC and stored in the queue Gas Fee payment queue for future payment to the miner.
  • PriceOracle: Oracle service for obtaining the price of the Token. eprologue and eprologue will both rely on it to obtain the price to check and calculate if there is enough money to pay the Gas fee.
  • Dao&& GasOracleProposalPlugin: Used to resolve which Token can become a Gas Token and who can update the price of the gas price.

Starcoin Easy Gas example

starcoin% account transfer --gas-token 0x1::DummyToken::DummyToken --receiver 0x2c58cace2f326c8f833aa4d072ebebc3 -v 100

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Starcoin

Starcoin

312 Followers

Starcoin is a proof-of-work blockchain that enables secure smart contracts based on Move to power services in Web 3.0