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

Function toBlockNumArg

api/cpclient/cpclient.go:277–282  ·  view source on GitHub ↗
(number *big.Int)

Source from the content-addressed store, hash-verified

275}
276
277func toBlockNumArg(number *big.Int) string {
278 if number == nil {
279 return "latest"
280 }
281 return hexutil.EncodeBig(number)
282}
283
284type rpcProgress struct {
285 StartingBlock hexutil.Uint64

Callers 12

BlockByNumberMethod · 0.85
HeaderByNumberMethod · 0.85
GetBlockRewardMethod · 0.85
GetProposerByBlockMethod · 0.85
BalanceAtMethod · 0.85
StorageAtMethod · 0.85
CodeAtMethod · 0.85
NonceAtMethod · 0.85
toFilterArgFunction · 0.85
CallContractMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected