Well, you need to know what outputs you can spend though. The Wallet class does this for you, by receiving the coins first.
But yes, it's true, you can go low-level and directly build and sign a transaction. On 05/04/2018 04:53 AM, Nelson Perez wrote: > Sorry but this is not true. You can perfectly build and sign a valid > transaction without ever needing to touch the Wallet class. I've done this. > > I'm not too familiar with the Wallet class, it seems to be a very > complex class with lots of features. But if all you want is to build a > transaction, produce a valid signature and then serialize it to be able > to broadcast it to the P2P network, all you need are probably these classes: > > Transaction, ECKey, TransactionInput, TransactionOutput, ScriptBuilder and > Script. > > For the signature creation part, you'd want to take a look at any of the the > Transaction#calculateSignature() methods. > > > > On Thursday, May 3, 2018 at 8:10:53 AM UTC-5, Commentors-net wrote: > > Can't skip wallet. It has to be there. > > On Wednesday, May 2, 2018 at 9:10:07 AM UTC+8, Commentors-net wrote: > > I am trying to skip using wallet and sending coin to destination > address. Is there anyway I can skip Wallet class? > Thank you. > > -- > 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 [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
