Skip to main content

privateKeyToAddress

Callable

  • privateKeyToAddress(privateKey: Bytes): string

  • Get the ethereum Address from a private key

    @example
    privateKeyToAddress("0xbe6383dad004f233317e46ddb46ad31b16064d14447a95cc1d8c8d4bc61c3728")
    > "0xEB014f8c8B418Db6b45774c326A0E64C78914dC0"

    Parameters

    • privateKey: Bytes

      String or buffer of 32 bytes

    Returns string

    The Ethereum address