IIdentityClient

IIdentityClient: {
    onCloseScreen: (onCloseScreenCallback: () => Promise<string>) => void;
    onKycCompletion: (kycCompletionCallback: (data: any[]) => void) => void;
    onSignMessage: (signPersonalDataCallback: (data: {message: string; }) => Promise<BlockchainSignature>) => void;
}

Type Declaration

onCloseScreen()

  • onCloseScreen: (onCloseScreenCallback: () => Promise) => void

Sets a callback for handling the closing of the KYC modal.

Parameters

  • onCloseScreenCallback: () => Promise<string>
    The callback function to call before the screen is closed.

Returns

  • void

onKycCompletion()

  • onKycCompletion: (kycCompletionCallback: (data: any[]) => void) => void

Sets a callback for handling KYC completion data.

Parameters

  • kycCompletionCallback: (data: any[]) => void
    The callback function to handle KYC completion data.

Returns

  • void

onSignMessage()

  • onSignMessage: (signPersonalDataCallback: (data: {message: string; }) => Promise) => void

Sets a callback for signing personal data. It needs to be set before calling start functions.

Parameters

  • signPersonalDataCallback: (data: {message: string; }) => Promise<BlockchainSignature>
    The callback function to sign personal data.

Returns

  • void