Bitcoin Forum

Bitcoin => Electrum => Topic started by: Bitcoin_BOy$ on October 31, 2017, 09:44:36 PM



Title: Lookup any address balance
Post by: Bitcoin_BOy$ on October 31, 2017, 09:44:36 PM
I'm using electrum on linux, and want to lookup any address balance and transaction, without being pointed to my wallet.
I'm using python and asking if this is possible.

Regards,
Bitcoin Boy.


Title: Re: Lookup any address balance
Post by: Bitcoin_BOy$ on November 01, 2017, 01:15:58 AM
Start by reading and experimenting with this:  http://docs.electrum.org/en/latest/cmdline.html?highlight=command%20line (http://docs.electrum.org/en/latest/cmdline.html?highlight=command%20line)
Nothing helpful found.


Title: Re: Lookup any address balance
Post by: HCP on November 01, 2017, 03:34:18 AM
Any reason you're not using a block explorer API like block cypher? https://www.blockcypher.com/dev/bitcoin/

But I guess the Electrum commands you're after are:
getaddressbalance('1bitcoinAddress')
getaddresshistory('1bitcoinAddress')

NOTE: Those are the console commands... When trying to use from the command line, you may not need the ()'s or the ' characters