AttestationClient wraps the TEEAttestationVerifier contract. Access it via client.attestation. Use it to verify that an AgentBank agent ran specific code in a hardware-secured Trusted Execution Environment (Phala Cloud or Marlin Oyster).
TEEKind enum
Methods
verifyRun
Submit a hardware attestation proof for an agent run.VerifyRunParams):
Returns:
Promise<Hash>
isVerified
Check if a specific run has been verified on-chain.Promise<boolean>
computeRunId
Compute therunId that the contract uses, matching the on-chain derivation.
Hex
getAttestedRuns
Fetch multiple attested run records.Promise<AttestedRun[]>
The AttestedRun type: