Skip to content

About

Cross-chain smart contract search

Resources

Stars

23 stars

Watchers

3 watching

Forks

Repository files navigation

ContractScan

Cross-chain smart contract search

How it works

For a given address, ContractScan pulls the bytecode on each supported chain. If there is bytecode, it will mark the contract as deployed on that chain. It will also compare the bytecode from all chains to see if they are the same.

For tokenized stocks, Tokenform's Apple records distinguish issuer-specific instruments and their chain-specific addresses. Choose an instrument and a deployment on an EVM chain supported here, then inspect its address with ContractScan. Bytecode presence or equality does not establish issuer identity, backing or current support.

Supports 100+ EVM chains.

Uses viem as a source of public RPCs and block explorer links.

List of currently supported chains: chains.ts.

Caching

ContractScan caches the bytecode hash for deployed contracts. For cached and deployed contracts, the response is effectively instant.

List of currently cached contracts: addresses.json.

Bundles

Note: this feature is experimental

ContractScan supports showing multiple contracts at once.

Example: Safe 1.4.1 deployment.

Cloudflare Worker

bun install --frozen-lockfile
bun run build:worker
bunx wrangler@4.167.0 dev

Against a Worker without the Etherscan secret, run node scripts/smoke-worker.mjs (optionally pass the Worker URL for a remote smoke test).

wrangler.jsonc publishes Nitro SSR and .output/public to workers.dev only. The Deploy to Cloudflare workflow builds and deploys main. Configure ETHERSCAN_API_KEY as a runtime secret on contract-scan, not as a build variable or a GitHub Actions secret.

Contributing

Feel free to extend the list of supported chains or cached contracts.


Made by Destiner.

About

Cross-chain smart contract search

Resources

Stars

23 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages

Generated from Destiner/starter-app