<NodeJS>

LibCash-JS

A Pure NodeJS library that leverages the Flowee API's.

Address

Address Module

Instance Members
toLegacyAddress

Convert cashaddr to legacy address format

Arguments
  • address
Examples
toCashAddress

Convert legacy to cashAddress format

Arguments
  • address
  • prefix
  • regtest
Examples
hash160ToLegacy

Convert hash160 to legacy address.

Arguments
  • hash160
  • network
Examples
hash160ToCash

Convert hash160 to cash address.

Arguments
  • hash160
  • network
  • regtest
Examples
isLegacyAddress

Detect if legacy base58check encoded address.

Arguments
  • address
Examples
isCashAddress

Detect if cashAddr encoded address.

Arguments
  • address
Examples
isHash160

Detect if an addess is a hash160.

Arguments
  • address
Examples
isMainnetAddress

Detect if mainnet address .

Arguments
  • address
Examples
isTestnetAddress

Detect if testnet address.

Arguments
  • address
Examples
isRegTestAddress

Detect if regtest address.

Arguments
  • address
Examples
isP2PKHAddress

Detect if p2pkh address.

Arguments
  • address
Examples
isP2SHAddress

Detect if p2sh address.

Arguments
  • address
Examples
detectAddressFormat

Detect address format.

Arguments
  • address
Examples
detectAddressNetwork

Detect address network.

Arguments
  • address
Examples
detectAddressType

Detect address type.

Arguments
  • address
Examples
fromXPub

Generates an address for an extended public key (xpub).

Arguments
  • xpub
  • path
Examples
fromOutputScript

Detect an addess from an OutputScript..

Arguments
  • scriptPubKey
  • network
Examples