blockchain

package
v0.0.0-...-b4ee2f2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SDK           *fabsdk.FabricSDK          // Fabric提供的SDK
	ChannelName   = "assetschannel"          // 通道名称
	ChainCodeName = "blockchain-real-estate" // 链码名称
	Org           = "org1"                   // 组织名称
	User          = "Admin"                  // 用户
	ConfigPath    = "conf/config.yaml"       // 配置文件路径
)

配置信息

Functions

func ChannelExecute

func ChannelExecute(fcn string, args [][]byte) (channel.Response, error)

ChannelExecute 区块链交互

func ChannelQuery

func ChannelQuery(fcn string, args [][]byte) (channel.Response, error)

ChannelQuery 区块链查询

func ChannelQueryBlockinfo

func ChannelQueryBlockinfo() (BciResp *fab.BlockchainInfoResponse, err error)

查询账本信息

func Init

func Init()

Init 初始化

func QueryBlockinfoByBlockHeight

func QueryBlockinfoByBlockHeight(BlockHeight uint64) (BlockResp *common.Block, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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