Documentation ¶
Index ¶
- Variables
- func ParseMethod(data []byte, contractabi string, sm bool) (funcName string, constant bool, err error)
- func ParseTrans(data string, contractAbi string, sm bool) (contractAddress, funcName string, constant bool, err error)
- func TransData(contractabi, contractAddress string, funcName string, args []interface{}, ...) (string, bool, error)
- type Transaction
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ParseMethod ¶
func ParseTrans ¶
Types ¶
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func NewTransaction ¶
func NewTransaction(nonce *big.Int, to common.Address, amount *big.Int, gasLimit *big.Int, gasPrice *big.Int, blockLimit *big.Int, data []byte, chainId *big.Int, groupId *big.Int, extraData []byte, smcrypto bool) *Transaction
NewTransaction returns a new transaction
func (*Transaction) DecodeRLP ¶
func (tx *Transaction) DecodeRLP(s *rlp.Stream) error
DecodeRLP implements rlp.Decoder
func (*Transaction) EncodeRLP ¶
func (tx *Transaction) EncodeRLP(w io.Writer) error
EncodeRLP implements rlp.Encoder
func (*Transaction) Sign ¶
func (tx *Transaction) Sign(priKey *ecdsa.PrivateKey, isSM bool) []byte
func (*Transaction) SignData ¶
func (tx *Transaction) SignData(priKey interface{}) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.