Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 733 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 733 Bytes

bitcoin-tx-input-canister

This is a simple, proof-of-concept canister that returns the input addresses of a given Bitcoin transaction, making use of HTTPS outcalls.

It exposes the following endpoint:

type tx_id = text;
type bitcoin_address = text;

"get_inputs": (tx_id) -> (vec bitcoin_address);

Caution

This is merely a proof of concept. The code is not ready for use in production. In particular, the canister depends on the availability of the Btcscan.org HTTP API, i.e., there is a single point of failure. Moreover, the error handling is insufficient for use in production systems.