一個不會過期的徽章
徽章每次渲染都會讀取登錄簿。如果後來的稽核把分數從 88 改成 43,徽章就顯示 43。
本頁的合約敘述以英文版為準。合約名稱、地址與數字依鏈上原樣顯示。
嵌入碼
把這段貼在你想放徽章的地方。它是一個 iframe,不需要任何 script。
—
預覽
輸入代幣地址,徽章就會出現在這裡,即時讀取登錄簿。
沒有「已查證安全」這種徽章,也永遠不會有。徽章報告的是一次量測與它的日期。
或直接讀取合約
徽章會讀取兩個登錄簿:若存在則從 KAY9Registry 讀取簽署報告,否則從 KAY9ScanRegistry 讀取基礎掃描。不需要 API key、沒有速率限制,也不依賴這個網站。
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")