Common Params
In the SDK method calls, there are three generic parameters: connectId , deviceId , commonParams.
function call(connectId: string; deviceId: string; commonParams: CommonParams)The input parameters are obtained as follows:
connectId: Obtained from theconnectIdfield of the device returned in thesearchDeviceinterface.The connect id of the device is never changed.
deviceId: The deviceId field returned by thegetFeaturesinterface.The device id changes when the hardware is reset. Like wipe the device.
commonParams: common parametersretryCount: optionalnumbertype. The number of retries when the device is connected, default is 6.pollIntervalTime: optionalnumbertype. The interval time for polling when the device is connected, default is 1000 ms, each polling will increase the time by 1.5 times.timeout: optionalnumbertype. The timeout of the connection polling.keepSession: optionalbooleantype. The Session persists after executing the API method.passphraseState: optionalstringtype. If you want to use a passphrase wallet, please pass that parameter. We will validate and cache the passphrase to optimize the user experience of entering the passphrase and reduce the number of input attempts. To retrieve that parameter, please call thegetPassphraseStatemethod.useEmptyPassphrase: optionalbooleantype. Allow the creation of a passphrase wallet with an empty value.initSession: optionalbooleantype. Cache the passphraseState parameter.deriveCardano: optionalbooleantype. default is set totruefor all cardano related methods, otherwise it is set tofalse. This parameter determines whether device should derive cardano seed for current session. Derivation of cardano seed takes longer then it does for other coins.
Last updated
Was this helpful?