p2p - How to get detail of given address from blockchain? -


i building blockchain explorer. have own blockchain. in that, want search details of given address blockchain. there no direct api detail of address, how ? in advance.

two options:

option 1:

blockchain.info has open api (rest + json)

https://blockchain.info/it/api/blockchain_api

here how:

https://blockchain.info/it/rawaddr/$bitcoin_address 

bear in mind can acquire info address moved @ least once bitcoin on network. if create new wallet , not transact public address non existent on blockchain (i.e. there's no difference between newly generated address , non existent address). that's "shameful" approach building blockchain explorer using blockchain explorer, see option 2 correct approach:

option 2:

run bitcoin node on own , query stuff on it. may not able run node on normal hosting, need more amazon aws instance or host on own server


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -