Callbacks

Callbacks: {
    closeScreenCallback: () => Promise<string>;
    kycCompletionCallback: (data: any[]) => void;
    onSendTransaction: (data: TransactionData) => Promise<`0x${string}` | undefined>;
    onSignMessageCallback: (data: {message: string; }) => Promise<BlockchainSignature>;
    onStartKycCallback: (data: DataAvailableOnStart) => DataAvailableOnStart;
    onVerification: (isVerified: boolean) => void;
    resolveGetTxAuthSigRequest: (signatureResponse: GetTxAuthDataSignatureResponse) => void;
    resolveIsVerifiedRequest: (isVerified: boolean) => void;
    resolvePolygonIdRequest: (data: PolygonIdResponse) => void;
    scenarioExecutionCallback: (data: ScenarioExecutionData) => void;
    sdkInitializedCallback: (data: {did: string; }) => void;
}

Type Declaration

closeScreenCallback()?

optional closeScreenCallback: () => Promise<string>

Returns

  • Promise<string>

kycCompletionCallback()?

optional kycCompletionCallback: (data: any[]) => void

Parameters

  • data: any[]

Returns

  • void

onSendTransaction()?

optional onSendTransaction: (data: TransactionData) => Promise<0x${string} | undefined>

Parameters

  • data: TransactionData

Returns

  • Promise<0x${string} | undefined>

onSignMessageCallback()?

optional onSignMessageCallback: (data: {message: string; }) => Promise<BlockchainSignature>

Parameters

  • data: {message: string; }

Returns

  • Promise<BlockchainSignature>

onStartKycCallback()?

optional onStartKycCallback: (data: DataAvailableOnStart) => DataAvailableOnStart

Parameters

  • data: DataAvailableOnStart

Returns

  • DataAvailableOnStart

onVerification()?

optional onVerification: (isVerified: boolean) => void

Parameters

  • isVerified: boolean

Returns

  • void

resolveGetTxAuthSigRequest()?

optional resolveGetTxAuthSigRequest: (signatureResponse: GetTxAuthDataSignatureResponse) => void

Parameters

  • signatureResponse: GetTxAuthDataSignatureResponse

Returns

  • void

resolveIsVerifiedRequest()?

optional resolveIsVerifiedRequest: (isVerified: boolean) => void

Parameters

  • isVerified: boolean

Returns

  • void

resolvePolygonIdRequest()?

optional resolvePolygonIdRequest: (data: PolygonIdResponse) => void

Parameters

  • data: PolygonIdResponse

Returns

  • void

scenarioExecutionCallback()?

optional scenarioExecutionCallback: (data: ScenarioExecutionData) => void

Parameters

  • data: ScenarioExecutionData

Returns

  • void

sdkInitializedCallback()?

optional sdkInitializedCallback: (data: {did: string; }) => void

Parameters

  • data: {did: string; }

Returns

  • void