WalletAppKit with multiple wallets

63 views
Skip to first unread message

gherghe alexandru

unread,
Aug 29, 2017, 3:55:08 AM8/29/17
to bitcoinj, vlad...@outlook.com
Hello,

I recently started studying Java bitcoinj library that I want to integrate it into my current application.

In my application I must handle multiple wallets for multiple users.

From what I read into the documentation, it is recommended to use WalletAppKit for handling wallet creation and the connection to the blockchain.

But I don't know if I can use the same WalletAppKit for storing multiple wallets. 
From what I see, I can add to the peerGroup wallet other wallets:
    kit.peerGroup().addWallet(new Wallet(params));

But I'm not sure weather this is the good approach or not.

Could you give me an advice regarding this matter ?

Best regards,
Alexandru Gherghe

Andreas Schildbach

unread,
Aug 29, 2017, 4:03:05 AM8/29/17
to bitc...@googlegroups.com
How many wallets would you like to manage? The below approach will not
scale very far; bitcoinj is not designed to host wallets en masse.
> --
> 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+u...@googlegroups.com
> <mailto:bitcoinj+u...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.


gherghe alexandru

unread,
Aug 29, 2017, 4:11:14 AM8/29/17
to bitc...@googlegroups.com
I would need to manage at least 200 wallets (it will be enough for now).

The users will not make heavy if their wallets, the most important thing is to create them, store them and listen for incoming transactions.

What other approaches do you think would be better ?

On Tue, 29 Aug 2017 at 11:03, Andreas Schildbach <and...@schildbach.de> wrote:
How many wallets would you like to manage? The below approach will not
scale very far; bitcoinj is not designed to host wallets en masse.


On 08/29/2017 09:55 AM, gherghe alexandru wrote:
> Hello,
>
> I recently started studying Java bitcoinj library that I want to
> integrate it into my current application.
>
> In my application I must handle multiple wallets for multiple users.
>
> From what I read into the documentation, it is recommended to use
> WalletAppKit for handling wallet creation and the connection to the
> blockchain.
>
> But I don't know if I can use the same WalletAppKit for storing multiple
> wallets.
> From what I see, I can add to the peerGroup wallet other wallets:
>     kit.peerGroup().addWallet(new Wallet(params));
>
> But I'm not sure weather this is the good approach or not.
>
> Could you give me an advice regarding this matter ?
>
> Best regards,
> Alexandru Gherghe
>
> --
> 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

> For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to a topic in the Google Groups "bitcoinj" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bitcoinj/1ZjX9EZkLtg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bitcoinj+unsubscribe@googlegroups.com.

Andreas Schildbach

unread,
Aug 31, 2017, 8:26:34 AM8/31/17
to bitc...@googlegroups.com
Depending on usage and on your hardware, it can very well exceed the
limits. Maybe just try it, but be aware it might be a dead end.
> > an email to bitcoinj+u...@googlegroups.com
> <mailto:bitcoinj%2Bunsu...@googlegroups.com>
> > <mailto:bitcoinj+u...@googlegroups.com
> <mailto:bitcoinj%2Bunsu...@googlegroups.com>>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to a topic in
> the Google Groups "bitcoinj" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/bitcoinj/1ZjX9EZkLtg/unsubscribe
> <https://groups.google.com/d/topic/bitcoinj/1ZjX9EZkLtg/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to
> bitcoinj+u...@googlegroups.com
> <mailto:bitcoinj%2Bunsu...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout
> <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 bitcoinj+u...@googlegroups.com
> <mailto:bitcoinj+u...@googlegroups.com>.
Reply all
Reply to author
Forward
0 new messages