MCPcopy Create free account
hub / github.com/CPChain/chain / NewTransaction

Function NewTransaction

types/transaction.go:71–73  ·  view source on GitHub ↗

TODO: add new parameter 'isPrivate'.

(nonce uint64, to common.Address, amount *big.Int, gasLimit uint64, gasPrice *big.Int, data []byte)

Source from the content-addressed store, hash-verified

69
70// TODO: add new parameter 'isPrivate'.
71func NewTransaction(nonce uint64, to common.Address, amount *big.Int, gasLimit uint64, gasPrice *big.Int, data []byte) *Transaction {
72 return newTransaction(nonce, &to, amount, gasLimit, gasPrice, data, BasicTx)
73}
74
75// TODO: add new parameter 'isPrivate'.
76func NewContractCreation(nonce uint64, amount *big.Int, gasLimit uint64, gasPrice *big.Int, data []byte) *Transaction {

Callers 12

TestTransactionJSONFunction · 0.85
TestTxIsPrivateFunction · 0.85
TestTxCheckTypeFunction · 0.85
TestTxSetTypeFunction · 0.85
TestBlockEncodingFunction · 0.85
TestEIP155SigningFunction · 0.85
TestEIP155ChainIdFunction · 0.85
TestChainIdFunction · 0.85
TestSigningPrivateTxFunction · 0.85

Calls 1

newTransactionFunction · 0.85

Tested by 11

TestTransactionJSONFunction · 0.68
TestTxIsPrivateFunction · 0.68
TestTxCheckTypeFunction · 0.68
TestTxSetTypeFunction · 0.68
TestBlockEncodingFunction · 0.68
TestEIP155SigningFunction · 0.68
TestEIP155ChainIdFunction · 0.68
TestChainIdFunction · 0.68
TestSigningPrivateTxFunction · 0.68