UNPKG

@ckb-ccc/core

Version:

Core of CCC - CKBer's Codebase

47 lines 1.51 kB
import { Client } from "../../client/index.js"; import { Hex, HexLike } from "../../hex/index.js"; import { SignerEvm } from "./signerEvm.js"; /** * A class extending SignerEvm that provides read-only access to an EVM address. * This class does not support signing operations. * @public */ export declare class SignerEvmAddressReadonly extends SignerEvm { private readonly address; /** * Creates an instance of SignerEvmAddressReadonly. * * @param client - The client instance used for communication. * @param address - The EVM address associated with the signer. */ constructor(client: Client, address: HexLike); /** * Connects to the client. This implementation does nothing as the class is read-only. * * @returns A promise that resolves when the connection is complete. * * @example * ```typescript * await signer.connect(); * ``` */ connect(): Promise<void>; /** * Check if the signer is connected. * * @returns A promise that resolves the connection status. */ isConnected(): Promise<boolean>; /** * Gets the EVM account associated with the signer. * * @returns A promise that resolves to a string representing the EVM account. * * @example * ```typescript * const account = await signer.getEvmAccount(); // Outputs the EVM account * ``` */ getEvmAccount(): Promise<Hex>; } //# sourceMappingURL=signerEvmAddressReadonly.d.ts.map