near-ca-test
Version:
An SDK for controlling Ethereum Accounts from a Near Account.
13 lines (12 loc) • 678 B
TypeScript
import { EncodedSignRequest, SignRequestData } from "../types";
/**
* Handles routing of signature requests based on the provided method, chain ID, and parameters.
*
* @async
* @function requestRouter
* @param {SignRequestData} params - An object containing the method, chain ID, and request parameters.
* @returns {Promise<NearEncodedSignRequest>}
* - Returns a promise that resolves to an object containing the Ethereum Virtual Machine (EVM) message,
* the payload (hashed data), and recovery data needed for reconstructing the signature request.
*/
export declare function requestRouter({ method, chainId, params, }: SignRequestData): Promise<EncodedSignRequest>;