加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
contract.go 673 Bytes
一键复制 编辑 原始数据 按行查看 历史
楠木 提交于 2018-08-05 21:12 . [dev] contract module
/*
* Copyright (c) 2018 LI Zhennan
*
* Use of this work is governed by a MIT License.
* You may find a license copy in project root.
*/
package etherscan
// ContractABI gets contract abi for verified contract source codes
func (c *Client) ContractABI(address string) (abi string, err error) {
param := M{
"address": address,
}
err = c.call("contract", "getabi", param, &abi)
return
}
// ContractSource gets contract source code for verified contract source codes
func (c *Client) ContractSource(address string) (source []ContractSource, err error) {
param := M{
"address": address,
}
err = c.call("contract", "getsourcecode", param, &source)
return
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化