
The highest tagged major version is
v4.
command
Version:
v3.0.0
Opens a new window with list of versions in this module.
Published: Aug 1, 2026
License: GPL-3.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Online TwoPartyPool
该示例连接 WhatsOnChain BSV testnet,读取 Buyer 地址的 UTXO 和当前区块高度,然后构建 Buyer/Seller v3 的 2-of-2 funding、opening state、签名和最终交易。
需要设置:
export FEEPOOL_BUYER_PRIV=<Buyer 的 testnet 私钥十六进制>
export FEEPOOL_SELLER_PRIV=<Seller 的私钥十六进制>
go run ./examples/online_two_party_pool
锁定脚本顺序为 [Buyer, Seller],状态资金输出顺序为 [Buyer, Seller]。示例不会自动广播交易,也不会打印私钥;请先为 Buyer 地址准备超过 500 satoshis 的 testnet UTXO。
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.