near-ca
Version:
An SDK for controlling Ethereum Accounts from a Near Account.
16 lines (15 loc) • 773 B
TypeScript
import { NearEthAdapter } from "./chains";
import { SetupConfig } from "./types";
/**
* Sets up the NEAR-Ethereum adapter using the provided configuration
*
* This function establishes a connection to the NEAR network using the given
* account details, configures the Multi-Party Computation (MPC) contract, and
* returns an instance of the NearEthAdapter.
*
* @param args - The configuration parameters for setting up the adapter
* @returns An instance of NearEthAdapter configured with the provided settings
* @throws Error if the `accountId` does not match the networkId of the provided or inferred `network`
* @throws Error if there is a failure in creating a NEAR account
*/
export declare function setupAdapter(args: SetupConfig): Promise<NearEthAdapter>;