@avalanche-sdk/client
Version:
A TypeScript SDK for interacting with the Avalanche network through JSON-RPC APIs. This SDK provides a comprehensive set of tools to interact with all Avalanche chains (P-Chain, X-Chain, C-Chain) and various APIs, including wallet functionality for transa
16 lines • 492 B
TypeScript
/**
* Converts a private key to an XP public key.
*
* @param privateKey - The private key to convert.
* @returns The XP public key as a `0x` prefixed string.
*
* @example
* ```ts
* import { privateKeyToXPPublicKey } from "@avalanche-sdk/client/accounts";
*
* const publicKey = privateKeyToXPPublicKey("0xab....");
* console.log(publicKey);
* ```
*/
export declare function privateKeyToXPPublicKey(privateKey: string): string;
//# sourceMappingURL=privateKeyToXPPublicKey.d.ts.map