Skip to content

Explorer

Verified contracts

Open in

OrbitWan compiles a contract’s published source with the exact compiler it was built with, and compares the result with the code the chain runs. The code on the chain decides the result.

Mark Meaning
Exact Match The compiled code is identical to the code on chain, byte for byte, so the published source is the real source
Similar Match Identical once the compiler’s metadata hash is set aside, or identical code that holds no hash of its source. The logic is the same, but the source text is not proven identical
Proxy The address is a proxy: its logic lives in a separate contract, which is linked
No mark The source is not verified

The metadata hash is a fingerprint the compiler adds to the code. It changes with the source files’ text, comments included, and with the compiler settings. Some values are written into a contract’s code when it is deployed; they are always taken as the chain holds them.

Verified does not mean safe. It proves that the published source is the code the chain runs, not that the code is safe or that the contract is the one a project really uses.

An address page shows a contract’s source and its mark on the Contract tab, and orbitwan.io/verified lists every verified contract. Every contract behind xWAN Express, xLend and OrbitPay is verified on orbitwan.io and on Sourcify.

How a contract gets verified

Way What OrbitWan does
Published source Compiles the source with its exact compiler and compares the result with the code on chain
Same code Checks every contract on Wanchain, including those made by other contracts. One that holds the code of a verified contract, or the same compiled code with other values written at deployment, is verified from that contract’s source
Sourcify Reads Sourcify’s list of Wanchain contracts every day, compiles each source again with its own compiler and compares the result with the code on chain

Every way ends in the same comparison, so a mark means the same thing whichever way led to it. On the Contract tab, Source repo opens the repository the source came from, or the contract’s page on Sourcify.

To have your own contract verified here, verify it on Sourcify. OrbitWan reads it there within a day and checks it again itself.

Contracts that are not verified

For a contract that is not verified, OrbitWan reads from its code the functions it answers to. Each function is named where a known signature has the same selector, from a contract verified on Wanchain or a public signature directory. A selector is four bytes, so different functions can share one: the names are guesses. The list is in the JSON below and in the MCP server.

Check it yourself

Terminal window
curl -O https://orbitwan.io/verify.sh
bash verify.sh 0xADDRESS

The script fetches the source and compiler settings OrbitWan stored for the contract, downloads that official Solidity compiler and checks its checksum, compiles, reads the contract’s code from a Wanchain node and compares the two. It prints EXACT MATCH or SIMILAR MATCH, or FAIL with the first byte that differs, and exits 0 only on a match. For a contract OrbitWan has not verified it prints NOT VERIFIED. It needs bash, curl, jq and python3, and runs on Linux on a 64 bit Intel or AMD machine.

By default it reads the code from OrbitWan’s own node. To read it from a node of your choice, add its URL:

Terminal window
bash verify.sh 0xADDRESS --rpc https://your-wanchain-node

Read a verdict as JSON

Terminal window
curl https://orbitwan.io/idx/contract/0xADDRESS
Field What it holds
verified true or false
match_type full for Exact Match, partial for Similar Match
contract_name The compiled contract’s name
abi The contract’s ABI
sources Every source file, as published
stdjson_input The exact compiler input. Compiling it again is the whole proof
match_details What was set aside in the comparison, and why
provenance The source repository and commit, the compiler version and settings, and the hashes of the code on chain and compiled
provenance.origin How it was verified: compiled from published source, code_match for the code of a contract verified here, sourcify from its Sourcify source
provenance.matched_from For code_match, the verified contract whose code it holds
proxy For a proxy, its pattern and the contract it points to
register The code the address holds: its hash, its size and the block it was read at, and the other addresses that hold the same code
sourcify When Sourcify lists the address: its page there and Sourcify’s own match words
bytecode_functions For a contract that is not verified: the functions its code answers to, with names that are guesses, and truncated when the reading stopped before the end