import { AvalancheWalletCoreClient } from "../../../clients/createAvalancheWalletCoreClient.js"; import { PrepareRegisterL1ValidatorTxnParameters, PrepareRegisterL1ValidatorTxnReturnType } from "./types/prepareRegisterL1ValidatorTxn.js"; /** * Prepares a register L1 validator transaction for the P-chain. * * @param client - The client to use for the transaction. {@link AvalancheWalletCoreClient} * @param params - The parameters for the transaction. {@link PrepareRegisterL1ValidatorTxnParameters} * @returns The unsigned transaction. {@link PrepareRegisterL1ValidatorTxnReturnType} * * @see https://build.avax.network/docs/api-reference/p-chain/txn-format#unsigned-register-l1-validator-tx * * @example * ```ts * import { prepareRegisterL1ValidatorTxn } from "@avalanche-sdk/client/methods/wallet/pChain/prepareRegisterL1ValidatorTxn"; * import { createAvalancheWalletClient } from "@avalanche-sdk/client/clients/createAvalancheWalletClient"; * import { privateKeyToAvalancheAccount } from "@avalanche-sdk/client/accounts"; * import { avalanche } from "@avalanche-sdk/client/chains"; * import { avaxToNanoAvax } from "@avalanche-sdk/client/utils"; * * const account = privateKeyToAvalancheAccount("0x1234567890123456789012345678901234567890"); * const walletClient = createAvalancheWalletClient({ * account, * chain: avalanche, * }); * * const pChainRegisterL1ValidatorTxnRequest = await prepareRegisterL1ValidatorTxn(walletClient, { * initialBalanceInAvax: avaxToNanoAvax(1), * blsSignature: "0x1234567890123456789012345678901234567890", * message: "0x1234567890123456789012345678901234567890", * }); * * console.log(pChainRegisterL1ValidatorTxnRequest); * ``` */ export declare function prepareRegisterL1ValidatorTxn(client: AvalancheWalletCoreClient, params: PrepareRegisterL1ValidatorTxnParameters): Promise; //# sourceMappingURL=prepareRegisterL1ValidatorTxn.d.ts.map