Skip to content

Conversation

@ukane-philemon
Copy link
Collaborator

This PR adds fee and feerate fields (in atoms) to apitypes.TrimmedTx and apitypes.Tx. These fields
are now available across the api endpoints listed below:

- GET /tx/{txid}
- GET /tx/{txid}/trimmed
- GET /tx/decoded/{txid}
- POST /txs
- POST /txs/trimmed

The new fields provide precise transaction fee information in atoms for both mempool
and mined transactions.

Closes #470

This PR adds fee and feerate fields (in atoms) to apitypes.TrimmedTx and apitypes.Tx. These fields
are now available across the api endpoints listed below:

```txt
- GET /tx/{txid}
- GET /tx/{txid}/trimmed
- GET /tx/decoded/{txid}
- POST /txs
- POST /txs/trimmed
```
The new fields provide precise transaction fee information in atoms for both mempool
and mined transactions.

Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
Copy link
Member

@dajohi dajohi left a comment

Choose a reason for hiding this comment

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

needs /mempool transactions columns to match /block transactions columns

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.

Show fee in decoded and unconfirmed txs

2 participants