Reads the custom float value with the provided name in the consent section of the provided Access Credential.
Throws on type mismatch, and returns undefined if no values are found.
Parameters
accessCredential: DatasetWithId
The Access Credential (Access Grant or Access Request)
field: URL
Returns undefined|number
the custom float field with the provided name
Example
constaccessRequest = awaitissueAccessRequest({...}, { ..., customFields:newSet([ { key:newURL("https://example.org/ns/customFloat"), value:1.1, }, ]), }); // f is 1.1 constf = getCustomFloat(accessRequest, newURL("https://example.org/ns/customFloat"));
Reads the custom float value with the provided name in the consent section of the provided Access Credential. Throws on type mismatch, and returns
undefined
if no values are found.