Versions in this module Expand all Collapse all v0 v0.6.0 Jan 2, 2024 Changes in this version + const Version + var MainNetParams = Params + var NewClient = bitcoin.NewClient + var RegressionNetParams = Params + var TestNet3Params = Params + func NewTxBuilder(params *Params, expiryHeight uint32) utxo.TxBuilder + type Address interface + BitcoinAddress func() btcutil.Address + type AddressDecoder struct + func NewAddressDecoder(params *Params) AddressDecoder + func (decoder AddressDecoder) DecodeAddress(addr address.Address) (address.RawAddress, error) + type AddressEncodeDecoder struct + func NewAddressEncodeDecoder(params *Params) AddressEncodeDecoder + type AddressEncoder struct + func NewAddressEncoder(params *Params) AddressEncoder + func (encoder AddressEncoder) EncodeAddress(rawAddr address.RawAddress) (address.Address, error) + type AddressPubKeyHash struct + func NewAddressPubKeyHash(pkh []byte, params *Params) (AddressPubKeyHash, error) + func (addr AddressPubKeyHash) BitcoinAddress() btcutil.Address + func (addr AddressPubKeyHash) EncodeAddress() string + func (addr AddressPubKeyHash) IsForNet(params *chaincfg.Params) bool + func (addr AddressPubKeyHash) ScriptAddress() []byte + func (addr AddressPubKeyHash) String() string + type AddressScriptHash struct + func NewAddressScriptHash(script []byte, params *Params) (AddressScriptHash, error) + func NewAddressScriptHashFromHash(scriptHash []byte, params *Params) (AddressScriptHash, error) + func (addr AddressScriptHash) BitcoinAddress() btcutil.Address + func (addr AddressScriptHash) EncodeAddress() string + func (addr AddressScriptHash) IsForNet(params *chaincfg.Params) bool + func (addr AddressScriptHash) ScriptAddress() []byte + func (addr AddressScriptHash) String() string + type Client = bitcoin.Client + type ClientOptions = bitcoin.ClientOptions + func DefaultClientOptions() ClientOptions + type GasEstimator struct + func NewGasEstimator(client Client, numBlocks int64, fallbackGas pack.U256) GasEstimator + func (gasEstimator GasEstimator) EstimateGas(ctx context.Context) (pack.U256, pack.U256, error) + type Params struct + P2PKHPrefix []byte + P2SHPrefix []byte + Upgrades []ParamsUpgrade + type ParamsUpgrade struct + ActivationHeight uint32 + BranchID []byte + type Tx struct + func (tx *Tx) Hash() (pack.Bytes, error) + func (tx *Tx) Inputs() ([]utxo.Input, error) + func (tx *Tx) Outputs() ([]utxo.Output, error) + func (tx *Tx) Serialize() (pack.Bytes, error) + func (tx *Tx) Sighashes() ([]pack.Bytes32, error) + func (tx *Tx) Sign(signatures []pack.Bytes65, pubKey pack.Bytes) error + type TxBuilder struct + func (txBuilder TxBuilder) BuildTx(inputs []utxo.Input, recipients []utxo.Recipient) (utxo.Tx, error)