Skip to content

thinkhero/bitcoin-adapter

This branch is up to date with blocktree/bitcoin-adapter:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 21, 2021
f324688 · Nov 21, 2021

History

53 Commits
Nov 21, 2021
Oct 19, 2020
Jun 27, 2019
Apr 10, 2019
Jun 21, 2019
Sep 1, 2020
Aug 10, 2020
Apr 10, 2019

Repository files navigation

bitcoin-adapter

bitcoin-adapter适配了openwallet.AssetsAdapter接口,给应用提供了底层的区块链协议支持。

项目依赖库

如何测试

openwtester包下的测试用例已经集成了openwallet钱包体系,创建conf文件,新建BTC.ini文件,编辑如下内容:

# RPC Server Type,0: CoreWallet RPC; 1: Explorer API
rpcServerType = 1
# node api url, if RPC Server Type = 0, use bitcoin core full node
;serverAPI = "http://127.0.0.1:8333/"
# node api url, if RPC Server Type = 1, use bitbay insight-api
serverAPI = "http://127.0.0.1::20003/insight-api/"
# RPC Authentication Username
rpcUser = "user"
# RPC Authentication Password
rpcPassword = "password"
# Is network test?
isTestNet = true
# Omni Core RPC API
omniCoreAPI = "http://127.0.0.1:10016"
# Omni Core RPC Authentication Username
omniRPCUser = "user"
# Omni Core RPC Authentication Password
omniRPCPassword = "password"
# Omni token transfer minimum cost
omniTransferCost = "0.00000546"
# support omnicore
omniSupport = true
# support segWit
supportSegWit = true
# minimum transaction fees
minFees = "0.00001"
# Cache data file directory, default = "", current directory: ./data
dataDir = ""

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%