Error response returned by the API on failure.
try { await client.hash({ algorithm: 'invalid', data: 'x' });} catch (err) { const apiErr = (err as CryptoApiError).body satisfies ApiError; console.error(apiErr.error, apiErr.details);} Copy
try { await client.hash({ algorithm: 'invalid', data: 'x' });} catch (err) { const apiErr = (err as CryptoApiError).body satisfies ApiError; console.error(apiErr.error, apiErr.details);}
Human-readable error message.
Optional
Optional per-field validation errors.
Name of the invalid field.
Validation failure description.
Error response returned by the API on failure.
Example