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

tx api: add address, type, value to vin. add fee. #434

Merged
merged 1 commit into from May 18, 2022

Conversation

pointbiz
Copy link
Contributor

@pointbiz pointbiz commented Apr 8, 2022

This pull requests adds the address, value and type information to vin for a transaction api results. This way the caller does not have to make multiple calls to get the vin information to get addresses and calculate the fee. I have calculated the fee and added it to the results as well.

This scenario came up when attempting to consume the tx API in my bitcoin-reports.com project.

@dykstranet
Copy link

I tested this and, indeed it gives trx value and fee value that I needed. Would be nice to see this merged. Thanks for the help!

routes/apiRouter.js Outdated Show resolved Hide resolved
@pointbiz
Copy link
Contributor Author

@janoside
Would you have time to consider this PR for the next release?

@janoside janoside merged commit e77c38d into janoside:master May 18, 2022
janoside added a commit that referenced this pull request May 18, 2022
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.

None yet

4 participants