Skip to main content
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.
Parameters (VerifyRunParams): Returns: Promise<Hash>

isVerified

Check if a specific run has been verified on-chain.
Returns: Promise<boolean>

computeRunId

Compute the runId that the contract uses, matching the on-chain derivation.
Returns: Hex

getAttestedRuns

Fetch multiple attested run records.
Returns: Promise<AttestedRun[]> The AttestedRun type: