Manage trust connections
Add Trust
// Trust indefinitely (default expiry = max uint96)
const receipt = await avatar.trust.add('0xOtherAvatar');
console.log(receipt.hash);
// Trust with custom expiry (seconds since epoch)
const oneYear = BigInt(Math.floor(Date.now() / 1000) + 365 * 24 * 60 * 60);
await avatar.trust.add('0xOtherAvatar', oneYear);
// Trust multiple avatars at once (Safe runner only)
await avatar.trust.add(['0xA', '0xB', '0xC']);Remove Trust
const receipt = await avatar.trust.remove('0xOtherAvatar');
console.log(receipt.hash);
// Batch revoke (Safe runner only)
await avatar.trust.remove(['0xA', '0xB']);Check Trust Direction
Inspect All Trust Relations
Last updated
Was this helpful?