11 lines
319 B
Go
11 lines
319 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) (*string, error)
|
|
}
|