Ethereum Smart Contracts Learning 3 - Find Contracts

How to find a contract from the blockchain.

record:

Address: 0x36F61a90C3DAfb745d484e7F52e35235fEc9bb5d

Name:  Ballot 36f6

接口:[ { "constant": false, "inputs": [ { "name": "proposal", "type": "uint256" } ], "name": "vote", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "proposals", "outputs": [ { "name": "name", "type": "bytes32", "value": "0x2000000000000000000000000000000000000000000000000000000000000000" }, { "name": "voteCount", "type": "uint256", "value": "2" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "chairperson", "outputs": [ { "name": "", "type": "address", "value": "0x15ed970cc673c6a8912c42663104c25e9d25698a" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "to", "type": "address" } ], "name": "delegate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "winningProposal", "outputs": [ { "name": "winningProposal1", "type": "uint256", "value": "1" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "voter", "type": "address" } ], "name": "giveRightToVote", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "address" } ], "name": "voters", "outputs": [ { "name": "weight", "type": "uint256", "value": "0" }, { "name": "voted", "type": "bool", "value": false }, { "name": "delegate", "type": "address", "value": "0x0000000000000000000000000000000000000000" }, { "name": "vote", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "winnerName", "outputs": [ { "name": "winnerName1", "type": "bytes32", "value": "0x2000000000000000000000000000000000000000000000000000000000000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "inputs": [ { "name": "proposalNames", "type": "bytes32[]", "index": 0, "typeShort": "bytes", "bits": "32[]", "displayName": "proposal Names", "template": "elements_input_json", "value": [ 1, 2, 3 ] } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" } ]name": "proposalNames", "type": "bytes32[]", "index": 0, "typeShort": "bytes", "bits": "32[]", "displayName": "proposal Names", "template": "elements_input_json", "value": [ 1, 2, 3 ] } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" } ]name": "proposalNames", "type": "bytes32[]", "index": 0, "typeShort": "bytes", "bits": "32[]", "displayName": "proposal Names", "template": "elements_input_json", "value": [ 1, 2, 3 ] } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" } ]type": "constructor" } ]type": "constructor" } ]


Close the wallet and open it again, and the contract is gone.


Click WATCH CONTRACT, enter the address, name, interface


Click ok and the contract will appear




Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324877332&siteId=291194637