@mobile-wallet-protocol/client
Version:
Client SDK for the Mobile Wallet Protocol
11 lines (10 loc) • 481 B
TypeScript
import { RPCRequestMessage, RPCResponseMessage } from '../../core/message';
import { Wallet } from '../../core/wallet';
/**
* Posts a request to a wallet and waits for the response.
*
* @param request - The request to send.
* @param wallet - The wallet to send the request to.
* @returns A promise that resolves to the response.
*/
export declare function postRequestToWallet(request: RPCRequestMessage, appCustomScheme: string, wallet: Wallet): Promise<RPCResponseMessage>;