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

Method BalanceAt

interfaces.go:78–78  ·  view source on GitHub ↗
(ctx context.Context, account common.Address, blockNumber *big.Int)

Source from the content-addressed store, hash-verified

76// In many cases, using CallContract can be preferable to reading raw contract storage.
77type ChainStateReader interface {
78 BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
79 StorageAt(ctx context.Context, account common.Address, key common.Hash, blockNumber *big.Int) ([]byte, error)
80 CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
81 NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)

Callers 5

printBalanceFunction · 0.65
printBalanceFunction · 0.65
mainFunction · 0.65
FundForRNodeMethod · 0.65

Implementers 2

SimulatedBackendaccounts/abi/bind/backends/simulated.g
Clientapi/cpclient/cpclient.go

Calls

no outgoing calls

Tested by 1