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

Method ChainId

types/transaction.go:107–109  ·  view source on GitHub ↗

ChainId returns which chain id this transaction was signed for (if at all)

()

Source from the content-addressed store, hash-verified

105
106// ChainId returns which chain id this transaction was signed for (if at all)
107func (tx *Transaction) ChainId() *big.Int {
108 return deriveChainId(tx.data.V)
109}
110
111// Protected returns whether the transaction is protected from replay protection.
112func (tx *Transaction) Protected() bool {

Callers 8

TestTransactionJSONFunction · 0.95
SenderMethod · 0.45
TestEIP155ChainIdFunction · 0.45
newRPCTransactionFunction · 0.45
GetTransactionReceiptMethod · 0.45
PendingTransactionsMethod · 0.45
ResendMethod · 0.45

Calls 1

deriveChainIdFunction · 0.85

Tested by 2

TestTransactionJSONFunction · 0.76
TestEIP155ChainIdFunction · 0.36