ipld-eth-server/pkg/core/blockchain.go

10 lines
247 B
Go

package core
type Blockchain interface {
GetBlockByNumber(blockNumber int64) Block
SubscribeToBlocks(blocks chan Block)
StartListening()
StopListening()
GetContractStateAttribute(contractHash string, attributeName string) (*string, error)
}