Init SDK


Initialize the SDK and returns the initialization result to the caller.



  • debug — optional boolean print debug log option

  • fetchConfig— optional boolean Allows 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 — optional string the url of the iframe page, when using the @onekeyfe/hd-web-sdk package, needs to be passed in the path of the iframe in order to establish the connection.

  • env — optional 'web' | 'react-native' | 'lowlevel' the environment to use the SDK


    debug: false,
    fetchConfig: ,
    connectSrc: '', // if use web sdk

Last updated