Documentation
¶
Index ¶
- Constants
- type ApplyUserCertRequest
- type ApplyUserCertResponse
- type BcosBlockObj
- type BcosTransInfo
- type Block
- type BlockByNumberHandlerRequest
- type BlockByNumberHandlerResponse
- type Client
- func (c *Client) ApplyUserCert(request *ApplyUserCertRequest) (response *ApplyUserCertResponse, err error)
- func (c *Client) BlockByNumberHandler(request *BlockByNumberHandlerRequest) (response *BlockByNumberHandlerResponse, err error)
- func (c *Client) DeployDynamicContractHandler(request *DeployDynamicContractHandlerRequest) (response *DeployDynamicContractHandlerResponse, err error)
- func (c *Client) DownloadUserCert(request *DownloadUserCertRequest) (response *DownloadUserCertResponse, err error)
- func (c *Client) GetBlockList(request *GetBlockListRequest) (response *GetBlockListResponse, err error)
- func (c *Client) GetBlockListHandler(request *GetBlockListHandlerRequest) (response *GetBlockListHandlerResponse, err error)
- func (c *Client) GetBlockTransactionListForUser(request *GetBlockTransactionListForUserRequest) (response *GetBlockTransactionListForUserResponse, err error)
- func (c *Client) GetClusterSummary(request *GetClusterSummaryRequest) (response *GetClusterSummaryResponse, err error)
- func (c *Client) GetInvokeTx(request *GetInvokeTxRequest) (response *GetInvokeTxResponse, err error)
- func (c *Client) GetLatesdTransactionList(request *GetLatesdTransactionListRequest) (response *GetLatesdTransactionListResponse, err error)
- func (c *Client) GetTransByHashHandler(request *GetTransByHashHandlerRequest) (response *GetTransByHashHandlerResponse, err error)
- func (c *Client) GetTransListHandler(request *GetTransListHandlerRequest) (response *GetTransListHandlerResponse, err error)
- func (c *Client) GetTransactionDetailForUser(request *GetTransactionDetailForUserRequest) (response *GetTransactionDetailForUserResponse, err error)
- func (c *Client) Invoke(request *InvokeRequest) (response *InvokeResponse, err error)
- func (c *Client) Query(request *QueryRequest) (response *QueryResponse, err error)
- func (c *Client) SendTransactionHandler(request *SendTransactionHandlerRequest) (response *SendTransactionHandlerResponse, err error)
- func (c *Client) SrvInvoke(request *SrvInvokeRequest) (response *SrvInvokeResponse, err error)
- func (c *Client) TransByDynamicContractHandler(request *TransByDynamicContractHandlerRequest) (response *TransByDynamicContractHandlerResponse, err error)
- type DeployDynamicContractHandlerRequest
- type DeployDynamicContractHandlerResponse
- type DownloadUserCertRequest
- type DownloadUserCertResponse
- type EndorserGroup
- type GetBlockListHandlerRequest
- type GetBlockListHandlerResponse
- type GetBlockListRequest
- type GetBlockListResponse
- type GetBlockTransactionListForUserRequest
- type GetBlockTransactionListForUserResponse
- type GetClusterSummaryRequest
- type GetClusterSummaryResponse
- type GetInvokeTxRequest
- type GetInvokeTxResponse
- type GetLatesdTransactionListRequest
- type GetLatesdTransactionListResponse
- type GetTransByHashHandlerRequest
- type GetTransByHashHandlerResponse
- type GetTransListHandlerRequest
- type GetTransListHandlerResponse
- type GetTransactionDetailForUserRequest
- type GetTransactionDetailForUserResponse
- type InvokeRequest
- type InvokeResponse
- type PeerSet
- type QueryRequest
- type QueryResponse
- type SendTransactionHandlerRequest
- type SendTransactionHandlerResponse
- type SrvInvokeRequest
- type SrvInvokeResponse
- type TransByDynamicContractHandlerRequest
- type TransByDynamicContractHandlerResponse
- type TransactionItem
Constants ¶
View Source
const APIVersion = "2018-04-16"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyUserCertRequest ¶
type ApplyUserCertRequest struct {
*tchttp.BaseRequest
// 模块名,固定字段:cert_mng
Module *string `json:"Module,omitempty" name:"Module"`
// 操作名,固定字段:cert_apply_for_user
Operation *string `json:"Operation,omitempty" name:"Operation"`
// 区块链网络ID,可在区块链网络详情或列表中获取
ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
// 申请证书的组织名称,可以在组织管理列表中获取当前组织的名称
GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
// 用户证书标识,用于标识用户证书,要求由纯小写字母组成,长度小于10
UserIdentity *string `json:"UserIdentity,omitempty" name:"UserIdentity"`
// 证书申请实体,使用腾讯云账号实名认证的名称
Applicant *string `json:"Applicant,omitempty" name:"Applicant"`
// 证件号码。如果腾讯云账号对应的实名认证类型为企业认证,填入“0”;如果腾讯云账号对应的实名认证类型为个人认证,填入个人身份证号码
IdentityNum *string `json:"IdentityNum,omitempty" name:"IdentityNum"`
// csr p10证书文件。需要用户根据文档生成证书的CSR文件
CsrData *string `json:"CsrData,omitempty" name:"CsrData"`
// 证书备注信息
Notes *string `json:"Notes,omitempty" name:"Notes"`
}
func NewApplyUserCertRequest ¶
func NewApplyUserCertRequest() (request *ApplyUserCertRequest)
func (*ApplyUserCertRequest) FromJsonString ¶
func (r *ApplyUserCertRequest) FromJsonString(s string) error
func (*ApplyUserCertRequest) ToJsonString ¶
func (r *ApplyUserCertRequest) ToJsonString() string
type ApplyUserCertResponse ¶
type ApplyUserCertResponse struct {
*tchttp.BaseResponse
Response *struct {
// 证书ID
CertId *uint64 `json:"CertId,omitempty" name:"CertId"`
// 证书DN
CertDn *string `json:"CertDn,omitempty" name:"CertDn"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewApplyUserCertResponse ¶
func NewApplyUserCertResponse() (response *ApplyUserCertResponse)
func (*ApplyUserCertResponse) FromJsonString ¶
func (r *ApplyUserCertResponse) FromJsonString(s string) error
func (*ApplyUserCertResponse) ToJsonString ¶
func (r *ApplyUserCertResponse) ToJsonString() string
type BcosBlockObj ¶
type BcosBlockObj struct {
// 区块哈希
BlockHash *string `json:"BlockHash,omitempty" name:"BlockHash"`
// 区块高度
BlockNumber *int64 `json:"BlockNumber,omitempty" name:"BlockNumber"`
// 区块时间戳
BlockTimestamp *string `json:"BlockTimestamp,omitempty" name:"BlockTimestamp"`
// 打包节点ID
Sealer *string `json:"Sealer,omitempty" name:"Sealer"`
// 打包节点索引
SealerIndex *int64 `json:"SealerIndex,omitempty" name:"SealerIndex"`
// 记录保存时间
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// 交易数量
TransCount *int64 `json:"TransCount,omitempty" name:"TransCount"`
// 记录修改时间
ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"`
}
type BcosTransInfo ¶
type BcosTransInfo struct {
// 所属区块高度
BlockNumber *int64 `json:"BlockNumber,omitempty" name:"BlockNumber"`
// 区块时间戳
BlockTimestamp *string `json:"BlockTimestamp,omitempty" name:"BlockTimestamp"`
// 交易哈希
TransHash *string `json:"TransHash,omitempty" name:"TransHash"`
// 交易发起者
TransFrom *string `json:"TransFrom,omitempty" name:"TransFrom"`
// 交易接收者
TransTo *string `json:"TransTo,omitempty" name:"TransTo"`
// 落库时间
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// 修改时间
ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"`
}
type Block ¶
type Block struct {
// 区块编号
BlockNum *uint64 `json:"BlockNum,omitempty" name:"BlockNum"`
// 区块Hash数值
DataHash *string `json:"DataHash,omitempty" name:"DataHash"`
// 区块ID,与区块编号一致
BlockId *uint64 `json:"BlockId,omitempty" name:"BlockId"`
// 前一个区块Hash(未使用),与区块Hash数值一致
PreHash *string `json:"PreHash,omitempty" name:"PreHash"`
// 区块内的交易数量
TxCount *uint64 `json:"TxCount,omitempty" name:"TxCount"`
}
type BlockByNumberHandlerRequest ¶
type BlockByNumberHandlerRequest struct {
*tchttp.BaseRequest
// 模块名,固定字段:block
Module *string `json:"Module,omitempty" name:"Module"`
// 操作名,固定字段:block_by_number
Operation *string `json:"Operation,omitempty" name:"Operation"`
// 当前群组编号
GroupPk *string `json:"GroupPk,omitempty" name:"GroupPk"`
// 区块高度
BlockNumber *int64 `json:"BlockNumber,omitempty" name:"BlockNumber"`
}
func NewBlockByNumberHandlerRequest ¶
func NewBlockByNumberHandlerRequest() (request *BlockByNumberHandlerRequest)
func (*BlockByNumberHandlerRequest) FromJsonString ¶
func (r *BlockByNumberHandlerRequest) FromJsonString(s string) error
func (*BlockByNumberHandlerRequest) ToJsonString ¶
func (r *BlockByNumberHandlerRequest) ToJsonString() string
type BlockByNumberHandlerResponse ¶
type BlockByNumberHandlerResponse struct {
*tchttp.BaseResponse
Response *struct {
// 返回区块json字符串
BlockJson *string `json:"BlockJson,omitempty" name:"BlockJson"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewBlockByNumberHandlerResponse ¶
func NewBlockByNumberHandlerResponse() (response *BlockByNumberHandlerResponse)
func (*BlockByNumberHandlerResponse) FromJsonString ¶
func (r *BlockByNumberHandlerResponse) FromJsonString(s string) error
func (*BlockByNumberHandlerResponse) ToJsonString ¶
func (r *BlockByNumberHandlerResponse) ToJsonString() string
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) ApplyUserCert ¶
func (c *Client) ApplyUserCert(request *ApplyUserCertRequest) (response *ApplyUserCertResponse, err error)
申请用户证书
func (*Client) BlockByNumberHandler ¶
func (c *Client) BlockByNumberHandler(request *BlockByNumberHandlerRequest) (response *BlockByNumberHandlerResponse, err error)
Bcos根据块高查询区块信息
func (*Client) DeployDynamicContractHandler ¶
func (c *Client) DeployDynamicContractHandler(request *DeployDynamicContractHandlerRequest) (response *DeployDynamicContractHandlerResponse, err error)
动态部署合约
func (*Client) DownloadUserCert ¶
func (c *Client) DownloadUserCert(request *DownloadUserCertRequest) (response *DownloadUserCertResponse, err error)
下载用户证书
func (*Client) GetBlockList ¶
func (c *Client) GetBlockList(request *GetBlockListRequest) (response *GetBlockListResponse, err error)
查看当前网络下的所有区块列表,分页展示
func (*Client) GetBlockListHandler ¶
func (c *Client) GetBlockListHandler(request *GetBlockListHandlerRequest) (response *GetBlockListHandlerResponse, err error)
Bcos分页查询当前群组下的区块列表
func (*Client) GetBlockTransactionListForUser ¶
func (c *Client) GetBlockTransactionListForUser(request *GetBlockTransactionListForUserRequest) (response *GetBlockTransactionListForUserResponse, err error)
获取区块内的交易列表
func (*Client) GetClusterSummary ¶
func (c *Client) GetClusterSummary(request *GetClusterSummaryRequest) (response *GetClusterSummaryResponse, err error)
获取区块链网络概要
func (*Client) GetInvokeTx ¶
func (c *Client) GetInvokeTx(request *GetInvokeTxRequest) (response *GetInvokeTxResponse, err error)
Invoke异步调用结果查询
func (*Client) GetLatesdTransactionList ¶
func (c *Client) GetLatesdTransactionList(request *GetLatesdTransactionListRequest) (response *GetLatesdTransactionListResponse, err error)
获取最新交易列表
func (*Client) GetTransByHashHandler ¶
func (c *Client) GetTransByHashHandler(request *GetTransByHashHandlerRequest) (response *GetTransByHashHandlerResponse, err error)
Bcos根据交易哈希查看交易详细信息
func (*Client) GetTransListHandler ¶
func (c *Client) GetTransListHandler(request *GetTransListHandlerRequest) (response *GetTransListHandlerResponse, err error)
Bcos分页查询当前群组的交易信息列表
func (*Client) GetTransactionDetailForUser ¶
func (c *Client) GetTransactionDetailForUser(request *GetTransactionDetailForUserRequest) (response *GetTransactionDetailForUserResponse, err error)
获取交易详情
func (*Client) Invoke ¶
func (c *Client) Invoke(request *InvokeRequest) (response *InvokeResponse, err error)
新增交易
func (*Client) Query ¶
func (c *Client) Query(request *QueryRequest) (response *QueryResponse, err error)
查询交易
func (*Client) SendTransactionHandler ¶
func (c *Client) SendTransactionHandler(request *SendTransactionHandlerRequest) (response *SendTransactionHandlerResponse, err error)
Bcos发送交易
func (*Client) SrvInvoke ¶
func (c *Client) SrvInvoke(request *SrvInvokeRequest) (response *SrvInvokeResponse, err error)
trustsql服务统一接口
func (*Client) TransByDynamicContractHandler ¶
func (c *Client) TransByDynamicContractHandler(request *TransByDynamicContractHandlerRequest) (response *TransByDynamicContractHandlerResponse, err error)
根据动态部署的合约发送交易
type DeployDynamicContractHandlerRequest ¶
type DeployDynamicContractHandlerRequest struct {
*tchttp.BaseRequest
// 模块名,固定字段:contract
Module *string `json:"Module,omitempty" name:"Module"`
// 操作名,固定字段:deploy_by_dynamic_contract
Operation *string `json:"Operation,omitempty" name:"Operation"`
// 群组编号
GroupPk *string `json:"GroupPk,omitempty" name:"GroupPk"`
// 合约名称
ContractName *string `json:"ContractName,omitempty" name:"ContractName"`
// 合约编译后的abi
AbiInfo *string `json:"AbiInfo,omitempty" name:"AbiInfo"`
// 合约编译后的binary
ByteCodeBin *string `json:"ByteCodeBin,omitempty" name:"ByteCodeBin"`
// 构造函数入参
ConstructorParams []*string `json:"ConstructorParams,omitempty" name:"ConstructorParams" list`
}
func NewDeployDynamicContractHandlerRequest ¶
func NewDeployDynamicContractHandlerRequest() (request *DeployDynamicContractHandlerRequest)
func (*DeployDynamicContractHandlerRequest) FromJsonString ¶
func (r *DeployDynamicContractHandlerRequest) FromJsonString(s string) error
func (*DeployDynamicContractHandlerRequest) ToJsonString ¶
func (r *DeployDynamicContractHandlerRequest) ToJsonString() string
type DeployDynamicContractHandlerResponse ¶
type DeployDynamicContractHandlerResponse struct {
*tchttp.BaseResponse
Response *struct {
// 部署成功返回的合约地址
ContractAddress *string `json:"ContractAddress,omitempty" name:"ContractAddress"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeployDynamicContractHandlerResponse ¶
func NewDeployDynamicContractHandlerResponse() (response *DeployDynamicContractHandlerResponse)
func (*DeployDynamicContractHandlerResponse) FromJsonString ¶
func (r *DeployDynamicContractHandlerResponse) FromJsonString(s string) error
func (*DeployDynamicContractHandlerResponse) ToJsonString ¶
func (r *DeployDynamicContractHandlerResponse) ToJsonString() string
type DownloadUserCertRequest ¶
type DownloadUserCertRequest struct {
*tchttp.BaseRequest
// 模块名,固定字段:cert_mng
Module *string `json:"Module,omitempty" name:"Module"`
// 操作名,固定字段:cert_download_for_user
Operation *string `json:"Operation,omitempty" name:"Operation"`
// 证书ID,可以在证书详情页面获取
CertId *uint64 `json:"CertId,omitempty" name:"CertId"`
// 证书DN,可以在证书详情页面获取
CertDn *string `json:"CertDn,omitempty" name:"CertDn"`
// 区块链网络ID,可在区块链网络详情或列表中获取
ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
// 下载证书的组织名称,可以在组织管理列表中获取当前组织的名称
GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
}
func NewDownloadUserCertRequest ¶
func NewDownloadUserCertRequest() (request *DownloadUserCertRequest)
func (*DownloadUserCertRequest) FromJsonString ¶
func (r *DownloadUserCertRequest) FromJsonString(s string) error
func (*DownloadUserCertRequest) ToJsonString ¶
func (r *DownloadUserCertRequest) ToJsonString() string
type DownloadUserCertResponse ¶
type DownloadUserCertResponse struct {
*tchttp.BaseResponse
Response *struct {
// 证书名称
CertName *string `json:"CertName,omitempty" name:"CertName"`
// 证书内容
CertCtx *string `json:"CertCtx,omitempty" name:"CertCtx"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDownloadUserCertResponse ¶
func NewDownloadUserCertResponse() (response *DownloadUserCertResponse)
func (*DownloadUserCertResponse) FromJsonString ¶
func (r *DownloadUserCertResponse) FromJsonString(s string) error
func (*DownloadUserCertResponse) ToJsonString ¶
func (r *DownloadUserCertResponse) ToJsonString() string
type EndorserGroup ¶
type GetBlockListHandlerRequest ¶
type GetBlockListHandlerRequest struct {
*tchttp.BaseRequest
// 模块名,固定字段:block
Module *string `json:"Module,omitempty" name:"Module"`
// 操作名,固定字段:get_block_list
Operation *string `json:"Operation,omitempty" name:"Operation"`
// 记录偏移数
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 每页记录数
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// 当前群组编号
GroupPk *string `json:"GroupPk,omitempty" name:"GroupPk"`
// 区块哈希
BlockHash *string `json:"BlockHash,omitempty" name:"BlockHash"`
}
func NewGetBlockListHandlerRequest ¶
func NewGetBlockListHandlerRequest() (request *GetBlockListHandlerRequest)
func (*GetBlockListHandlerRequest) FromJsonString ¶
func (r *GetBlockListHandlerRequest) FromJsonString(s string) error
func (*GetBlockListHandlerRequest) ToJsonString ¶
func (r *GetBlockListHandlerRequest) ToJsonString() string
type GetBlockListHandlerResponse ¶
type GetBlockListHandlerResponse struct {
*tchttp.BaseResponse
Response *struct {
// 总记录数
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 当前群组编号
GroupPk *string `json:"GroupPk,omitempty" name:"GroupPk"`
// 返回数据列表
List []*BcosBlockObj `json:"List,omitempty" name:"List" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetBlockListHandlerResponse ¶
func NewGetBlockListHandlerResponse() (response *GetBlockListHandlerResponse)
func (*GetBlockListHandlerResponse) FromJsonString ¶
func (r *GetBlockListHandlerResponse) FromJsonString(s string) error
func (*GetBlockListHandlerResponse) ToJsonString ¶
func (r *GetBlockListHandlerResponse) ToJsonString() string
type GetBlockListRequest ¶
type GetBlockListRequest struct {
*tchttp.BaseRequest
// 模块名称,固定字段:block
Module *string `json:"Module,omitempty" name:"Module"`
// 操作名称,固定字段:block_list
Operation *string `json:"Operation,omitempty" name:"Operation"`
// 通道ID,固定字段:0
ChannelId *uint64 `json:"ChannelId,omitempty" name:"ChannelId"`
// 组织ID,固定字段:0
GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`
// 需要查询的通道名称,可在通道详情或列表中获取
ChannelName *string `json:"ChannelName,omitempty" name:"ChannelName"`
// 调用接口的组织名称,可以在组织管理列表中获取当前组织的名称
GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
// 区块链网络ID,可在区块链网络详情或列表中获取
ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
// 需要获取的起始交易偏移
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 需要获取的交易数量
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}
func NewGetBlockListRequest ¶
func NewGetBlockListRequest() (request *GetBlockListRequest)
func (*GetBlockListRequest) FromJsonString ¶
func (r *GetBlockListRequest) FromJsonString(s string) error
func (*GetBlockListRequest) ToJsonString ¶
func (r *GetBlockListRequest) ToJsonString() string
type GetBlockListResponse ¶
type GetBlockListResponse struct {
*tchttp.BaseResponse
Response *struct {
// 区块数量
TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 区块列表
BlockList []*Block `json:"BlockList,omitempty" name:"BlockList" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetBlockListResponse ¶
func NewGetBlockListResponse() (response *GetBlockListResponse)
func (*GetBlockListResponse) FromJsonString ¶
func (r *GetBlockListResponse) FromJsonString(s string) error
func (*GetBlockListResponse) ToJsonString ¶
func (r *GetBlockListResponse) ToJsonString() string
type GetBlockTransactionListForUserRequest ¶
type GetBlockTransactionListForUserRequest struct {
*tchttp.BaseRequest
// 模块名,固定字段:transaction
Module *string `json:"Module,omitempty" name:"Module"`
// 操作名,固定字段:block_transaction_list_for_user
Operation *string `json:"Operation,omitempty" name:"Operation"`
// 区块链网络ID,可在区块链网络详情或列表中获取
ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
// 参与交易的组织名称,可以在组织管理列表中获取当前组织的名称
GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
// 业务所属通道名称,可在通道详情或列表中获取
ChannelName *string `json:"ChannelName,omitempty" name:"ChannelName"`
// 区块ID,通过GetInvokeTx接口可以获取交易所在的区块ID
BlockId *uint64 `json:"BlockId,omitempty" name:"BlockId"`
// 查询的交易列表起始偏移地址
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 查询的交易列表数量
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}
func NewGetBlockTransactionListForUserRequest ¶
func NewGetBlockTransactionListForUserRequest() (request *GetBlockTransactionListForUserRequest)
func (*GetBlockTransactionListForUserRequest) FromJsonString ¶
func (r *GetBlockTransactionListForUserRequest) FromJsonString(s string) error
func (*GetBlockTransactionListForUserRequest) ToJsonString ¶
func (r *GetBlockTransactionListForUserRequest) ToJsonString() string
type GetBlockTransactionListForUserResponse ¶
type GetBlockTransactionListForUserResponse struct {
*tchttp.BaseResponse
Response *struct {
// 交易总数量
TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 交易列表
TransactionList []*TransactionItem `json:"TransactionList,omitempty" name:"TransactionList" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetBlockTransactionListForUserResponse ¶
func NewGetBlockTransactionListForUserResponse() (response *GetBlockTransactionListForUserResponse)
func (*GetBlockTransactionListForUserResponse) FromJsonString ¶
func (r *GetBlockTransactionListForUserResponse) FromJsonString(s string) error
func (*GetBlockTransactionListForUserResponse) ToJsonString ¶
func (r *GetBlockTransactionListForUserResponse) ToJsonString() string
type GetClusterSummaryRequest ¶
type GetClusterSummaryRequest struct {
*tchttp.BaseRequest
// 模块名称,固定字段:cluster_mng
Module *string `json:"Module,omitempty" name:"Module"`
// 操作名称,固定字段:cluster_summary
Operation *string `json:"Operation,omitempty" name:"Operation"`
// 区块链网络ID,可在区块链网络详情或列表中获取
ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
// 组织ID,固定字段:0
GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`
// 调用接口的组织名称,可以在组织管理列表中获取当前组织的名称
GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
}
func NewGetClusterSummaryRequest ¶
func NewGetClusterSummaryRequest() (request *GetClusterSummaryRequest)
func (*GetClusterSummaryRequest) FromJsonString ¶
func (r *GetClusterSummaryRequest) FromJsonString(s string) error
func (*GetClusterSummaryRequest) ToJsonString ¶
func (r *GetClusterSummaryRequest) ToJsonString() string
type GetClusterSummaryResponse ¶
type GetClusterSummaryResponse struct {
*tchttp.BaseResponse
Response *struct {
// 网络通道总数量
TotalChannelCount *uint64 `json:"TotalChannelCount,omitempty" name:"TotalChannelCount"`
// 当前组织创建的通道数量
MyChannelCount *uint64 `json:"MyChannelCount,omitempty" name:"MyChannelCount"`
// 当前组织加入的通道数量
JoinChannelCount *uint64 `json:"JoinChannelCount,omitempty" name:"JoinChannelCount"`
// 网络节点总数量
TotalPeerCount *uint64 `json:"TotalPeerCount,omitempty" name:"TotalPeerCount"`
// 当前组织创建的节点数量
MyPeerCount *uint64 `json:"MyPeerCount,omitempty" name:"MyPeerCount"`
// 其他组织创建的节点数量
OrderCount *uint64 `json:"OrderCount,omitempty" name:"OrderCount"`
// 网络组织总数量
TotalGroupCount *uint64 `json:"TotalGroupCount,omitempty" name:"TotalGroupCount"`
// 当前组织创建的组织数量
MyGroupCount *uint64 `json:"MyGroupCount,omitempty" name:"MyGroupCount"`
// 网络智能合约总数量
TotalChaincodeCount *uint64 `json:"TotalChaincodeCount,omitempty" name:"TotalChaincodeCount"`
// 最近7天发起的智能合约数量
RecentChaincodeCount *uint64 `json:"RecentChaincodeCount,omitempty" name:"RecentChaincodeCount"`
// 当前组织发起的智能合约数量
MyChaincodeCount *uint64 `json:"MyChaincodeCount,omitempty" name:"MyChaincodeCount"`
// 当前组织的证书总数量
TotalCertCount *uint64 `json:"TotalCertCount,omitempty" name:"TotalCertCount"`
// 颁发给当前组织的证书数量
TlsCertCount *uint64 `json:"TlsCertCount,omitempty" name:"TlsCertCount"`
// 网络背书节点证书数量
PeerCertCount *uint64 `json:"PeerCertCount,omitempty" name:"PeerCertCount"`
// 当前组织业务证书数量
ClientCertCount *uint64 `json:"ClientCertCount,omitempty" name:"ClientCertCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetClusterSummaryResponse ¶
func NewGetClusterSummaryResponse() (response *GetClusterSummaryResponse)
func (*GetClusterSummaryResponse) FromJsonString ¶
func (r *GetClusterSummaryResponse) FromJsonString(s string) error
func (*GetClusterSummaryResponse) ToJsonString ¶
func (r *GetClusterSummaryResponse) ToJsonString() string
type GetInvokeTxRequest ¶
type GetInvokeTxRequest struct {
*tchttp.BaseRequest
// 模块名,固定字段:transaction
Module *string `json:"Module,omitempty" name:"Module"`
// 操作名,固定字段:query_txid
Operation *string `json:"Operation,omitempty" name:"Operation"`
// 区块链网络ID,可在区块链网络详情或列表中获取
ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
// 业务所属通道名称,可在通道详情或列表中获取
ChannelName *string `json:"ChannelName,omitempty" name:"ChannelName"`
// 执行该查询交易的节点名称,可以在通道详情中获取该通道上的节点名称极其所属组织名称
PeerName *string `json:"PeerName,omitempty" name:"PeerName"`
// 执行该查询交易的节点所属组织名称,可以在通道详情中获取该通道上的节点名称极其所属组织名称
PeerGroup *string `json:"PeerGroup,omitempty" name:"PeerGroup"`
// 交易ID
TxId *string `json:"TxId,omitempty" name:"TxId"`
// 调用合约的组织名称,可以在组织管理列表中获取当前组织的名称
GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
}
func NewGetInvokeTxRequest ¶
func NewGetInvokeTxRequest() (request *GetInvokeTxRequest)
func (*GetInvokeTxRequest) FromJsonString ¶
func (r *GetInvokeTxRequest) FromJsonString(s string) error
func (*GetInvokeTxRequest) ToJsonString ¶
func (r *GetInvokeTxRequest) ToJsonString() string
type GetInvokeTxResponse ¶
type GetInvokeTxResponse struct {
*tchttp.BaseResponse
Response *struct {
// 交易执行状态码
TxValidationCode *int64 `json:"TxValidationCode,omitempty" name:"TxValidationCode"`
// 交易执行消息
TxValidationMsg *string `json:"TxValidationMsg,omitempty" name:"TxValidationMsg"`
// 交易所在区块ID
BlockId *int64 `json:"BlockId,omitempty" name:"BlockId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetInvokeTxResponse ¶
func NewGetInvokeTxResponse() (response *GetInvokeTxResponse)
func (*GetInvokeTxResponse) FromJsonString ¶
func (r *GetInvokeTxResponse) FromJsonString(s string) error
func (*GetInvokeTxResponse) ToJsonString ¶
func (r *GetInvokeTxResponse) ToJsonString() string
type GetLatesdTransactionListRequest ¶
type GetLatesdTransactionListRequest struct {
*tchttp.BaseRequest
// 模块名称,固定字段:transaction
Module *string `json:"Module,omitempty" name:"Module"`
// 操作名称,固定字段:latest_transaction_list
Operation *string `json:"Operation,omitempty" name:"Operation"`
// 组织ID,固定字段:0
GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`
// 通道ID,固定字段:0
ChannelId *uint64 `json:"ChannelId,omitempty" name:"ChannelId"`
// 获取的最新交易的区块数量,取值范围1~5
LatestBlockNumber *uint64 `json:"LatestBlockNumber,omitempty" name:"LatestBlockNumber"`
// 调用接口的组织名称,可以在组织管理列表中获取当前组织的名称
GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
// 需要查询的通道名称,可在通道详情或列表中获取
ChannelName *string `json:"ChannelName,omitempty" name:"ChannelName"`
// 区块链网络ID,可在区块链网络详情或列表中获取
ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
// 需要获取的起始交易偏移
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 需要获取的交易数量
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}
func NewGetLatesdTransactionListRequest ¶
func NewGetLatesdTransactionListRequest() (request *GetLatesdTransactionListRequest)
func (*GetLatesdTransactionListRequest) FromJsonString ¶
func (r *GetLatesdTransactionListRequest) FromJsonString(s string) error
func (*GetLatesdTransactionListRequest) ToJsonString ¶
func (r *GetLatesdTransactionListRequest) ToJsonString() string
type GetLatesdTransactionListResponse ¶
type GetLatesdTransactionListResponse struct {
*tchttp.BaseResponse
Response *struct {
// 交易总数量
TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 交易列表
TransactionList []*TransactionItem `json:"TransactionList,omitempty" name:"TransactionList" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetLatesdTransactionListResponse ¶
func NewGetLatesdTransactionListResponse() (response *GetLatesdTransactionListResponse)
func (*GetLatesdTransactionListResponse) FromJsonString ¶
func (r *GetLatesdTransactionListResponse) FromJsonString(s string) error
func (*GetLatesdTransactionListResponse) ToJsonString ¶
func (r *GetLatesdTransactionListResponse) ToJsonString() string
type GetTransByHashHandlerRequest ¶
type GetTransByHashHandlerRequest struct {
*tchttp.BaseRequest
// 模块名,固定字段:transaction
Module *string `json:"Module,omitempty" name:"Module"`
// 操作名,固定字段:get_trans_by_hash
Operation *string `json:"Operation,omitempty" name:"Operation"`
// 群组编号
GroupPk *string `json:"GroupPk,omitempty" name:"GroupPk"`
// 交易哈希
TransHash *string `json:"TransHash,omitempty" name:"TransHash"`
}
func NewGetTransByHashHandlerRequest ¶
func NewGetTransByHashHandlerRequest() (request *GetTransByHashHandlerRequest)
func (*GetTransByHashHandlerRequest) FromJsonString ¶
func (r *GetTransByHashHandlerRequest) FromJsonString(s string) error
func (*GetTransByHashHandlerRequest) ToJsonString ¶
func (r *GetTransByHashHandlerRequest) ToJsonString() string
type GetTransByHashHandlerResponse ¶
type GetTransByHashHandlerResponse struct {
*tchttp.BaseResponse
Response *struct {
// 交易信息json字符串
TransactionJson *string `json:"TransactionJson,omitempty" name:"TransactionJson"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetTransByHashHandlerResponse ¶
func NewGetTransByHashHandlerResponse() (response *GetTransByHashHandlerResponse)
func (*GetTransByHashHandlerResponse) FromJsonString ¶
func (r *GetTransByHashHandlerResponse) FromJsonString(s string) error
func (*GetTransByHashHandlerResponse) ToJsonString ¶
func (r *GetTransByHashHandlerResponse) ToJsonString() string
type GetTransListHandlerRequest ¶
type GetTransListHandlerRequest struct {
*tchttp.BaseRequest
// 模块名,固定字段:transaction
Module *string `json:"Module,omitempty" name:"Module"`
// 操作名,固定字段:get_trans_list
Operation *string `json:"Operation,omitempty" name:"Operation"`
// 记录偏移量
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 每页记录数
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// 群组编号
GroupPk *string `json:"GroupPk,omitempty" name:"GroupPk"`
// 交易哈希
TransHash *string `json:"TransHash,omitempty" name:"TransHash"`
}
func NewGetTransListHandlerRequest ¶
func NewGetTransListHandlerRequest() (request *GetTransListHandlerRequest)
func (*GetTransListHandlerRequest) FromJsonString ¶
func (r *GetTransListHandlerRequest) FromJsonString(s string) error
func (*GetTransListHandlerRequest) ToJsonString ¶
func (r *GetTransListHandlerRequest) ToJsonString() string
type GetTransListHandlerResponse ¶
type GetTransListHandlerResponse struct {
*tchttp.BaseResponse
Response *struct {
// 总记录数
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 当前群组编号
GroupPk *string `json:"GroupPk,omitempty" name:"GroupPk"`
// 返回数据列表
List []*BcosTransInfo `json:"List,omitempty" name:"List" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetTransListHandlerResponse ¶
func NewGetTransListHandlerResponse() (response *GetTransListHandlerResponse)
func (*GetTransListHandlerResponse) FromJsonString ¶
func (r *GetTransListHandlerResponse) FromJsonString(s string) error
func (*GetTransListHandlerResponse) ToJsonString ¶
func (r *GetTransListHandlerResponse) ToJsonString() string
type GetTransactionDetailForUserRequest ¶
type GetTransactionDetailForUserRequest struct {
*tchttp.BaseRequest
// 模块名,固定字段:transaction
Module *string `json:"Module,omitempty" name:"Module"`
// 操作名,固定字段:transaction_detail_for_user
Operation *string `json:"Operation,omitempty" name:"Operation"`
// 区块链网络ID,可在区块链网络详情或列表中获取
ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
// 参与交易的组织名称,可以在组织管理列表中获取当前组织的名称
GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
// 业务所属通道名称,可在通道详情或列表中获取
ChannelName *string `json:"ChannelName,omitempty" name:"ChannelName"`
// 区块ID,通过GetInvokeTx接口可以获取交易所在的区块ID
BlockId *uint64 `json:"BlockId,omitempty" name:"BlockId"`
// 交易ID,需要查询的详情的交易ID
TransactionId *string `json:"TransactionId,omitempty" name:"TransactionId"`
}
func NewGetTransactionDetailForUserRequest ¶
func NewGetTransactionDetailForUserRequest() (request *GetTransactionDetailForUserRequest)
func (*GetTransactionDetailForUserRequest) FromJsonString ¶
func (r *GetTransactionDetailForUserRequest) FromJsonString(s string) error
func (*GetTransactionDetailForUserRequest) ToJsonString ¶
func (r *GetTransactionDetailForUserRequest) ToJsonString() string
type GetTransactionDetailForUserResponse ¶
type GetTransactionDetailForUserResponse struct {
*tchttp.BaseResponse
Response *struct {
// 交易ID
TransactionId *string `json:"TransactionId,omitempty" name:"TransactionId"`
// 交易hash
TransactionHash *string `json:"TransactionHash,omitempty" name:"TransactionHash"`
// 创建交易的组织名
CreateOrgName *string `json:"CreateOrgName,omitempty" name:"CreateOrgName"`
// 交易类型(普通交易和配置交易)
TransactionType *string `json:"TransactionType,omitempty" name:"TransactionType"`
// 交易状态
TransactionStatus *string `json:"TransactionStatus,omitempty" name:"TransactionStatus"`
// 交易创建时间
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// 交易数据
TransactionData *string `json:"TransactionData,omitempty" name:"TransactionData"`
// 交易所在区块号
BlockId *uint64 `json:"BlockId,omitempty" name:"BlockId"`
// 交易所在区块哈希
BlockHash *string `json:"BlockHash,omitempty" name:"BlockHash"`
// 交易所在区块高度
BlockHeight *uint64 `json:"BlockHeight,omitempty" name:"BlockHeight"`
// 通道名称
ChannelName *string `json:"ChannelName,omitempty" name:"ChannelName"`
// 交易所在合约名称
ContractName *string `json:"ContractName,omitempty" name:"ContractName"`
// 背书组织列表
EndorserOrgList []*EndorserGroup `json:"EndorserOrgList,omitempty" name:"EndorserOrgList" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetTransactionDetailForUserResponse ¶
func NewGetTransactionDetailForUserResponse() (response *GetTransactionDetailForUserResponse)
func (*GetTransactionDetailForUserResponse) FromJsonString ¶
func (r *GetTransactionDetailForUserResponse) FromJsonString(s string) error
func (*GetTransactionDetailForUserResponse) ToJsonString ¶
func (r *GetTransactionDetailForUserResponse) ToJsonString() string
type InvokeRequest ¶
type InvokeRequest struct {
*tchttp.BaseRequest
// 模块名,固定字段:transaction
Module *string `json:"Module,omitempty" name:"Module"`
// 操作名,固定字段:invoke
Operation *string `json:"Operation,omitempty" name:"Operation"`
// 区块链网络ID,可在区块链网络详情或列表中获取
ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
// 业务所属智能合约名称,可在智能合约详情或列表中获取
ChaincodeName *string `json:"ChaincodeName,omitempty" name:"ChaincodeName"`
// 业务所属通道名称,可在通道详情或列表中获取
ChannelName *string `json:"ChannelName,omitempty" name:"ChannelName"`
// 对该笔交易进行背书的节点列表(包括节点名称和节点所属组织名称,详见数据结构一节),可以在通道详情中获取该通道上的节点名称极其所属组织名称
Peers []*PeerSet `json:"Peers,omitempty" name:"Peers" list`
// 该笔交易需要调用的智能合约中的函数名称
FuncName *string `json:"FuncName,omitempty" name:"FuncName"`
// 调用合约的组织名称,可以在组织管理列表中获取当前组织的名称
GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
// 被调用的函数参数列表
Args []*string `json:"Args,omitempty" name:"Args" list`
// 同步调用标识,可选参数,值为0或者不传表示使用同步方法调用,调用后会等待交易执行后再返回执行结果;值为1时表示使用异步方式调用Invoke,执行后会立即返回交易对应的Txid,后续需要通过GetInvokeTx这个API查询该交易的执行结果。(对于逻辑较为简单的交易,可以使用同步模式;对于逻辑较为复杂的交易,建议使用异步模式,否则容易导致API因等待时间过长,返回等待超时)
AsyncFlag *uint64 `json:"AsyncFlag,omitempty" name:"AsyncFlag"`
}
func NewInvokeRequest ¶
func NewInvokeRequest() (request *InvokeRequest)
func (*InvokeRequest) FromJsonString ¶
func (r *InvokeRequest) FromJsonString(s string) error
func (*InvokeRequest) ToJsonString ¶
func (r *InvokeRequest) ToJsonString() string
type InvokeResponse ¶
type InvokeResponse struct {
*tchttp.BaseResponse
Response *struct {
// 交易ID
Txid *string `json:"Txid,omitempty" name:"Txid"`
// 交易执行结果
Events *string `json:"Events,omitempty" name:"Events"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewInvokeResponse ¶
func NewInvokeResponse() (response *InvokeResponse)
func (*InvokeResponse) FromJsonString ¶
func (r *InvokeResponse) FromJsonString(s string) error
func (*InvokeResponse) ToJsonString ¶
func (r *InvokeResponse) ToJsonString() string
type QueryRequest ¶
type QueryRequest struct {
*tchttp.BaseRequest
// 模块名,固定字段:transaction
Module *string `json:"Module,omitempty" name:"Module"`
// 操作名,固定字段:query
Operation *string `json:"Operation,omitempty" name:"Operation"`
// 区块链网络ID,可在区块链网络详情或列表中获取
ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
// 业务所属智能合约名称,可在智能合约详情或列表中获取
ChaincodeName *string `json:"ChaincodeName,omitempty" name:"ChaincodeName"`
// 业务所属通道名称,可在通道详情或列表中获取
ChannelName *string `json:"ChannelName,omitempty" name:"ChannelName"`
// 执行该查询交易的节点列表(包括节点名称和节点所属组织名称,详见数据结构一节),可以在通道详情中获取该通道上的节点名称极其所属组织名称
Peers []*PeerSet `json:"Peers,omitempty" name:"Peers" list`
// 该笔交易查询需要调用的智能合约中的函数名称
FuncName *string `json:"FuncName,omitempty" name:"FuncName"`
// 调用合约的组织名称,可以在组织管理列表中获取当前组织的名称
GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
// 被调用的函数参数列表
Args []*string `json:"Args,omitempty" name:"Args" list`
}
func NewQueryRequest ¶
func NewQueryRequest() (request *QueryRequest)
func (*QueryRequest) FromJsonString ¶
func (r *QueryRequest) FromJsonString(s string) error
func (*QueryRequest) ToJsonString ¶
func (r *QueryRequest) ToJsonString() string
type QueryResponse ¶
type QueryResponse struct {
*tchttp.BaseResponse
Response *struct {
// 查询结果数据
Data []*string `json:"Data,omitempty" name:"Data" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewQueryResponse ¶
func NewQueryResponse() (response *QueryResponse)
func (*QueryResponse) FromJsonString ¶
func (r *QueryResponse) FromJsonString(s string) error
func (*QueryResponse) ToJsonString ¶
func (r *QueryResponse) ToJsonString() string
type SendTransactionHandlerRequest ¶
type SendTransactionHandlerRequest struct {
*tchttp.BaseRequest
// 模块名,固定字段:transaction
Module *string `json:"Module,omitempty" name:"Module"`
// 操作名,固定字段:send_transaction
Operation *string `json:"Operation,omitempty" name:"Operation"`
// 群组编号
GroupPk *string `json:"GroupPk,omitempty" name:"GroupPk"`
// 合约编号
ContractId *int64 `json:"ContractId,omitempty" name:"ContractId"`
// 合约方法名
FuncName *string `json:"FuncName,omitempty" name:"FuncName"`
// 合约方法入参
FuncParam []*string `json:"FuncParam,omitempty" name:"FuncParam" list`
}
func NewSendTransactionHandlerRequest ¶
func NewSendTransactionHandlerRequest() (request *SendTransactionHandlerRequest)
func (*SendTransactionHandlerRequest) FromJsonString ¶
func (r *SendTransactionHandlerRequest) FromJsonString(s string) error
func (*SendTransactionHandlerRequest) ToJsonString ¶
func (r *SendTransactionHandlerRequest) ToJsonString() string
type SendTransactionHandlerResponse ¶
type SendTransactionHandlerResponse struct {
*tchttp.BaseResponse
Response *struct {
// 交易结果json字符串
TransactionRsp *string `json:"TransactionRsp,omitempty" name:"TransactionRsp"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewSendTransactionHandlerResponse ¶
func NewSendTransactionHandlerResponse() (response *SendTransactionHandlerResponse)
func (*SendTransactionHandlerResponse) FromJsonString ¶
func (r *SendTransactionHandlerResponse) FromJsonString(s string) error
func (*SendTransactionHandlerResponse) ToJsonString ¶
func (r *SendTransactionHandlerResponse) ToJsonString() string
type SrvInvokeRequest ¶
type SrvInvokeRequest struct {
*tchttp.BaseRequest
// 服务类型,iss或者dam
Service *string `json:"Service,omitempty" name:"Service"`
// 服务接口,要调用的方法函数名
Method *string `json:"Method,omitempty" name:"Method"`
// 用户自定义json字符串
Param *string `json:"Param,omitempty" name:"Param"`
}
func NewSrvInvokeRequest ¶
func NewSrvInvokeRequest() (request *SrvInvokeRequest)
func (*SrvInvokeRequest) FromJsonString ¶
func (r *SrvInvokeRequest) FromJsonString(s string) error
func (*SrvInvokeRequest) ToJsonString ¶
func (r *SrvInvokeRequest) ToJsonString() string
type SrvInvokeResponse ¶
type SrvInvokeResponse struct {
*tchttp.BaseResponse
Response *struct {
// 返回码
RetCode *int64 `json:"RetCode,omitempty" name:"RetCode"`
// 返回消息
RetMsg *string `json:"RetMsg,omitempty" name:"RetMsg"`
// 返回数据
Data *string `json:"Data,omitempty" name:"Data"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewSrvInvokeResponse ¶
func NewSrvInvokeResponse() (response *SrvInvokeResponse)
func (*SrvInvokeResponse) FromJsonString ¶
func (r *SrvInvokeResponse) FromJsonString(s string) error
func (*SrvInvokeResponse) ToJsonString ¶
func (r *SrvInvokeResponse) ToJsonString() string
type TransByDynamicContractHandlerRequest ¶
type TransByDynamicContractHandlerRequest struct {
*tchttp.BaseRequest
// 模块名,固定字段:transaction
Module *string `json:"Module,omitempty" name:"Module"`
// 操作名,固定字段:trans_by_dynamic_contract
Operation *string `json:"Operation,omitempty" name:"Operation"`
// 群组编号
GroupPk *string `json:"GroupPk,omitempty" name:"GroupPk"`
// 合约地址(合约部署成功,可得到合约地址)
ContractAddress *string `json:"ContractAddress,omitempty" name:"ContractAddress"`
// 合约名
ContractName *string `json:"ContractName,omitempty" name:"ContractName"`
// 合约编译后的abi
AbiInfo *string `json:"AbiInfo,omitempty" name:"AbiInfo"`
// 合约被调用方法名
FuncName *string `json:"FuncName,omitempty" name:"FuncName"`
// 合约被调用方法的入参
FuncParam []*string `json:"FuncParam,omitempty" name:"FuncParam" list`
}
func NewTransByDynamicContractHandlerRequest ¶
func NewTransByDynamicContractHandlerRequest() (request *TransByDynamicContractHandlerRequest)
func (*TransByDynamicContractHandlerRequest) FromJsonString ¶
func (r *TransByDynamicContractHandlerRequest) FromJsonString(s string) error
func (*TransByDynamicContractHandlerRequest) ToJsonString ¶
func (r *TransByDynamicContractHandlerRequest) ToJsonString() string
type TransByDynamicContractHandlerResponse ¶
type TransByDynamicContractHandlerResponse struct {
*tchttp.BaseResponse
Response *struct {
// 交易结果json字符串
TransactionRsp *string `json:"TransactionRsp,omitempty" name:"TransactionRsp"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewTransByDynamicContractHandlerResponse ¶
func NewTransByDynamicContractHandlerResponse() (response *TransByDynamicContractHandlerResponse)
func (*TransByDynamicContractHandlerResponse) FromJsonString ¶
func (r *TransByDynamicContractHandlerResponse) FromJsonString(s string) error
func (*TransByDynamicContractHandlerResponse) ToJsonString ¶
func (r *TransByDynamicContractHandlerResponse) ToJsonString() string
type TransactionItem ¶
type TransactionItem struct {
// 交易ID
TransactionId *string `json:"TransactionId,omitempty" name:"TransactionId"`
// 交易hash
TransactionHash *string `json:"TransactionHash,omitempty" name:"TransactionHash"`
// 创建交易的组织名
CreateOrgName *string `json:"CreateOrgName,omitempty" name:"CreateOrgName"`
// 交易所在区块号
BlockId *uint64 `json:"BlockId,omitempty" name:"BlockId"`
// 交易类型(普通交易和配置交易)
TransactionType *string `json:"TransactionType,omitempty" name:"TransactionType"`
// 交易创建时间
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// 交易所在区块高度
BlockHeight *uint64 `json:"BlockHeight,omitempty" name:"BlockHeight"`
// 交易状态
TransactionStatus *string `json:"TransactionStatus,omitempty" name:"TransactionStatus"`
}
Click to show internal directories.
Click to hide internal directories.