Work on SPV mode.

Q1:  How to get balance when I import a new private key which have some btc?

Wallet wallet = new Wallet(params);
wallet.importKey(newKeys);

wallet.getBalance(); // always 0 btc

Q2: How to send btc without wallet?
I have a private key whiche have some btc, and how to create a transaction 
and broadcast?

-- 
You received this message because you are subscribed to the Google Groups 
"bitcoinj" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bitcoinj+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to