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

13 lines
367 B
Go
Raw Normal View History

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