Skip to content

add index_block_hash and tenure_height to transaction responses #2359

@rafaelcr

Description

@rafaelcr

Transaction responses such as https://api.hiro.so/extended/v1/tx/0x02dc734047db7989b75b3c732f2f74a2682f36688d205493c35bb7db902a6b74 do not currently return values for index_block_hash or tenure_height. These values should be added to all responses that return a transaction resource.

index_block_hash is a column in the txs table, but tenure_height is not. In that case, the tenure height could be pulled with a simple subquery like (SELECT tenure_height FROM blocks WHERE index_block_hash = txs.index_block_hash) AS tenure_height

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions