initialize

fun initialize(context: Context, deviceId: String, messageHandler: FireblocksMessageHandler, keyStorage: FireblocksKeyStorage, fireblocksOptions: FireblocksOptions): Fireblocks

Initializes the Fireblocks SDK instance

This method should be called at app startup time. Call this method before any Fireblocks SDK APIs.

Return

Fireblocks Instance per device id.

Parameters

context

application context.

deviceId

Unique device id. Each device id will have a different Fireblocks SDK instance.

messageHandler

The implementation of the FireblocksMessageHandler. Used to pass Fireblocks SDK messages from the to the BE server.

keyStorage

The implementation of the FireblocksKeyStorage. Used to store and load the MPC secret key.

fireblocksOptions

Throws

In the Fireblocks SDK was already initialized with the same deviceId.