Function privateKeyToAddress

  • Convert a private key to a single-sig address.

    Parameters

    Returns string

    A Stacks address string (encoded with c32check)

    Example

    const address = privateKeyToAddress("73a2f291df5a8ce3ceb668a25ac7af45639513af7596d710ddf59f64f484fd2801");
    // SP10J81WVGVB3M4PHQN4Q4G0R8586TBJH948RESDR

Generated using TypeDoc