Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何通过助记符恢复钱包? #2

Open
Freedomhxb opened this issue Apr 18, 2019 · 2 comments
Open

如何通过助记符恢复钱包? #2

Freedomhxb opened this issue Apr 18, 2019 · 2 comments

Comments

@Freedomhxb
Copy link

老哥打扰下,我想问下如何通过助记符恢复钱包?谢谢

@parcool
Copy link

parcool commented Nov 6, 2019

@Freedomhxb 通过助记词作为DeterministicSeed的参数,然后再通过构造方法就能创建钱包了

val wallet = Wallet(
            C.NETWORK_PARAMETERS,
            KeyChainGroup.builder(C.NETWORK_PARAMETERS).fromSeed(ds, C.DEFAULT_OUTPUT_SCRIPT_TYPE).build()
        )

@parcool
Copy link

parcool commented Nov 6, 2019

我也有好多问题想问,找不到资料时间又紧!难搞咯~比如:
1、查询余额只能通过wallet.addCoinsReceivedEventListener(btcWalletListener)之类的回调来知道吗?太慢了,我测试了一下,首先要下载头结点,就算下载完了也经常要等几分钟-十几分钟才能回调到,没搞懂为什么别人的钱包(比如火币钱包)就能瞬间获取余额。
2、除了ETH、BTC的钱包,另外那些不是基于ETH发布的代币怎么搞?甚至连分类我好想都还没搞清(目前只知道EOS是另一个分类,像分叉的那些又怎么弄)。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants