verify_contract_metadata
Verify a contract's ERC-7730 metadata attestation against the on-chain KaiSign Registry to confirm the entry is finalized and not revoked.
Instructions
Diagnostic: verify one contract's metadata attestation against the on-chain KaiSign Registry. For decoding + safety verdicts on a transaction, prefer clear_sign_payload (it verifies every contract in the call tree automatically).
This tool checks whether a contract has finalized ERC-7730 metadata in the KaiSign Registry SMT on Sepolia. Entries are keyed by (chainId, target), where target is the transaction destination address.
Verification flow:
getLatestSpecForTarget(chainId, target) for the latest finalized, non-revoked UID
getAttestation(uid) and check chainId, target, finalized and not revoked
Compute the SMT leaf locally: keccak256(abi.encode(LEAF_TYPEHASH, chainId, target, metadataHash))
Compare against the registry approvedLeaf(chainId, target, metadataHash)
Returns:
verified: true if leaf hashes match
source: 'leaf-verified' (success), 'local-metadata' (local file, no on-chain attestation), 'mismatch', or 'error'
attestation details including target, metadataHash, finalizedAt, revoked status
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contractAddress": "<contractAddress>"
},
"name": "verify_contract_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | No | Chain ID where the contract is deployed | |
| contractAddress | Yes | Contract address to verify (0x...) |