@btc-vision/ecpair - v4.0.2
    Preparing search index...

    Interface Network

    Describes the parameters that distinguish one Bitcoin-compatible network from another (mainnet, testnet, regtest, altcoins, etc.).

    Consumers must supply a concrete Network object when constructing signers or encoding / decoding WIF strings; the library intentionally ships no hard-coded network constants.

    interface Network {
        bech32: string;
        bech32Opnet?: string;
        bip32: Bip32Versions;
        messagePrefix: string | Uint8Array<ArrayBufferLike>;
        pubKeyHash: number;
        scriptHash: number;
        wif: number;
    }
    Index

    Properties

    bech32: string

    Bech32 human-readable part used for SegWit addresses (e.g. "bc", "tb").

    bech32Opnet?: string

    Bech32 human-readable part used for OPNet witness-v16 addresses (e.g. "op", "opt").

    BIP32 extended key version bytes.

    messagePrefix: string | Uint8Array<ArrayBufferLike>

    Prefix prepended to messages before signing (e.g. "\x18Bitcoin Signed Message:\n").

    pubKeyHash: number

    Pay-to-public-key-hash version byte (e.g. 0x00 for mainnet).

    scriptHash: number

    Pay-to-script-hash version byte (e.g. 0x05 for mainnet).

    wif: number

    Wallet Import Format version byte (e.g. 0x80 for mainnet).