dfinity / bitcoin-canister

Apache License 2.0
35 stars 9 forks source link

the plan about the implementation of getrawtransaction api #292

Open cymqqqq opened 3 months ago

cymqqqq commented 3 months ago

Hi Team, are there any roadmaps or plans about how to implement the interface of how to get the bitcoin raw transaction?

manudrijvers commented 3 months ago

DFINITY is planning to add an endpoint to the bitcoin canister that allows getting block headers. This should be relatively easy as it already holds these block headers, so hopefully that comes in the near future. Getting full block / tx info from the bitcoin canister would be a lot more work, but I think that as soon as you can securely get the block headers, you can build solutions on top of that that gives full tx / block details securely (by fetching data externally and validating against block headers).

ielashi commented 1 month ago

An endpoint for fetching block headers is currently in the works in #297.