getAttestationDocument method
Future<TGetAttestationDocumentResponse>
getAttestationDocument({
- required TGetAttestationDocumentBody input,
Get the attestation document corresponding to an enclave.
Sign the provided TGetAttestationDocumentBody with the client's stamp function and submit the request (POST /public/v1/query/get_attestation).
See also: stampGetAttestationDocument.
Implementation
Future<TGetAttestationDocumentResponse> getAttestationDocument({
required TGetAttestationDocumentBody input,
}) async {
return await request<TGetAttestationDocumentBody,
TGetAttestationDocumentResponse>("/public/v1/query/get_attestation",
input, (json) => TGetAttestationDocumentResponse.fromJson(json));
}