Questions tagged [bitcoinj]

Bitcoinj is a Java implementation of the Bitcoin protocol, which allows it to maintain a wallet and send/receive transactions without needing a local copy of Bitcoin Core.

bitcoinj is a implementation of the protocol, which allows it to maintain a wallet and send/receive transactions without needing a local copy of Bitcoin Core. It comes with full documentation and some example apps showing how to use the library.

Features:

  • Connect to the P2P network and download/parse/verify the block chain.
  • Highly optimised lightweight simplified payment verification (SPV) mode. In this mode, only a small part of the block chain is downloaded and verified, making bitcoinj suitable for usage on constrained devices like laptops, smartphones or cheap virtual private servers.
  • SPV wallets can sync with the blockchain in seconds, even from a cold start.
  • Experimental full verification mode, which does the same verification work as Bitcoin Core. In this mode, the unspent transaction output set (UTXO set) is calculated and, thanks to a PostgreSQL store, can be indexed into a database allowing for fast lookup of balance by address.
  • A wallet class with encryption, fee calculation, pluggable coin selection/coin control policies, extensions support and event listeners that let you stay up to date with changes in your balance.
  • Easily implement apps that use Bitcoin's contracts features.
  • Support for micropayment channels that let you set up a multi-signature contract between client and server, and then negotiate over how much value is sent on the channel, allowing rapid and fast micropayments that avoid miner fees.
  • Provides both async and thread-per-connection for network IO, allowing you to choose between scalability and blocking-only features like / proxying.
  • Strong BitcoinStandards support.
  • Command line tool for working with wallet and chain files.
  • Example apps, thorough API documentation and articles explaining the design and layout of the library.

Home Page: https://code.google.com/p/bitcoinj/

GitHub: https://github.com/bitcoinj/bitcoinj

86 questions
-1
votes
1 answer

bitcoinJ get transaction value

I downloaded a lot of blockchain data using https://bitcoin.org, I took some file and I try to analyse it with bitcoinj library. I would like to get information from every transaction: -who send bitcoins, -how much, -who receive bitcoins. I use: …
Hollow.Quincy
  • 547
  • 1
  • 7
  • 14
-1
votes
1 answer

Bitcoinj Is not syncing with Android

My Android app is not syncing to the blockchain, but when I used the bitcoinj libarary on my PC it worked fine. Note: Both programs start with walletAppKit.setBlockingStartup(false).startAsync().awaitRunning() when the kit is complete and the app…
TB_98
  • 99
  • 1
  • 1
  • 5
-1
votes
1 answer

Exception in thread java command error on termux

Hello Please help me to solve the error command in termux when running a java program an error like this occurs when running a java program Exception in thread "main" java.lang.reflect.InvocationTargetException at…
-1
votes
1 answer

BitcoinJ walletTemplate P2WPKH Send payment not working

I have tried to use WalletTemplate sub-project inside bitcoinJ lib. I have tried p2pkh sends and they work fine. But then I tried to make P2WPKH payment but it failed with the following error message org.bitcoinj.core.RejectedTransactionException:…
-1
votes
1 answer

Getting Bitcoin's block number in a specific date and hour?

I would like to know what is the Bitcoin block number in an existing date at an exact hour. for example what is the block number closest to 1.1.2017 at 00:00 UTC. What is the easiest way to do so?
Contentop
  • 1,163
  • 3
  • 20
  • 43
-1
votes
1 answer

org.bitcoinj.core.AddressFormatException: Illegal character 0 at position 0 when converting 66 characters long private key to ECKey

I have a bitcoin private key which is 66 characters long, including a 0x prefix and I need to convert it to a ECKey. I tried this: String private = "0x..."; // 66 characters total DumpedPrivateKey dpk = DumpedPrivateKey.fromBase58(null, wif); ECKey…
Eddy
  • 3,533
  • 13
  • 59
  • 89
-1
votes
2 answers

Transaction on bitcoin address derived from bitcoinjs-lib not showing in Bitcoin core

I have generated the xpub using bip32.org and derieved random address using xpub var hdNode = bitcoinjs.HDNode.fromBase58(derivedPubKey); hdNode.derive(index).pubKey.getAddress().toString(); the Private wif generated via bip32.org imported in the…
-1
votes
1 answer

Bitcoinj - create temporary walllet

I'm new in bitcoin. I need to create something like a temporary bitcoin wallet for the currency exchange app. The wallet should be alive just one exchange transaction or 2 days(if the transaction wouldn't confirmed) and then should be removed. But…
Aventes
  • 569
  • 1
  • 8
  • 20
-1
votes
2 answers

Accessing Bitcoin BlockChain Transactions with Bitcoinj

I'm trying to access the transactions contained in the blocks I have downloaded but none of the blocks have any transactions; the size of every Transaction list returned is zero. Am I conceptually misunderstanding something about the bitcoin…
Connor
  • 29
  • 3
-1
votes
2 answers

Maven 'clean install' fails when maven is upgraded from 3.1.1 to 3.3.3

I'm trying to build the litecoin wallet for android that I cloned from github: https://github.com/Litecoin-Java/bitcoin-wallet I've been banging my head against the wall for days because trying to build this thing constantly causes more and more…
-1
votes
1 answer

Is listunspent scalable and efficient?

Is the listunspent bitcoind api command efficient and scalable? Say I had 5000 daily transactions on my bitcoind and I pinged bitcoind with listunspent every minute to keep my db updated, for example. Any good alternatives if so?
1 2 3 4 5
6