@mobile-wallet-protocol/client
Version:
Client SDK for the Mobile Wallet Protocol
11 lines (10 loc) • 657 B
TypeScript
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;