ipld-eth-server/pkg/core/blockchain.go
2017-11-29 09:32:34 -06:00

11 lines
323 B
Go

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