forked from cerc-io/ipld-eth-server
11 lines
288 B
Go
11 lines
288 B
Go
package core
|
|
|
|
type Blockchain interface {
|
|
GetBlockByNumber(blockNumber int64) Block
|
|
SubscribeToBlocks(blocks chan Block)
|
|
StartListening()
|
|
StopListening()
|
|
GetContract(contractHash string) (Contract, error)
|
|
GetAttribute(contract Contract, attributeName string) (interface{}, error)
|
|
}
|