An error indicating that the runtime lacks a capability the SDK needs. Thrown by the Salt constructor, rather than partway through a ceremony.
The message is written for display; read capability to handle a specific case. See RuntimeCapability for the current set.
import { Salt, UnsupportedRuntime } from 'salt-sdk';try { const salt = new Salt({ environment: 'TESTNET' });} catch (error) { if (error instanceof UnsupportedRuntime && error.capability === 'webCrypto') { alert(error.message); } else { throw error; }} Copy
import { Salt, UnsupportedRuntime } from 'salt-sdk';try { const salt = new Salt({ environment: 'TESTNET' });} catch (error) { if (error instanceof UnsupportedRuntime && error.capability === 'webCrypto') { alert(error.message); } else { throw error; }}
Optional
Readonly
Which runtime capability was missing.
The underlying error that triggered this one, if any.
An error indicating that the runtime lacks a capability the SDK needs. Thrown by the Salt constructor, rather than partway through a ceremony.
The message is written for display; read capability to handle a specific case. See RuntimeCapability for the current set.
Example