UNPKG

near-ca

Version:

An SDK for controlling Ethereum Accounts from a Near Account.

25 lines (24 loc) 924 B
import { WalletKitTypes } from "@reown/walletkit"; import { NearEncodedSignRequest } from "./types"; import { NearEthAdapter } from "./chains"; /** * Features currently under development that will be migrated into the adapter class once refined. * These features are accessible through the adapter class as `adapter.beta.methodName(...)` */ export declare class Beta { adapter: NearEthAdapter; /** * Creates a new Beta instance * * @param adapter - The NearEthAdapter instance to use */ constructor(adapter: NearEthAdapter); /** * Handles a WalletConnect session request by encoding it for NEAR * * @param request - The WalletConnect session request * @returns The encoded request for NEAR * @throws Error if the sign method is not supported */ handleSessionRequest(request: Partial<WalletKitTypes.SessionRequest>): Promise<NearEncodedSignRequest>; }