Managing trust connections via Org avatar account
Organizations can establish trust relationships with other avatars:
Trust other avatars:
await orgAvatar.trust(otherAvatarAddress); // Or trust multiple avatars at once await orgAvatar.trust([avatar1Address, avatar2Address]);
Revoke trust:
await orgAvatar.untrust(otherAvatarAddress);
Check trust relationships:
const isTrusting = await orgAvatar.trusts(otherAvatarAddress); const isTrustedBy = await orgAvatar.isTrustedBy(otherAvatarAddress);
Get all trust relations:
const trustRelations = await orgAvatar.getTrustRelations();
Last updated
Was this helpful?