Skip to content

A proof-of-concept canister that returns the input addresses of a given Bitcoin transaction.

License

Notifications You must be signed in to change notification settings

THLO/bitcoin-tx-input-canister

Repository files navigation

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.

About

A proof-of-concept canister that returns the input addresses of a given Bitcoin transaction.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages