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

Method Number

types/block.go:428–428  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

426}
427
428func (b *Block) Number() *big.Int { return new(big.Int).Set(b.header.Number) }
429func (b *Block) GasLimit() uint64 { return b.header.GasLimit }
430func (b *Block) GasUsed() uint64 { return b.header.GasUsed }
431

Callers 15

TestHandlerHelper_NumberFunction · 0.95
TraceChainMethod · 0.95
CodeAtMethod · 0.45
BalanceAtMethod · 0.45
NonceAtMethod · 0.45
StorageAtMethod · 0.45
CallContractMethod · 0.45

Calls 1

SetMethod · 0.45

Tested by 9

TestHandlerHelper_NumberFunction · 0.76
TestClient_BlockByNumberFunction · 0.36
testStatusMsgErrorsFunction · 0.36
HeadMethod · 0.36