stacks-network/stacks-core

Add additional GET RPC endpoints

Open

#4.358 geöffnet am 8. Feb. 2024

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Rust (758 Forks)auto 404
enhancementgood first issue

Repository-Metriken

Stars
 (3.063 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Problem: the stacks blockchain RPC interface for GET requests is limited compared the data exposed in bitcoin/etc and the rich data in Hiro's API.

With recent changes to the HTTP interface (https://github.com/stacks-network/stacks-core/tree/master/stackslib/src/net/api), it should be much easier to add more RPC endpoints to expose some generic data. Initially, i'm thinking something like:

  • block data
  • tx data
  • address info

some comparable bitcoin-cli rpc commands: getblockhash getblock getrawtransaction gettxout

for the data exposed, i don't think it should be a requirement to be as detailed as the Hiro API - but i think should be enough to understand what is in a block, or what a tx is doing (as well as retrieving the block hash by a block height).

references: bitcoin RPC:

Hiro API:

Contributor Guide