Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitcoin Service #13

Open
NicolasMahe opened this issue Jul 10, 2018 · 1 comment
Open

Bitcoin Service #13

NicolasMahe opened this issue Jul 10, 2018 · 1 comment
Labels
help wanted Extra attention is needed service Related to service

Comments

@NicolasMahe
Copy link
Member

NicolasMahe commented Jul 10, 2018

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 NicolasMahe added service Related to service help wanted Extra attention is needed labels Jul 10, 2018
@NicolasMahe
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed service Related to service
Projects
None yet
Development

No branches or pull requests

1 participant