Function getAddressFromPublicKey

  • Creates a P2PKH address string from the given public key and tx version.

    Parameters

    • publicKey: PublicKey

      Public key bytes or hex string

    • network: StacksNetwork | "mainnet" | "testnet" | "devnet" | "mocknet" = 'mainnet'

    Returns string

Generated using TypeDoc