Skip to content

Releases: blocktree/beam-adapter

Fix bugs

10 Aug 05:45
Compare
Choose a tag to compare

停止openw-beam运行,替换新文件,重新执行:
./openw-beam -c=server.ini walletserver

Support Beam 3.0

31 Jul 08:23
Compare
Choose a tag to compare

API changes in 3.0 version:

  1. In create_address API, "lifetime" ( in hours) was changed to "expiration", where expiration can be expired/never/24h or omitted (24h is default value)

  2. 'height' was removed from response to get_utxo method

  3. Minimum fee is set to 100 Groth


配置文件需要调整最低手续费100 Groth = 0.000001 BEAM

# Fix Transaction Fess, 最低手续费
fixfees = "0.000001"

openw-beam

17 Jun 12:18
Compare
Choose a tag to compare

安装beam全节点

beam钱包安装成功后通过下面命令检查rpc接口是否正常

# check wallet api
curl -d '{"jsonrpc":"2.0","id":1,"method":"wallet_status"}' -H "Content-Type: application/json" -X POST http://127.0.0.1:20021/api/wallet

# check explorer api
curl http://127.0.0.1:20022/status

用户充值钱包部署

上传openw-beam到生产环境主机,在openw-beam目录下,创建server.ini文件。样例如下:

# Beam Wallet RPC API, beam钱包API
walletapi = "http://{IP:PORT}/api/wallet"

# Beam explore API, beam钱包浏览器API
explorerapi = "http://{IP:PORT}"

# beam-adapter Remote Server, openw-beam服务的固定IP或域名
remoteserver = ":20888"

# True: Run for server, False: Run for client, 作为服务端启动
enableserver = true

# Fix Transaction Fess, 最低手续费
fixfees = "0.00000001"

# Node Connect Type, 连接方式:ws: websocket
connecttype = "ws"

# Enable key agreement on local node communicate with client server, 开启协商密码
enablekeyagreement = true

# log debug info, 是否打印debug日志
logdebug = false

# Log file path, 日志目录
logdir = "./logs/"

# trust node id, 服务端让授信的客户端连接
trustnodeid = "11111"

# summary address 汇总地址
summaryaddress = "111111"

# summary threshold 汇总阈值
summarythreshold = "0.001"

# Wallet Summary Period,  汇总周期
summaryperiod = "30s"

# Transaction sending timeout, 如果接受方钱包不在线,交易会一直处于发送中状态,需要设置一个超时时间,超时取消发送中的交易
# Such as "30s", "1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
txsendingtimeout = "5m"

# Backup wallet.db directory, 备份wallet data文件,每完成一次汇总,都会备份wallet.db到这个目录
walletdatabackupdir = "./backup/"

# beam wallet.db Absolute Path, beam wallet.db文件绝对路径
walletdatafile = "/data/beam/openw-beam/wallet.db"

在用户托管钱包的服务器运行openw-beam

# 加载配置server.ini,运行walletserver后台服务
$ ./openw-beam -c=server.ini walletserver