Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implemented transaction estimation method #5

Merged
merged 6 commits into from
Feb 6, 2024

Conversation

tipusinghaw
Copy link
Contributor

@tipusinghaw tipusinghaw commented Feb 1, 2024

Summary

What

  • Implemented transaction estimation method

How

  1. Encode transaction detail: Encode transaction details for specific methods and parameters.

  2. Estimated Gas: Estimated gas price based upon encoded transaction

  3. Fee details: Fetched the current fee rate

  4. Transaction fee: Calculated the transaction based on the required data

Why

  • The estimateTxFee method is crucial for providing users with insights into transaction fees before execution.

@tipusinghaw tipusinghaw requested a review from sairanjit February 1, 2024 11:59
@tipusinghaw tipusinghaw self-assigned this Feb 1, 2024
Copy link
Contributor

@sairanjit sairanjit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sairanjit sairanjit merged commit 088154a into main Feb 6, 2024
3 checks passed
@sairanjit sairanjit deleted the POLYNDI-29-tx-fee-estimation branch February 6, 2024 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants