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

[FR] - Add a command to obtain the reference script size (in bytes) of a transaction #667

Closed
dnadales opened this issue Mar 21, 2024 · 1 comment · Fixed by #672
Closed
Assignees

Comments

@dnadales
Copy link
Member

Internal/External

Internal

Area

Other

Describe the feature you'd like

Ledger now requires the reference script sizes to calculate the transaction minimum fee. To obtain the minimum script size, we need the entire UTXO set, which requires querying the node. This means that to implement the calculate-min-fee without it needing to communicate with the node, we need to pass the reference script size in bytes as an extra parameter. Thus, we need a new CLI command that queries the nodes to obtain this information.

For reference, here is how the reference script size of a transaction is calculated in the ledger.

@smelc
Copy link
Contributor

smelc commented Mar 21, 2024

cc @CarlosLopezDeLara

@carbolymer carbolymer linked a pull request Mar 22, 2024 that will close this issue
3 tasks
github-merge-queue bot pushed a commit that referenced this issue Apr 4, 2024
…-size-query

#667 Add ref-script-size query command
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 a pull request may close this issue.

4 participants