Init SDK
initialization
Initialize the SDK and returns the initialization result to the caller.
HardwareSDK.init(params);Params
debug— optionalbooleanprint debug log optionfetchConfig— optionalbooleanAllows querying for updated device version information over the network, used for prompting device updates and informing which version is needed for older hardware to use new features.connectSrc— optionalstringtheurlof theiframepage, when using the@onekeyfe/hd-web-sdkpackage, needs to be passed in the path of theiframein order to establish the connection.env— optional'web' | 'react-native' | 'lowlevel'the environment to use the SDK
Example
HardwareSDK.init({
debug: false,
fetchConfig: ,
connectSrc: 'https://jssdk.onekey.so/0.3.34/', // if use web sdk
});Last updated
Was this helpful?