Skip to content

Enable Zeth tx caching and GWEI target in Wallet CLI #406

@AntoineRondelet

Description

@AntoineRondelet

It can be helpful for users to generate a Zeth transaction payload, cache it locally (can be persisted on file for ease at first), and fire the actual transaction later. In fact, this would allow to target specific gas price to fire the transaction on the network.
As we know that the number of txs in the tx pool varies (demand for block space varies), the cost of transacting on the target system isn't always the same. Gas price fluctuates (even after EIP1559 on Eth. mainnet) and thus it may be helpful for users to generate the zeth tx payload (the commitments, zkp etc), cache it locally, and fire the tx when gas price drops. This can also be automated by adding some logic in the wallet, e.g. zeth mix --out <your-options> --gwei 120.
Th tx payload can now be generated (without fireing the tx by using the --dry-run flag). We then need to persist this into a file (or cache it) and fire it again on the network either on user input (in which case we need to add a list of ready to be submitted transaction to the wallet state) or automatically when the gas price follows below a target threshold (i.e. see the --gwei flag above). This can be helpful for users who want to pay a target gas price while willing to minimize the time their transactions spend in the transaction pool, all without needing to monitor transaction pools and services like: https://www.gasnow.org/ (soon to be deprecated) or https://ethgasstation.info/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestusabilityTask related to the UX of the projectwalletTask related to the wallet implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions