Foundry

Once your smart contract is deployed to Neura Testnet, you can verify it on Neura Explorer (Blockscout-based) to make the source code publicly viewable and auditable.

Contract verification uploads the source code and metadata used during compilation so the bytecode can be matched against what's deployed on-chain.

Network Details

  • Chain ID: 267

  • RPC URL: https://testnet.rpc.neuraprotocol.io

  • Blockscout Verifier URL: https://testnet-blockscout.infra.neuraprotocol.io/api/

  • Explorer URL: https://testnet-blockscout.infra.neuraprotocol.io/

  • Verification Standard: blockscout

Verification Command

forge verify-contract \
    <contract_address> \
    <contract_path>:<contract_name> \
    --chain <chain_id> \
    --verifier blockscout \
    --verifier-url <verifier_url>

Example Command

forge verify-contract \
  --rpc-url https://testnet.rpc.neuraprotocol.io \
  --verifier blockscout \
  --verifier-url 'https://testnet-blockscout.infra.neuraprotocol.io/api/' \
  0xcC1D674fbF08e16B0050DF175377604a166eC06D \
  src/Counter.sol:Counter

Example Output

Start verifying contract `0xcC1D674fbF08e16B0050DF175377604a166eC06D` deployed on 267

Submitting verification for [Counter] "0xcC1D674fbF08e16B0050DF175377604a166eC06D".
Contract successfully verified

Check the verified contract on Neura Blockscout Explorer.


Last updated