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

Method GetValidatorsByBlockNumber

api/cpclient/cpclient.go:418–422  ·  view source on GitHub ↗

get the validators specified by block

(ctx context.Context, blockNumber *big.Int)

Source from the content-addressed store, hash-verified

416
417// get the validators specified by block
418func (c *Client) GetValidatorsByBlockNumber(ctx context.Context, blockNumber *big.Int) ([]common.Address, error) {
419 var result []common.Address
420 err := c.c.CallContext(ctx, &result, "eth_getValidatorsByBlockNumber", toBlockNumArg(blockNumber))
421 return result, err
422}
423
424// BalanceAt returns the wei balance of the given account.
425// The block number can be nil, in which case the balance is taken from the latest known block.

Callers 1

mainFunction · 0.45

Calls 2

toBlockNumArgFunction · 0.85
CallContextMethod · 0.80

Tested by

no test coverage detected