|
|
|
@ -1946,7 +1946,15 @@ defmodule BlockScoutWeb.Etherscan do |
|
|
|
|
|
|
|
|
|
@contract_verify_action %{ |
|
|
|
|
name: "verify", |
|
|
|
|
description: "Verify a contract with its source code and contract creation information.", |
|
|
|
|
description: """ |
|
|
|
|
Verify a contract with its source code and contract creation information. |
|
|
|
|
|
|
|
|
|
curl example: |
|
|
|
|
|
|
|
|
|
curl -d '{"addressHash":"0xd6984e092b51337032cf0300c7291e4839be37e1","compilerVersion":"v0.5.4+commit.9549d8ff", |
|
|
|
|
"contractSourceCode":"pragma solidity ^0.5.4;\n","name":"Test","optimization":false}' |
|
|
|
|
-H "Content-Type: application/json" -X POST "https://blockscout.com/eth/kovan/api?module=contract&action=verify" |
|
|
|
|
""", |
|
|
|
|
required_params: [ |
|
|
|
|
%{ |
|
|
|
|
key: "addressHash", |
|
|
|
|