Skip to content

Bitcoin Cash Class v1 Spec

Gabriel Cardona edited this page Jun 18, 2018 · 1 revision

Bitcoin Cash

toSatoshi

Arguments

  1. coins: Number

Return Value

  1. satoshis: Number

toBitcoinCash

Arguments

  1. satoshis: Number

Return Value

  1. coins: Number

toBits

Arguments

  1. satoshis: Number

Return Value

  1. bits: Number

fromBits

Arguments

  1. bits: Number

Return Value

  1. satoshis: Number

signMessageWithPrivKey

Arguments

  1. privateKeyWIF: String
  2. message: String

Return Value

  1. Digest: String

verifyMessage

Arguments

  1. address: String
  2. signature: String
  3. message: String

Return Value

  1. verified: Boolean

encodeBase58Check

Arguments

  1. hex: String

Return Value

  1. base58Check: String

decodeBase58Check

Arguments

  1. address: String

Return Value

  1. hex: String

encodeBIP21

Arguments

  1. address: String
  2. options: Object

Return Value

  1. encoded: String

decodeBIP21

Arguments

  1. url: String

Return Value

  1. Decoded: Object

getByteCount

Arguments

  1. inputs: Object
  2. outputs: Object

Return Value

  1. byteCount: Number

encryptBIP38

Arguments

  1. privKeyWIF: String
  2. passphrase: String

Return Value

  1. Encrypted: String

decryptBIP38

Arguments

  1. encryptedKey: String
  2. passphrase: String
  3. network: String. Default: "mainnet"

Return Value

  1. wif: String