Class utility.

Constructors

Methods

  • Verify if a string is a valid asset ID.

    Parameters

    • id: string

      The asset ID to verify.

    Returns boolean

    • True if the asset ID is valid, false otherwise.
  • Verify if a string is a valid transaction ID.

    Parameters

    • txid: string

      The transaction ID to verify.

    Returns boolean

    • True if the transaction ID is valid, false otherwise.
  • Verify if a string is a valid URL.

    Parameters

    • url: string

      The URL to verify.

    Returns boolean

    • True if the URL is valid, false otherwise.
  • Verify if a string is a valid Bitcoin address.

    Parameters

    • address: string

      The Bitcoin address to verify.

    Returns boolean

    • True if the Bitcoin address is valid, false otherwise.