• Convert a public key to an address.

    Parameters

    Returns string

    A Stacks address string (encoded with c32check)

    Example

    Public key to address

    const address = publicKeyToAddress("03ef788b3830c00abe8f64f62dc32fc863bc0b2cafeb073b6c8e1c7657d9c2c3ab");
    const address = publicKeyToAddress("03ef788b3830c00abe8f64f62dc32fc863bc0b2cafeb073b6c8e1c7657d9c2c3ab", STACKS_TESTNET);
  • Parameters

    Returns string

Generated using TypeDoc