/**
 * Multi-Chain Trust Verification
 *
 * Verify an agent's trust profile across all 4 Vaultfire chains
 * simultaneously. Useful for determining cross-chain presence.
 *
 * Run: npx ts-node examples/multi-chain-trust.ts
 */

import { VaultfireClient } from '@vaultfire/langchain';

const AGENT_ADDRESS = '0xA054f831B562e729F8D268291EBde1B2EDcFb84F';

async function main() {
  console.log(`Verifying trust for ${AGENT_ADDRESS} across all chains...\n`);

  const results = await VaultfireClient.verifyTrustMultiChain(AGENT_ADDRESS);

  for (const [chain, trust] of Object.entries(results)) {
    console.log(`${chain.toUpperCase()}`);
    console.log(`  Active: ${trust.isActive}`);
    console.log(`  Street Cred: ${trust.streetCred.score}/95 (${trust.streetCred.tier})`);
    console.log(`  Bonds: ${trust.activeBondCount} active`);
    console.log(`  Trusted: ${trust.trusted}`);
    console.log(`  Reason: ${trust.reason}`);
    console.log();
  }
}

main().catch(console.error);
