Taquito TypeDocs
    Preparing search index...

    Function getPkhfromPk

    • Derives an implicit Tezos address from a Base58Check public key. Supports Ed25519, secp256k1, P-256, BLS12-381 and ML-DSA-44 keys. Also exported as getPublicKeyHashFromPublicKey.

      Parameters

      • publicKey: string

        Base58Check-encoded public key

      Returns string

      The corresponding tz1, tz2, tz3, tz4 or tz5 address

      getPkhfromPk('edpku61nGAwkeoA7PQJEFWmrVP1eWrSTVoHgCaF2isjWqDeGdux37k')
      // 'tz1ipB38oB5F76HnbTRqWPLEnVtCgj6yf2nB'