salt-sdk - v0.0.45
    Preparing search index...

    Class KeyshareBackupFailedErrorSealed

    Thrown when Salt's attempt to back up a new account's keyshare failed. Unlike KeyshareBackupUnavailableError, the failure may be temporary: create the account again.

    The backend reports it as a 500 with errorCode KEYSHARE_BACKUP_FAILED. This is a subclass of ApiError, so existing catch (e) { if (e instanceof ApiError) ... } handlers keep working.

    import { KeyshareBackupFailedError } from 'salt-sdk';

    try {
    const { account } = await (await salt.createAccount({ ... })).wait();
    } catch (err) {
    if (err instanceof KeyshareBackupFailedError) {
    console.error('Account backup failed, please try again');
    } else {
    throw err;
    }
    }

    Hierarchy (View Summary)

    Index
    body?: unknown

    The full parsed JSON response body, when available.

    code?: string

    Application error code from the response body, if present. E.g. "INSUFFICIENT_FUNDS", "CALL_EXCEPTION".

    headers?: Headers

    Raw response headers, when available — e.g. to read PAYMENT-REQUIRED off a 402.

    message: string
    method?: string

    The HTTP method (e.g. GET, POST), when available.

    name: string
    stack?: string
    status: number

    HTTP status code (e.g. 500, 404).

    url?: string

    The request URL, when available.