PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/near-api-js/lib/utils
Просмотр файла: rpc_errors.d.ts
import { TypedError } from '../utils/errors';
export declare class ServerError extends TypedError {
}
declare class ServerTransactionError extends ServerError {
transaction_outcome: any;
}
export declare function parseRpcError(errorObj: Record<string, any>): ServerError;
export declare function parseResultError(result: any): ServerTransactionError;
export declare function formatError(errorClassName: string, errorData: any): string;
export declare function getErrorTypeFromErrorMessage(errorMessage: any): "UntypedError" | "CodeDoesNotExist" | "AccountDoesNotExist" | "InvalidNonce" | "AccessKeyDoesNotExist";
export {};
Выполнить команду
Для локальной разработки. Не используйте в интернете!