new ValidateService(backendUrl)
An implementation of a the validation API, used to check to validity of credentials and claims.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
backendUrl |
String | https://issuer.trustedkey.com | The base backend URL |
- Source:
Methods
getTransactionStatus(txid) → {Promise.<string>}
Check the status of the specified blockchain transaction ID.
Parameters:
Name | Type | Description |
---|---|---|
txid |
String | Transaction ID to check. |
- Source:
Returns:
Transaction status
- Type
- Promise.<string>
keyInfo(address) → {Promise.<KeyInfoMap>}
Get extensive key information for given address.
Parameters:
Name | Type | Description |
---|---|---|
address |
String | Array.<string> | blockchain address(es) of claim/credential to query |
- Source:
Returns:
KeyInfoMap structure from smart contract
- Type
- Promise.<KeyInfoMap>
validateClaims(claimSerialNumbers) → {Promise.<boolean>}
Validate given claim(s) by calling into the smart contract.
Parameters:
Name | Type | Description |
---|---|---|
claimSerialNumbers |
String | Array.<string> | Array of claim serial numbers. |
- Source:
Returns:
Status indicating valid address
- Type
- Promise.<boolean>
validateCredential(credentialAddressString) → {Promise.<boolean>}
Validate the given credential by calling into the smart contract.
Parameters:
Name | Type | Description |
---|---|---|
credentialAddressString |
String | Credential to check. |
- Source:
Returns:
Status indicating valid address
- Type
- Promise.<boolean>