Documentation ¶
Index ¶
- type BlockDeleteProof
- type BlockProof
- type BlockProofOption
- type BlockTemplate
- type BlockUserConfig
- type Chain
- type ChainClient
- type Config
- type Encrypt
- type GenAddressAndPrikeyRes
- type Grpc
- type QueryProof
- type ReqChainProofMember
- type ReqChainProofs
- type RespChainProofMember
- type RespChainProofs
- type TxInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockDeleteProof ¶
type BlockDeleteProof struct { Id string `json:"id"` // 存证哈希 Note string `json:"note"` Force bool `json:"force"` }
BlockDeleteProof 上链数据格式
type BlockProof ¶
type BlockProofOption ¶
区块链上链的option字段
type BlockTemplate ¶
模板上链格式
type BlockUserConfig ¶
type Chain ¶
type Chain struct { FeePrikey string // 代扣私钥字符串 FeeAddr string // 代扣地址 Title string // 虚拟平行链 BaseExec string `json:",default=none"` // 代扣执行器 CoinExec string `json:",default=coins"` // 平行链币消耗执行器 TokenExec string `json:",default=token"` // 平行链币消耗执行器 Coin string // 需要额外消耗的coin ReceiveCoinAddr string // 收费地址 ReceiveCoinAmount int64 `json:",default=100000000"` // 收费数量 BwalletReceiveCoinAddr string // 接收币钱包支付的地址 }
type ChainClient ¶
type ChainClient struct {
// contains filtered or unexported fields
}
func MustNewChainClient ¶
func MustNewChainClient(c *Config) *ChainClient
MustNewChainClient 新建上链客户端
func (*ChainClient) GetRealTx ¶
func (c *ChainClient) GetRealTx(hash string) (*chainTypes.TransactionDetail, error)
func (*ChainClient) QueryHash ¶
func (c *ChainClient) QueryHash(hash string) (*chainTypes.TransactionDetail, error)
type GenAddressAndPrikeyRes ¶
type QueryProof ¶
type ReqChainProofMember ¶
type ReqChainProofMember struct {
Address []string
}
type ReqChainProofs ¶
type ReqChainProofs struct {
Hashs []string `json:"hash"`
}
type RespChainProofMember ¶
type RespChainProofMember struct { Address string `json:"address"` Role string `json:"role"` Organization string `json:"organization"` Note string `json:"note"` Height int64 `json:"height"` Ts int64 `json:"ts"` BlockHash string `json:"block_hash"` Index int64 `json:"index"` Send string `json:"send"` TxHash string `json:"tx_hash"` HeightIndex int64 `json:"height_index"` }
type RespChainProofs ¶
type RespChainProofs struct { BaseHash string `json:"basehash"` PreHash string `json:"prehash"` ProofBlockHash string `json:"proof_block_hash"` ProofBlockTime int64 `json:"proof_block_time"` ProofData string `json:"proof_data"` ProofDeleted string `json:"proof_deleted"` ProofDeletedNote string `json:"proof_deleted_note"` ProofHeight int64 `json:"proof_height"` ProofHeightIndex int64 `json:"proof_height_index"` ProofId string `json:"proof_id"` ProofNote string `json:"proof_note"` ProofOrganization string `json:"proof_organization"` ProofSender string `json:"proof_sender"` ProofTxHash string `json:"proof_tx_hash"` }
Click to show internal directories.
Click to hide internal directories.