跳到正文

一个不会变陈旧的徽章

徽章每次渲染时都会读取登记簿。如果后来的一次审计把分数从 88 改成 43,徽章就显示 43。

本页与合约相关的陈述以英文版为准。合约名称、地址和数字按链上原样显示。

嵌入代码

把这段代码粘贴到你想放徽章的地方。它是一个 iframe,不需要脚本。

预览

输入一个代币地址,徽章就出现在这里,实时读取登记簿。

不存在“已验证安全”的徽章,将来也不会有。徽章报告的是一次度量和它的日期。

或者直接读取合约

徽章会读取两个登记表:若存在则从 KAY9Registry 读取签名报告,否则从 KAY9ScanRegistry 读取基础扫描。不需要 API 密钥,没有速率限制,也不依赖这个网站。

KAY9Registry.latestSummaryForToken(bytes32 chainKey, address token)
  returns (
    bool    exists,
    uint256 reportId,
    uint8   overallTrust,     // 0 worst, 100 most trustworthy
    uint64  flags,
    uint32  engineVersion,
    uint64  committedAt      // always render this
  )

KAY9Registry.scoreHistory(bytes32 chainKey, bytes32 assetId, uint256 offset, uint256 limit)
  returns (uint64[] committedAt, uint8[] overallTrust)

chainKey = keccak256("eip155:4663")