Converts a private key to an XP public key.
The private key to convert.
The XP public key as a 0x prefixed string.
0x
import { privateKeyToXPPublicKey } from "@avalanche-sdk/client/accounts";const publicKey = privateKeyToXPPublicKey("0xab....");console.log(publicKey); Copy
import { privateKeyToXPPublicKey } from "@avalanche-sdk/client/accounts";const publicKey = privateKeyToXPPublicKey("0xab....");console.log(publicKey);
Converts a private key to an XP public key.