Plume
  • Introduction
    • Overview
  • Official Tokens
    • PLUME ($PLUME) Token
    • Plume USD (pUSD)
  • Plume Security
    • AML Screening
    • Compliance at Plume
    • Audits and Security
  • Developers
    • Plume Testnet
    • Smart Contracts
    • How-to Guides
      • How to Connect to Testnet
        • Install and Configure Wallet
        • Claim test tokens
      • How to Deploy Smart Contracts
        • Deploy using Remix IDE
        • Deploy using Foundry
        • Deploy using Hardhat
      • How to Verify Smart Contracts
        • Verify using Foundry
        • Verify using Hardhat
      • How to Run a Node
    • Plume vs. Ethereum
    • Gas and Fees
    • Finality
  • Community and Support
    • Community Channels
    • Brand Assets
    • Terms of Service
    • Privacy Policy
  • MORE
    • Glossary
    • FAQ
Powered by GitBook
On this page
  • Verify your Contract
  • Sample Output
  1. Developers
  2. How-to Guides
  3. How to Verify Smart Contracts

Verify using Foundry

PreviousHow to Verify Smart ContractsNextVerify using Hardhat

Last updated 22 days ago

Verify your Contract

To verify your smart contract that is already deployed, refer the instructions in page. Run the following command:

export PLUME_RPC_URL=https://testnet-rpc.plume.org
export VERIFIER_URL=https://testnet-explorer.plume.org/api/
export CONTRACT_ADDRESS=<your_contract_address>
export CONTRACT_PATH=<contract_file>:<contract_name>

forge verify-contract $CONTRACT_ADDRESS $CONTRACT_PATH \
    --rpc-url $PLUME_RPC_URL \
    --verifier blockscout \
    --verifier-url $VERIFIER_URL

Make sure to replace the details in the <contract address> and <contract_file>:<contract_name> with your contract details.

Sample Output

Start verifying contract `0x4b98e3767DB95C5D30834E1261Ea4Caa96081160` deployed on 98867

Submitting verification for [src/RolexYachtMaster40.sol:RolexYachtMaster40] 0x4b98e3767DB95C5D30834E1261Ea4Caa96081160.
Submitted contract for verification:
        Response: `OK`
        GUID: `4b98e3767db95c5d30834e1261ea4caa9608116067b396ba`
        URL: https://testnet-explorer.plume.org/address/0x4b98e3767db95c5d30834e1261ea4caa96081160
Blockscout's Foundry Contract Verification