📔
Seitrace
  • Introduction
  • Sei Network
  • EVM <> Wasm interoperability
    • Pointer contracts
    • Associated accounts
    • Associated transactions
  • Insights (APIs)
    • Introduction
    • Activating free trial package
    • Purchasing an Insights Package
    • Create your API keys
    • Insights (APIs) docs
  • BROWSING THE SITE
    • Homepage
    • Search bar
    • Transactions
    • Validators
    • Proposals
    • IBC Relayers
    • Blocks
    • Top Accounts
    • Account details
    • Verified contracts
    • Contract details
  • Assets
    • Fungible tokens
      • Tokens
      • Tokens details
    • Non-fungible tokens (NFT)
      • Collections
      • Collection details
      • NFT details
  • Verify contract
    • Verify contract (EVM)
      • Seitrace UI
      • Hardhat Verification Plugin
      • Custom ABI
      • API for EVM Contract verification
    • Interacting with Smart Contracts
  • Profile
    • My account
    • Watch list and Private Tags
  • Earnings
    • Listing new earnings
  • Coming soon
    • Custom ABI
    • Code ID (Native SEI)
    • Charts & stats
    • Verify Contract (Cosmos)
    • Public tags
    • Token info
  • Contact Us
    • Twitter (X)
Powered by GitBook
On this page
  • Smart Contract Verification with Seitrace
  • Troubleshooting
  1. Verify contract
  2. Verify contract (EVM)

Seitrace UI

PreviousVerify contract (EVM)NextHardhat Verification Plugin

Last updated 11 months ago

Verification is available for both Solidity and Vyper contracts. Currently, there are 6 methods for verification using the Seitrace UI.

Access function at:

Smart Contract Verification with Seitrace

  1. Go to the Verify contract page (Resources -> Verify contract(EVM))

  1. Enter in the contract address you received during deployment. The dropdown will show you several available verification options. Select the one you would like to use and continue.

  • Solidity (Flattened source code)

  • Solidity (Standard JSON input)

  • Solidity (Multi-part files)

  • Vyper (Contract)

  • Vyper (Multi-part files)

  • Vyper (Standard JSON input)

Solidity (Flattened source code)

  1. Contract Address: The 0x address supplied on contract creation (added above)

  2. Is Yul contract: Select if the contract is coded in Yul for efficiency.

  3. Include Nightly Builds: Select if you want to show nightly builds.

  4. Compiler: derived from the first line in the contract pragma solidity X.X.X. Use the corresponding compiler version rather than the nightly build.

  5. Optimization Enabled: If you enabled optimization during compilation, select and enter the run value. 200 is the Solidity Compiler default value. Only change if you changed this value while compiling.

  6. Add Contract Libraries: Enter the name and 0x address for any required libraries called in the .sol file. You can add multiple contracts with the "+" button.

  7. Click the Verify and Publish button.

  8. If all goes well, you will see a checkmark ✅ next to Code in the code tab, and an additional tab called Read Contract. The contract name will now appear in Seitrace with any transactions related to your contract.

Solidity (Standard JSON input)

  1. Include nightly builds. You can choose Yes or No depending on your compiler.

  2. Compiler. Choose the compiler version used to compile your smart contract. If you selected yes for nightly builds, use the compiler version rather than the build.

Click the Verify & publish button and wait for the response.

Vyper Contract

  1. Contract Name: Name assigned to the contract.

  2. Compiler: Select the compiler version used in the source code.

  3. Contract Code: Copy and paste the contract code

  4. Click the Verify and Publish button.

If all goes well, you will see a checkmark ✅ next to Code in the code tab, and an additional tab called Read Contract. The contract name will now appear in BlockScout with any transactions related to your contract.

Vyper Multi-part files and standard json input

See the information above.

Troubleshooting

If you receive the dreaded There was an error compiling your contract message this means the bytecode doesn't match the supplied sourcecode. Unfortunately, there are many reasons this may be the case. Here are a few things to try:

1) Double check the compiler version is correct.

Check all version digits - for example 0.5.1 is different from 0.5.10

2) Check that an extra space has not been added to the end of the contract. When pasting in, an extra space may be added. Delete this and attempt to recompile.

3) Copy, paste, and verify your source code in Remix. You may find some exceptions here.

EVM Version: Select the correctif known, otherwise use default.

Enter the Solidity Contract Code: You may need to flatten your solidity code if it utilizes a library or inherits dependencies from another contract. We recommend or the .

Standard Input JSON. Upload your Standard Input JSON file. File should follows solidity and all the sources must be in Literal Content format, not a URL.

EVM Version: Select the correctif known, otherwise use default.

EVM version
hardhat
POA solidity flattener
More information on JSON input is available here
format
EVM version
https://seitrace.com/contract-verification