add verify contract rpc doc

pull/2740/head
Ayrat Badykov 5 years ago committed by Victor Baranov
parent 73e7e0ba79
commit 5e73a671cc
  1. 10
      apps/block_scout_web/lib/block_scout_web/etherscan.ex

@ -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",

Loading…
Cancel
Save