org.bitcoinj.wallet.Wallet.setDescription()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(100)

本文整理了Java中org.bitcoinj.wallet.Wallet.setDescription()方法的一些代码示例,展示了Wallet.setDescription()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Wallet.setDescription()方法的具体详情如下:
包路径:org.bitcoinj.wallet.Wallet
类名称:Wallet
方法名:setDescription

Wallet.setDescription介绍

[英]Set the description of the wallet. This is a Unicode encoding string typically entered by the user as descriptive text for the wallet.
[中]设置钱包的描述。这是一个Unicode编码字符串,通常由用户输入,作为钱包的描述性文本。

代码示例

代码示例来源:origin: greenaddress/GreenBits

@Before
public void setUp() throws Exception {
  BriefLogFormatter.initVerbose();
  Context ctx = new Context(PARAMS);
  myWatchedKey = new ECKey();
  myWallet = new Wallet(PARAMS);
  myKey = new ECKey();
  myKey.setCreationTimeSeconds(123456789L);
  myWallet.importKey(myKey);
  myAddress = myKey.toAddress(PARAMS);
  myWallet = new Wallet(PARAMS);
  myWallet.importKey(myKey);
  mScriptCreationTime = new Date().getTime() / 1000 - 1234;
  myWallet.addWatchedAddress(myWatchedKey.toAddress(PARAMS), mScriptCreationTime);
  myWallet.setDescription(WALLET_DESCRIPTION);
}

代码示例来源:origin: fr.acinq/bitcoinj-core

wallet.setDescription(walletProto.getDescription());

代码示例来源:origin: greenaddress/GreenBits

wallet.setDescription(walletProto.getDescription());

代码示例来源:origin: HashEngineering/dashj

wallet.setDescription(walletProto.getDescription());

代码示例来源:origin: cash.bitcoinj/bitcoinj-core

wallet.setDescription(walletProto.getDescription());

相关文章

微信公众号

最新文章

更多

Wallet类方法