"0xa9059cbb"余额查询:balanceOf(address)编码为:web3.sha3("balanceOf(address)").substring(0,10) -> "0x70a08231"transfer(address,_以太坊智能合约各方法对应的签名编码">
赞
踩
erc20智能合约常见方法对应的签名编码:
transfer(address,uint256)
编码为:
web3.sha3("transfer(address,uint256)").substring(0,10) -> "0xa9059cbb"
编码为:
web3.sha3("balanceOf(address)").substring(0,10) -> "0x70a08231"
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。