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.
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.
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 thebalance
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.