isAuthorizationStored
isAuthorizationStored(
authorizationUri):Promise<boolean>
Checks if a given authorization exists on the CORD blockchain.
Parameters
Section titled “Parameters”• authorizationUri: `auth:cord:${string}`
The URI of the authorization to check.
Returns
Section titled “Returns”Promise<boolean>
A promise resolving to true if the authorization exists, false otherwise.
Remarks
Section titled “Remarks”Queries the blockchain to verify the presence of an authorization, identified by the given URI.
Example
Section titled “Example”const authorizationUri = 'auth:example_uri';isAuthorizationStored(authorizationUri).then(exists => { console.log(`Authorization ${exists ? 'exists' : 'does not exist'} on the blockchain.`);}).catch(error => { console.error('Error querying authorization existence:', error);});Throws
Section titled “Throws”- Thrown on error during the blockchain query.