Skip to main content

add

@opcat-labs/scrypt-ts-opcat v1.0.4


@opcat-labs/scrypt-ts-opcat / Networks / add

Function: add()

add(data): Network

Defined in: node_modules/@opcat-labs/opcat/types/networks.d.cts:34

Parameters​

data​

alias​

string

The aliased name of the network

dnsSeeds​

any[]

An array of dns seeds

name​

string

The name of the network

networkMagic​

number

The network magic number

port​

number

The network port

privatekey​

number

The privatekey cashAddrPrefix

pubkeyhash​

number

The publickey hash cashAddrPrefix

scripthash​

number

The scripthash cashAddrPrefix

xprivkey​

number

The extended private key magic

xpubkey​

number

The extended public key magic

Returns​

Network

Network

Function​

Member​

Networks#add Will add a custom Network