UNPKG

@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

11 lines 584 B
import { PrivateKeyToAccountOptions } from "viem/accounts"; import { AvalancheAccount } from "./avalancheAccount.js"; /** * Converts a private key to an Avalanche account. * * @param privateKey - The private key to convert with the `0x` prefix. * @param options - The options for the account. {@link PrivateKeyToAccountOptions} * @returns The Avalanche account {@link AvalancheAccount}. */ export declare function privateKeyToAvalancheAccount(privateKey: string, options?: PrivateKeyToAccountOptions): AvalancheAccount; //# sourceMappingURL=privateKeyToAvalancheAccount.d.ts.map