mesg-foundation / awesome

Awesome is a list of Services and Applications developed using MESG by the community
https://mesg.com/
MIT License
18 stars 3 forks source link

Bitcoin Service #13

Open NicolasMahe opened 6 years ago

NicolasMahe commented 6 years ago

This is a proposal of a service. Feel free to contribute by sharing your feedbacks, implementing a part of it and share it here.

Description

We should definitely create a Bitcoin service that can fetch block's data, transaction's data, address's balance. It can also emit events when a new block is mined or when the balance of an address changes. This service could also sign and broadcast transaction.

The service could use a Web API like:

Or the service could start a thin bitcoin client for a better security/verification/trust?

Tasks suggestions

Fetch an address balance

This task should return the balance of an given address. It could also return more information like: total received, total sent, number of transactions. The minimum input should be the address. The minimum output should be the balance of the given address in BTC.

Fetch a block's data

This task should return the data of a given block like difficulty, the transactions' hash, the miner, the merkle root, etc... The minimum input should be the hash of the block.

Fetch a transaction's data

This task should return the data of a given transaction. The minimum input should be the hash of the transaction.

Broadcast a transaction

This task should broadcast an already signed transaction.

Events suggestions

New block

This event should be emitted every time a new block is mined. This event should send the block's data as well.

NicolasMahe commented 6 years ago

A dedicated repo has been created: https://github.com/mesg-foundation/service-bitcoin