import { Account, Address, Chain, ParseAccount, Prettify, RpcSchema, Transport } from "viem"; import { CChainRpcSchema } from "../methods/cChain/cChainRpcSchema.js"; import { AvalancheCoreClient, CreateAvalancheCoreClientErrorType } from "./createAvalancheCoreClient.js"; import { CChainActions } from "./decorators/cChain.js"; import { AvalancheClientConfig } from "./types/createAvalancheClient.js"; export type CChainClientConfig = Prettify>; export type CChainClient = Prettify>; export type CreateCChainClientErrorType = CreateAvalancheCoreClientErrorType; /** * Creates a C-Chain (Contract Chain) Client with a given transport configured for a Chain. * * The C-Chain Client is an interface to interact with the Avalanche Contract Chain through Avalanche-specific JSON-RPC API methods. * The Contract Chain is an instance of the Ethereum Virtual Machine (EVM) that supports: * - Cross-chain operations (import/export) * - Atomic transactions * - UTXO management * - Dynamic fee calculations * * @param parameters - {@link CChainClientConfig} * @returns A C-Chain Client. {@link CChainClient} * * @example * ```ts * import { createCChainClient} from '@avalanche-sdk/client' * import { avalanche } from '@avalanche-sdk/client/chains' * * const client = createCChainClient({ * chain: avalanche, * transport: { * type: "http", * }, * }) * * // Get atomic transaction * const atomicTx = await client.getAtomicTx({ txID: '0x...' }) * ``` */ export declare function createCChainClient(parameters: CChainClientConfig): CChainClient, rpcSchema>; //# sourceMappingURL=createCChainClient.d.ts.map