SealedOptionalbody: unknownOptionalurl: stringOptionalmethod: stringOptional ReadonlybodyThe full parsed JSON response body, when available.
Optional ReadonlycodeApplication error code from the response body, if present.
E.g. "INSUFFICIENT_FUNDS", "CALL_EXCEPTION".
Optional ReadonlyheadersRaw response headers, when available — e.g. to read PAYMENT-REQUIRED off a 402.
Optional ReadonlymethodThe HTTP method (e.g. GET, POST), when available.
OptionalstackReadonlystatusHTTP status code (e.g. 500, 404).
Optional ReadonlyurlThe request URL, when available.
Thrown when Salt cannot back up a new account's keyshare. The backup is an on-chain write paid for by Salt, and Salt is currently unable to pay for it. Nothing on the caller's side can fix this: contact Salt, then create the account again.
The backend reports it as a
500witherrorCodeKEYSHARE_BACKUP_UNAVAILABLE. This is a subclass of ApiError, so existingcatch (e) { if (e instanceof ApiError) ... }handlers keep working.Example