blockchain

package
v0.74.1-pre Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccount

func GetAccount(scriptHash []byte) account.Account

GetAccount returns the account found by the given script hash.

func GetAsset

func GetAsset(assetID []byte) asset.Asset

GetAsset returns the asset found by the given asset id.

func GetBlock

func GetBlock(heightOrHash interface{}) block.Block

GetBlock returns the block found by the given hash or index.

func GetContract

func GetContract(scriptHash []byte) contract.Contract

GetContract returns the contract found by the given script hash.

func GetHeader

func GetHeader(heightOrHash interface{}) header.Header

GetHeader returns the header found by the given hash or index.

func GetHeight

func GetHeight() int

GetHeight returns the height of te block recorded in the current execution scope.

func GetTransaction

func GetTransaction(hash []byte) transaction.Transaction

GetTransaction returns the transaction found by the given hash.

func GetValidators

func GetValidators() [][]byte

GetValidators returns a slice of validator addresses.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL