Documentation ¶
Index ¶
- Variables
- func Hash(tx *Transaction) common.Hash
- func ParesData(contractabi, funcName string, args []interface{}, smcrypto bool) (string, error)
- 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 SM3HashNonSig(tx *Transaction) []byte
- func TransData(contractabi, contractAddress string, funcName string, args []interface{}, ...) (string, bool, error)
- type Transaction
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Hash ¶ added in v1.1.3
func Hash(tx *Transaction) common.Hash
func ParseMethod ¶
func ParseTrans ¶
func SM3HashNonSig ¶ added in v1.1.3
func SM3HashNonSig(tx *Transaction) []byte
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) SignData ¶
func (tx *Transaction) SignData(priKey key.PrivateKeyProvider) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.