SocialScan Explorer API
  • Introduction
  • 🎯API ENDPOINTS
    • Accounts
    • Contracts
    • Transactions
    • Blocks
    • Logs
    • Tokens
    • Stats
  • 🗳️Verify Smart Contract
    • Verify Smart Contract
      • Verify with SocialScan UI
      • Verify with SocialScan API
      • Verify through Foundry
      • Verify through Hardhat
  • 🤝SUPPORT
    • FAQ
    • Rate Limits
    • Common Error Messages
    • Getting Help
Powered by GitBook
On this page

Was this helpful?

  1. Verify Smart Contract
  2. Verify Smart Contract

Verify with SocialScan API

PreviousVerify with SocialScan UINextVerify through Foundry

Last updated 1 year ago

Was this helpful?

API Host

<chain_name>/

Endpoint:

POST

The request parameters:

name

type

value

required

module

string

contract

true

action

string

verifysourcecode

true

The form parameters:

name

type

value

required

contractaddress

string

true

sourceCode

string

true

codeformat

string

"solidity-standard-json-input" or "solidity-single-file"

true

contractname

string

true

compilerversion

string

true

constructorArguments

string

false

optimizationUsed

string

"0" or "1"

false

runs

int

false

The response:

// Failed 

{
    "message": "Contract source code not verified",
    "status": "0"
}

// Succeed
{
    "message": "Contract successfully verified",
    "result": guid,
    "status": "1"
}

🗳️
https://api.socialscan.io/
/v1/explorer/command_api/contract