万一你不确定我说的图书馆..。单击此处
基本上,我试图创建一个在线钱包服务,但我很难理解新地址是如何生成的,以便在我的钱包内使用。
我想要在命令下为我的钱包创建新地址,这怎么可能使用这个库呢?这些函数似乎都没有返回任何类型的地址供使用。
发布于 2016-08-09 16:57:29
对于这个特定的库,并假设您的设置工作正常,您可以使用GetNewAddress
IBitcoinService BitcoinService = new BitcoinService();
String address = BitcoinService.GetNewAddress();发布于 2016-07-25 00:21:23
链接到的库/包装器需要运行一个完整的节点,并通过内置的JSON调用进行通信。您是否在您的系统上运行完整的同步版本的比特币?
如果您已经有一个正在运行,您应该只需设置您的bitcoin.conf文件设置与RPC用户和--。
rpcuser=someusername
rpcpassword=somepassword
daemon=1
keypool=10000
prune=600 //pruning is optional but will take up a lot less disk space
maxuploadtarget=20 //optional limits total upload bandwidth
maxconnections=16 //optional limits total amount of peers that can connect我不知道JSON,但我假设包装器中的某个地方允许您向C#发送JSON命令。
就像这样:(再说一次,我不知道C# -这只是猜测一下它可能是什么样子)
BitcoinRPC b = new BitcoinRPC(new Uri("http://127.0.0.1:8332"), new NetworkCredential("rpcuser", "rpcpass"));一旦连接,您只需发送JSON命令。针对RPC命令的比特币开发人员参考(https://bitcoin.org/en/developer-reference#wallet-rpcs)
var newAddy = b.getNewAddress("label");https://stackoverflow.com/questions/38556418
复制相似问题