ipld-eth-server/pkg/core/blockchain.go
2017-12-05 09:39:58 -06:00

13 lines
339 B
Go

package core
import "math/big"
type Blockchain interface {
GetBlockByNumber(blockNumber int64) Block
SubscribeToBlocks(blocks chan Block)
StartListening()
StopListening()
GetAttributes(contract Contract) (ContractAttributes, error)
GetAttribute(contract Contract, attributeName string, blockNumber *big.Int) (interface{}, error)
}