github.com/chain5j/chain5j-pkg@v1.0.7/types/call_msg.go (about) 1 // Package types 2 // 3 // @author: xwc1125 4 package types 5 6 import "math/big" 7 8 // CallMsg contains parameters for contract calls. 9 type CallMsg struct { 10 From Address // the sender of the 'transaction' 11 To *Address // the destination contract (nil for contract creation) 12 Gas uint64 // if 0, the call executes with near-infinite gas 13 GasPrice *big.Int // wei <-> gas exchange ratio 14 Value *big.Int // amount of wei sent along with the call 15 Data []byte // input data, usually an ABI-encoded contract method invocation 16 }