Taquito TypeDocs
    Preparing search index...

    Function b58DecodePublicKeyHash

    • Decode a Base58 public key hash and return its binary representation

      Parameters

      • value: string

        Value to decode

      • Optionalfmt: "hex"

        optional format of the decoded return value, 'hex' or 'array'

      Returns string

      string or Uint8Array of bytes

      b58DecodePublicKeyHash('tz2MVED1t9Jery77Bwm1m5YhUx8Wp5KWWRQe') // return '0001907d6a7e9f084df840d6e67ffa8db5464f87d4d1'
      
    • Decode a Base58 public key hash and return its binary representation

      Parameters

      • value: string

        Value to decode

      • fmt: "array"

        optional format of the decoded return value, 'hex' or 'array'

      Returns Uint8Array

      string or Uint8Array of bytes

      b58DecodePublicKeyHash('tz2MVED1t9Jery77Bwm1m5YhUx8Wp5KWWRQe') // return '0001907d6a7e9f084df840d6e67ffa8db5464f87d4d1'