attestedPolicy
attestedPolicy(
config):TrustPolicy
Defined in: packages/sdk/src/attest.ts:294
Accept a descriptor only when a trusted attester has a valid ERC-8176
offchain EAS v2 attestation for descriptor.hash. Does not issue attestations.
Parameters
Section titled “Parameters”config
Section titled “config”Returns
Section titled “Returns”Example
Section titled “Example”import { attestedPolicy } from '@erc7730/sdk/attest';
const trust = attestedPolicy({ attesters: ['0x0000000000000000000000000000000000000001'], eas: { call: async () => '0x0000000000000000000000000000000000000000000000000000000000000000', },});