Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List transactions from given address in bitcoind

Is there anyway to list all transactions from given address by using API RPC to bitcoind? Actually, I'm using btcd and most non-wallet functions are the same with bitcoind, but I can't find any methods to do that.

like image 817
Tam Vo Avatar asked Jan 29 '15 01:01

Tam Vo


People also ask

How do I check my BTC transaction by address?

Bitcoin's blockchain can be accessed at https://blockchain.info/. Here, you'll be able to enter your Bitcoin TxID, or your exchange or wallet address, to track your transactions. You will see a summary of information about the transaction, including the number of confirmations it has.

Can you track someone by their Bitcoin address?

A Bitcoin address by itself is not traceable, as there is no identifying information stored directly on the blockchain. But there are ways that the identity of an individual can be linked to specific wallets they own and transactions they have made. This is why Bitcoin is not anonymous — it's pseudonymous.

Can you trace transactions on Bitcoin?

Bitcoin transactions are traceable because Bitcoin's blockchain is completely transparent and every transaction is publicly stored on a distributed ledger.

How do I check my BTC transaction history?

Go to https://live.blockcypher.com/ or https://www.blockchain.com/explorer and type or paste the transaction ID into the search field. You can see how many confirmations your transaction has.


2 Answers

Due to the way the transactions are indexed you cannot perform this kind of query with Bitcoind, I'm assuming the case is the same for btcd.

If you would like to get this information, you have a few options:

  • Parse the Blockchain yourself and store the data in a new, more heavily-indexed DB
  • Use a 3rd party service like Chain.com or Blockchain.info
  • Run a different type of node. Toshi is an open source Ruby implementation of Bitcoin by Coinbase. The DB of this node allows for richer queries, but requires an order of magnitude more storage.

Edit: Toshi is no longer maintained and chain.com no longer provides this API afaik.

like image 81
leishman Avatar answered Nov 02 '22 10:11

leishman


btcd recently merged in a feature that creates an address index that can be used to query for specific address

https://github.com/btcsuite/btcd/issues/190

To enable this feature, run btcd with the addrindex flag, like so -

btcd --addrindex

Transactions can queried over RPC using the new searchrawtransactions rpc call. It takes a while to create the address index, so wait until it has completed indexing to be able to use this index

like image 43
Manan Avatar answered Nov 02 '22 09:11

Manan