Documentation ¶
Index ¶
Constants ¶
const ( // DeploymentTestDummy ... DeploymentTestDummy = iota // DeploymentCSV ... DeploymentCSV // DeploymentSegwit ... DeploymentSegwit // DefinedDeployments ... DefinedDeployments )
Variables ¶
var ( // NewTxBuilder re-exports bitoin.NewTxBuilder NewTxBuilder = bitcoin.NewTxBuilder // NewClient re-exports bitcoin.NewClient NewClient = bitcoin.NewClient )
var MainNetParams = chaincfg.Params{ Name: "mainnet", Net: 0xdab6c3fa, DefaultPort: "12024", GenesisBlock: &genesisBlock, GenesisHash: &genesisHash, Bech32HRPSegwit: "dgb", PubKeyHashAddrID: 0x1e, ScriptHashAddrID: 0x32, PrivateKeyID: 0x80, WitnessPubKeyHashAddrID: 0x06, WitnessScriptHashAddrID: 0x0A, HDPrivateKeyID: [4]byte{0x04, 0x88, 0xad, 0xe4}, HDPublicKeyID: [4]byte{0x04, 0x88, 0xb2, 0x1e}, HDCoinType: 0x14, }
MainNetParams returns the chain configuration for mainnet
var NewGasEstimator = bitcoin.NewGasEstimator
NewGasEstimator re-exports bitcoin.NewGasEstimator.
var RegressionNetParams = chaincfg.Params{ Name: "regtest", Net: 0xd191841e, DefaultPort: "18444", GenesisBlock: &genesisBlock, GenesisHash: &genesisHash, Bech32HRPSegwit: "dgbrt", PubKeyHashAddrID: 0x7e, ScriptHashAddrID: 0x8c, PrivateKeyID: 0xfe, WitnessPubKeyHashAddrID: 0x06, WitnessScriptHashAddrID: 0x0A, HDPrivateKeyID: [4]byte{0x04, 0x35, 0x83, 0x94}, HDPublicKeyID: [4]byte{0x04, 0x35, 0x87, 0xcf}, HDCoinType: 0x14, }
RegressionNetParams returns the chain configuration for regression net
var TestnetParams = chaincfg.Params{ Name: "testnet", Net: 0xddbdc8fd, DefaultPort: "12026", GenesisBlock: &genesisBlock, GenesisHash: &genesisHash, Bech32HRPSegwit: "dgbt", PubKeyHashAddrID: 0x7e, ScriptHashAddrID: 0x8c, PrivateKeyID: 0xfe, WitnessPubKeyHashAddrID: 0x06, WitnessScriptHashAddrID: 0x0A, HDPrivateKeyID: [4]byte{0x04, 0x35, 0x83, 0x94}, HDPublicKeyID: [4]byte{0x04, 0x35, 0x87, 0xcf}, HDCoinType: 0x14, }
TestnetParams returns the chain configuration for testnet
Functions ¶
This section is empty.
Types ¶
type AddressDecoder ¶
type AddressDecoder = bitcoin.AddressDecoder
AddressDecoder encapsulates the chain specific configurations and implements the address.Decoder interface
type AddressEncodeDecoder ¶ added in v0.2.1
type AddressEncodeDecoder = bitcoin.AddressEncodeDecoder
AddressEncodeDecoder implements the address.EncodeDecoder interface
type AddressEncoder ¶
type AddressEncoder = bitcoin.AddressEncoder
AddressEncoder encapsulates the chain specific configurations and implements the address.Encoder interface
type Client ¶
A Client interacts with an instance of the Bitcoin network using the RPC interface exposed by a Bitcoin node.
type ClientOptions ¶
type ClientOptions = bitcoin.ClientOptions
ClientOptions are used to parameterise the behaviour of the Client.
func DefaultClientOptions ¶
func DefaultClientOptions() ClientOptions
DefaultClientOptions returns ClientOptions with the default settings. These settings are valid for use with the default local deployment of the multichain. In production, the host, user, and password should be changed.
type GasEstimator ¶
type GasEstimator = bitcoin.GasEstimator
GasEstimator re-exports bitcoin.GasEstimator.