2. API Response

Once the verification by the issuer is completed (ex: KYC verification, AML verification, etc..), the issuers is responsible for generating a standardized API response.

Attributes in the Quadrata Passport are standardized to enable interoperability between issuers.

Response API Payload

{
  'contractParameters': {
     'account': '',
     'attrKeys': [],
     'attrValues': [],
     'attrTypes' [],
     'fee': '',
     'verifiedAt': '',
     'issuedAt': '',
     'chainId': '',
     'signature': '',
     'did': '',
  },
  
   // Remaining Issuer specific Response Payload
}

account

Wallet address of the user to verify

attrKeys

List of attribute identifiers linking the attribute type and the account.

attrValues

List of attributes values. See Passport Attributes for more information.

attrTypes

List of attributes types (ex: [utils.id("COUNTRY"), utils.id("AML")])

fee

Fee in the native token ($ETH for Ethereum, $MATIC for Polygon) for attaching the new attributes being attested by the issuers. The fee is in Wei.

100% of the fee is redistributed to the issuer.

verifiedAt

Unix Epoch (in seconds) representing the date when the attributes has been verified by the issuer.

issuedAt

Unix Epoch (in seconds) representing the date when the attributes signature has been generated - allowing the user to mint their passport

chainId

Blockchain Network chain Id (ex: 1 for Ethereum Mainnet, 137 for Polygon). See list of chain ID.

signature

ECDSA Signature signed by the issuer to generate a verifiable proof of the attributes attested

did (Optional)

The Decentralized Identifier for the wallet holders. This field is only required for passport issuers performing documentary KYC.

Last updated