blockchain

package
v0.0.0-...-0584d29 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RPCAddress         = "127.0.0.1:30002"
	PasswordKey        = []byte("temp")
	BPRegisterPassword = "temp"
)

Functions

func GetAccount

func GetAccount(name string, byLongestChain bool) (*rpcpb.Account, error)

func GetBlockByHash

func GetBlockByHash(hash string, complete bool) (*rpcpb.BlockResponse, error)

func GetBlockByNum

func GetBlockByNum(num int64, complete bool) (*rpcpb.BlockResponse, error)

func GetContract

func GetContract(id string, byLongestChain bool) (*rpcpb.Contract, error)

func GetTokenBalance

func GetTokenBalance(account, token string, byLongestChain bool) (*rpcpb.GetTokenBalanceResponse, error)

func GetTxByHash

func GetTxByHash(hash string) (*rpcpb.TransactionResponse, error)

func GetTxReceiptByTxHash

func GetTxReceiptByTxHash(hash string) (*rpcpb.TxReceipt, error)

func InitConfig

func InitConfig()

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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