Class BitcoinUtils

Utility class for Bitcoin related functions

Constructors

Methods

  • Converts satoshi to BTC

    Parameters

    • btc: number

      The amount in BTC

    Returns bigint

    The amount in satoshi

  • Hashes the given data

    Parameters

    • data: Buffer

      The data to hash

    Returns string

    The hashed data