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

Struct PublicBlockChainAPI

internal/cpcapi/api.go:469–471  ·  view source on GitHub ↗

PublicBlockChainAPI provides an API to access the Cpchain blockchain. It offers only methods that operate on public data that is freely available to anyone.

Source from the content-addressed store, hash-verified

467// PublicBlockChainAPI provides an API to access the Cpchain blockchain.
468// It offers only methods that operate on public data that is freely available to anyone.
469type PublicBlockChainAPI struct {
470 b Backend
471}
472
473// NewPublicBlockChainAPI creates a new Cpchain blockchain API.
474func NewPublicBlockChainAPI(b Backend) *PublicBlockChainAPI {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected