Managing trust connections via Org avatar account

Organizations can establish trust relationships with other avatars:

  1. Trust other avatars:

    await orgAvatar.trust(otherAvatarAddress);  // Or trust multiple avatars at once  await orgAvatar.trust([avatar1Address, avatar2Address]);
  2. Revoke trust:

    await orgAvatar.untrust(otherAvatarAddress);
  3. Check trust relationships:

    const isTrusting = await orgAvatar.trusts(otherAvatarAddress);
    const isTrustedBy = await orgAvatar.isTrustedBy(otherAvatarAddress);
  4. Get all trust relations:

    const trustRelations = await orgAvatar.getTrustRelations();

Last updated

Was this helpful?