TrustNXTTrustNXT
React SDKAPI ReferenceInterfaces

ProtectionCallbacks

Callbacks fired during protection processing.

Properties

onError?

optional onError?: (id, error) => void;

Called when protection of a blob fails.

Parameters

ParameterType
idstring
errorstring

Returns

void


onProtected?

optional onProtected?: (id, protectedBlob) => void;

Called when a blob has been successfully sealed.

Parameters

ParameterType
idstring
protectedBlobBlob

Returns

void


onStatusChange?

optional onStatusChange?: (id, status) => void;

Called whenever any item's status changes (pending → processing → completed/failed).

Parameters

ParameterType
idstring
statusProtectionStatus

Returns

void

On this page