@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
17 lines • 714 B
TypeScript
import { MnemonicToAccountOptions } from "viem/accounts";
import { AvalancheAccount } from "./avalancheAccount.js";
/**
* Converts a mnemonic to an Avalanche account.
*
* @param memonics - The mnemonic to convert.
* @param options - The options for the account. {@link MnemonicToAccountOptions}
* @returns The Avalanche account {@link AvalancheAccount}.
*
* @example
* ```ts
* import { memonicsToAvalancheAccount } from "@avalanche-sdk/client/accounts";
*
* const account = memonicsToAvalancheAccount("test test t..");
*/
export declare function memonicsToAvalancheAccount(memonics: string, options?: MnemonicToAccountOptions): AvalancheAccount;
//# sourceMappingURL=memonicsToAvalancheAccount.d.ts.map