From 5e73a671ccd6267dfe3dc8b02374093f66d203ca Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Sat, 28 Sep 2019 16:29:32 +0300 Subject: [PATCH] add verify contract rpc doc --- apps/block_scout_web/lib/block_scout_web/etherscan.ex | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/block_scout_web/lib/block_scout_web/etherscan.ex b/apps/block_scout_web/lib/block_scout_web/etherscan.ex index cedc6d77ad..652fee5ab2 100644 --- a/apps/block_scout_web/lib/block_scout_web/etherscan.ex +++ b/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",