UNPKG

@digitalbits-blockchain/xdb-digitalbits-sdk

Version:

@digitalbits-blockchain/xdb-digitalbits-sdk is a library for working with the DigitalBits Frontier server.

37 lines (36 loc) 1.33 kB
import { Frontier } from "./frontier_api"; export declare class NetworkError extends Error { response: { data?: Frontier.ErrorResponseData; status?: number; statusText?: string; url?: string; }; __proto__: NetworkError; constructor(message: string, response: any); getResponse(): { data?: Frontier.ErrorResponseData.RateLimitExceeded | Frontier.ErrorResponseData.InternalServerError | Frontier.ErrorResponseData.TransactionFailed | undefined; status?: number | undefined; statusText?: string | undefined; url?: string | undefined; }; } export declare class NotFoundError extends NetworkError { constructor(message: string, response: any); } export declare class BadRequestError extends NetworkError { constructor(message: string, response: any); } export declare class BadResponseError extends NetworkError { constructor(message: string, response: any); } export declare class InvalidSep10ChallengeError extends Error { __proto__: InvalidSep10ChallengeError; constructor(message: string); } export declare class AccountRequiresMemoError extends Error { __proto__: AccountRequiresMemoError; accountId: string; operationIndex: number; constructor(message: string, accountId: string, operationIndex: number); }