Versions in this module Expand all Collapse all v0 v0.22.1 Oct 24, 2025 Changes in this version + var Networks = map[NetworkType]*Network + type BlockLimits struct + KeepBlocks uint32 + MaxTipAge uint32 + PruneAfterHeight uint32 + SlowHeight uint32 + type Checkpoint struct + Hash string + Height uint32 + type Deployment struct + Bit uint32 + Force bool + Name string + Required bool + StartTime uint32 + Threshold int32 + Timeout uint32 + Window int32 + type KeyPrefix struct + CoinType uint32 + Privkey uint32 + XPrivKey uint32 + XPrivKey58 string + XPubKey uint32 + XPubKey58 string + type NamesParams struct + AlexaLockupPeriod uint32 + AuctionMaturity uint32 + AuctionStart uint32 + BiddingPeriod uint32 + ClaimFrequency uint32 + ClaimPeriod uint32 + LockupPeriod uint32 + NoReserved bool + NoRollout bool + RenewalMaturity uint32 + RenewalPeriod uint32 + RenewalWindow uint32 + RevealPeriod uint32 + RolloutInterval uint32 + TransferLockup uint32 + TreeInterval uint32 + type Network struct + ActivationThreshold uint32 + AddressPrefix string + Block BlockLimits + BrontidePort uint16 + CheckpointMap map[uint32]string + Checkpoints []Checkpoint + ClaimPrefix string + CoinbaseMaturity uint32 + DeflationHeight uint32 + Deployments map[string]Deployment + Deploys []Deployment + FeeRate uint32 + Genesis gen.Net + GenesisBlock string + GoosigStop uint32 + HalvingInterval uint32 + IdentityKeyHex string + KeyPrefix KeyPrefix + LastCheckpoint uint32 + Magic uint32 + MaxFeeRate uint32 + MinRelay uint32 + MinerWindow uint32 + NSPort uint16 + Names NamesParams + POW POWParams + Port uint16 + RPCPort uint16 + RSPort uint16 + RequestMempool bool + RequireStandard bool + Seeds []string + SelfConnect bool + TxStartHeight uint32 + Type string + UnknownBitsMask uint32 + WalletPort uint16 + func Ensure(n *Network) *Network + func FromAddress(hrp string, prefer ...NetworkType) *Network + func FromMagic(magic uint32, prefer ...NetworkType) *Network + func FromPrivate(prefix uint32, prefer ...NetworkType) *Network + func FromPrivate58(prefix string, prefer ...NetworkType) *Network + func FromPublic(prefix uint32, prefer ...NetworkType) *Network + func FromPublic58(prefix string, prefer ...NetworkType) *Network + func FromWIF(prefix uint32, prefer ...NetworkType) *Network + func Get(t NetworkType) *Network + func Primary() *Network + func SelectNetwork(t NetworkType) *Network + func SetPrimary(t NetworkType) *Network + func (n *Network) ByBit(bit uint32) *Deployment + func (n *Network) Ms() int64 + func (n *Network) Now() time.Time + func (n *Network) SetTimeSource(ts TimeSource) + func (n *Network) String() string + type NetworkType string + const Mainnet + const Regtest + const Simnet + const Testnet + func Types() []NetworkType + type POWParams struct + Bits uint32 + BlocksPerDay uint32 + Chainwork *big.Int + Limit *big.Int + MaxActual uint32 + MinActual uint32 + NoRetargeting bool + TargetReset bool + TargetSpacing uint32 + TargetTimespan uint32 + TargetWindow uint32 + type TimeSource interface + Ms func() int64 + Now func() time.Time