src/sendTx

SendTx

Source:
Parameters:
Name Type Description
web3 object

声明的节点的Web3对象

account object

节点的账户对象

contract object

要使用节点合约ABI对象

method string

要使用的合约的具体方法和入参类型 eg. mymethod(address,uint32...)

params Array.<object>

合约方法入参 eg.[param1,param2...]

value number

存入交易

Returns:
Type:
Promise.<PromiEvent.<TransactionReceipt>>