Documentation ¶
Index ¶
- Variables
- func ChannelExecute(fcn string, args [][]byte) (channel.Response, error)
- func ChannelQuery(fcn string, args [][]byte) (channel.Response, error)
- func ChannelQueryBlockinfo() (BciResp *fab.BlockchainInfoResponse, err error)
- func Init()
- func QueryBlockinfoByBlockHeight(BlockHeight uint64) (BlockResp *common.Block, err error)
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 ¶
ChannelExecute 区块链交互
func ChannelQuery ¶
ChannelQuery 区块链查询
func ChannelQueryBlockinfo ¶
func ChannelQueryBlockinfo() (BciResp *fab.BlockchainInfoResponse, err error)
查询账本信息
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.