UNPKG

@mobile-wallet-protocol/client

Version:
20 lines (19 loc) 545 B
/** * Serializes an error to a format that is compatible with the Ethereum JSON RPC error format. * See https://docs.cloud.coinbase.com/wallet-sdk/docs/errors * for more information. */ export declare function serializeError(error: unknown): { docUrl: string; code: number; message: string; data?: unknown; stack?: string; }; type ErrorResponse = { method: unknown; errorCode?: number; errorMessage: string; }; export declare function isErrorResponse(response: unknown): response is ErrorResponse; export {};