import { Account, Address, Chain, ParseAccount, Prettify, RpcSchema, Transport } from "viem"; import { PChainRpcSchema } from "../methods/pChain/pChainRpcSchema.js"; import { AvalancheCoreClient, CreateAvalancheCoreClientErrorType } from "./createAvalancheCoreClient.js"; import { PChainActions } from "./decorators/pChain.js"; import { AvalancheClientConfig } from "./types/createAvalancheClient.js"; export type PChainClientConfig = Prettify>; export type PChainClient = Prettify>; export type CreatePChainClientErrorType = CreateAvalancheCoreClientErrorType; /** * Creates a P-Chain (Platform Chain) Client with a given transport configured for a Chain. * * The P-Chain Client is an interface to interact with the Avalanche Platform Chain through JSON-RPC API methods. * The Platform Chain is responsible for: * - Coordinating validators * - Managing subnets * - Creating and managing blockchains * - Handling staking operations * * @param parameters - {@link PChainClientConfig} * @returns A P-Chain Client. {@link PChainClient} * * @example * ```ts * import { createPChainClient} from '@avalanche-sdk/client' * import { avalanche } from '@avalanche-sdk/client/chains' * * const client = createPChainClient({ * chain: avalanche, * transport: { * type: "http", * }, * }) * * // Get the current validators * const validators = await client.getCurrentValidators({}) * * // Get subnet information * const subnet = await client.getSubnet({ subnetID: 'subnet-id' }) * ``` */ export declare function createPChainClient(parameters: PChainClientConfig): PChainClient, rpcSchema>; //# sourceMappingURL=createPChainClient.d.ts.map