@mobile-wallet-protocol/client
Version:
Client SDK for the Mobile Wallet Protocol
20 lines (19 loc) • 545 B
TypeScript
/**
* 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 {};