Skip to main content

Source & Decompilation

Preview: This endpoint is not yet generally available.

GET /api/v1/contracts/{chainId}/{address}/source

Required scope: contracts:source

The API resolves the best available code artifact for a deployed contract:

  • If the explorer provides usable verified Solidity, the verified source bundle is returned.
  • Otherwise, SUMUN reads runtime bytecode and returns a clearly labeled behavioral reconstruction.

Consumers must inspect the source-origin field and preserve the accompanying warnings. Decompiled output must never be presented as verified original source or treated as deployable replacement code.