sync sub-module handles bulk migration of customer data between your existing systems and Trusset. It is designed for institutions with established customer databases that need to onboard thousands of records without manual entry.
Records are mapped by externalId - your system’s unique customer identifier. This key is used for deduplication and conflict resolution across syncs.
Import records
externalId. If a match is found, the onConflict strategy determines the outcome.
Conflict strategies
With on-chain verification
SetverifyOnChain: true to automatically batch-verify imported records that have both a walletAddress and a country. This runs after the database import completes and requires a verified registered wallet on the instance. Each record’s kycHash (the root hash from the KYC proof tool) is passed through to the on-chain verification, so proof-backed claims can be added later.
result.errors with code VERIFY_FAILED.
Export records
Pull all customer data back out as flatSyncRecord objects. Useful for syncing Trusset state back into your core systems or for audit purposes.
SyncRecord schema
Every record requiresexternalId. All other fields are optional.
Error handling
Import errors are collected per-record rather than failing the entire batch. Theerrors array in the result contains one entry per failed record:
