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

[Feature]: Add support for estimating fees for sBTC contract calls #233

Open
1 task
djordon opened this issue Jun 5, 2024 · 0 comments
Open
1 task

[Feature]: Add support for estimating fees for sBTC contract calls #233

djordon opened this issue Jun 5, 2024 · 0 comments
Labels
sbtc bootstrap signer The sBTC Bootstrap Signer.

Comments

@djordon
Copy link
Contributor

djordon commented Jun 5, 2024

Feature - Add support for estimating fees for sBTC contract calls

1. Description

1.1 Context & Purpose

When broadcasting contract calls, we need to make sure that we submit the transaction with enough fees for the contract call to be confirmed promptly. Add some functions that call a stacks nodes or the stacks/Hiro API for fee estimates.

Data sources

  1. The stacks mode might have the /v2/fees/transaction endpoint (from docs.stacks.co, docs.hiro.so, and the code referencing the stacks-core node API but missing from the rpc-endpoints.md file in the repo stacks-core repo).
  2. The stacks node has the /v2/fees/transfer endpoint.

2. Technical Details:

2.1 Acceptance Criteria:

  • We can get an relatively accurate estimate of the contract call fees.

3. Related Issues and Pull Requests (optional):

This is part of #44 and recently came up during this discussion #228 (comment).

@djordon djordon added the sbtc bootstrap signer The sBTC Bootstrap Signer. label Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sbtc bootstrap signer The sBTC Bootstrap Signer.
Projects
None yet
Development

No branches or pull requests

1 participant