UNPKG

@mobile-wallet-protocol/client

Version:
11 lines (10 loc) 657 B
import { RequestArguments } from '../provider/interface'; export declare function fetchRPCRequest(request: RequestArguments, rpcUrl: string): Promise<any>; export declare function appendMWPResponsePath(urlString: string): string; /** * Validates the arguments for an invalid request and returns an error if any validation fails. * Valid request args are defined here: https://eips.ethereum.org/EIPS/eip-1193#request * @param args The request arguments to validate. * @returns An error object if the arguments are invalid, otherwise undefined. */ export declare function checkErrorForInvalidRequestArgs(args: unknown): asserts args is RequestArguments;