以太坊智能合约学习3 - 查找合约

怎样从区块链里面查找一个合约。

记录下:

地址:0x36F61a90C3DAfb745d484e7F52e35235fEc9bb5d

名字: 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" } ]


关掉钱包再打开, 合约就不见了。


点WATCH CONTRACT, 输入地址, 名字, 接口


点ok, 合约就出现了

扫描二维码关注公众号,回复: 69403 查看本文章




猜你喜欢

转载自blog.csdn.net/luoie/article/details/79203392