Managing trust connections via Org avatar account
Trust Another Avatar
const orgAvatar = await sdk.getAvatar('0xOrgAvatar');
const receipt = await orgAvatar.trust.add('0xCollaborator');
console.log('Trust added:', receipt.hash);Remove Trust
const revoke = await orgAvatar.trust.remove('0xCollaborator');
console.log('Trust removed:', revoke.hash);Inspect Trust Direction
const trusts = await orgAvatar.trust.isTrusting('0xPeer'); // org -> peer
const trustedBy = await orgAvatar.trust.isTrustedBy('0xPeer'); // peer -> org
console.log({ trusts, trustedBy });List All Trust Relations
Last updated
Was this helpful?