Overview
TheKycClient handles KYC (Know Your Customer) verification workflows for individuals. It provides methods to initiate verification processes and check verification status.
Methods
startVerification()
Initiate a new KYC verification process for a user. This creates a verification session and returns a URL where the user can complete their identity verification.Parameters
URN (Uniform Resource Name) that uniquely identifies the user within the system.This value is used to associate the KYC verification process with a specific user.Example:
"did:bloque:origin:ethereum-mainnet:0x742d35..."URL where webhook notifications will be sent when the verification status changes.This is optional. If provided, the platform will send POST requests to this URL with verification status updates.Example:
"https://api.example.com/webhooks/kyc"Returns
URL where the user can complete the KYC verification process.Direct the user to this URL to complete identity verification. The URL typically links to a third-party KYC provider interface.
Current status of the verificationPossible values:
"awaiting_compliance_verification"- Verification initiated, waiting for user to complete"approved"- Verification completed and approved"rejected"- Verification rejected
Always
null for new verifications. Use getVerification() to check for completion.Example Response
getVerification()
Retrieve the current status of a KYC verification process.Parameters
URN (Uniform Resource Name) that uniquely identifies the user within the system.Example:
"did:bloque:user:123e4567"Returns
Current status of the verificationPossible values:
"awaiting_compliance_verification"- Still pending user action"approved"- Verification approved"rejected"- Verification rejected
URL where the user can view or complete the verification
ISO 8601 timestamp when the verification was completed.
null if verification is not yet completed.Example: "2024-01-15T10:30:00Z"