Skip to content

RPC: add get_block_hash and get_block_index - #141

Open
octobocto wants to merge 1 commit into
LayerTwo-Labs:masterfrom
octobocto:2026-08-31-block-index
Open

RPC: add get_block_hash and get_block_index#141
octobocto wants to merge 1 commit into
LayerTwo-Labs:masterfrom
octobocto:2026-08-31-block-index

Conversation

@octobocto

@octobocto octobocto commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

No RPC exposes a deposit or a withdrawal bundle spend, and a block body carries no txid and no size.

get_block_index returns all of it in one call, from a state table written when a block connects and dropped when it disconnects. get_block_hash exposes try_get_block_hash, which only the block explorer called.

@octobocto octobocto closed this Aug 31, 2026
@octobocto octobocto reopened this Aug 31, 2026
@octobocto
octobocto force-pushed the 2026-08-31-block-index branch 4 times, most recently from c16f6d2 to 966eb53 Compare September 5, 2026 06:17
@octobocto
octobocto force-pushed the 2026-08-31-block-index branch from 966eb53 to ae25d4d Compare September 5, 2026 06:20
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.

1 participant