1// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package v20180416 16 17import ( 18 "encoding/json" 19 tcerr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors" 20 tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" 21) 22 23type ApplyUserCertRequest struct { 24 *tchttp.BaseRequest 25 26 // 模块名,固定字段:cert_mng 27 Module *string `json:"Module,omitempty" name:"Module"` 28 29 // 操作名,固定字段:cert_apply_for_user 30 Operation *string `json:"Operation,omitempty" name:"Operation"` 31 32 // 区块链网络ID,可在区块链网络详情或列表中获取 33 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 34 35 // 申请证书的组织名称,可以在组织管理列表中获取当前组织的名称 36 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` 37 38 // 用户证书标识,用于标识用户证书,要求由纯小写字母组成,长度小于10 39 UserIdentity *string `json:"UserIdentity,omitempty" name:"UserIdentity"` 40 41 // 证书申请实体,使用腾讯云账号实名认证的名称 42 Applicant *string `json:"Applicant,omitempty" name:"Applicant"` 43 44 // 证件号码。如果腾讯云账号对应的实名认证类型为企业认证,填入“0”;如果腾讯云账号对应的实名认证类型为个人认证,填入个人身份证号码 45 IdentityNum *string `json:"IdentityNum,omitempty" name:"IdentityNum"` 46 47 // csr p10证书文件。需要用户根据文档生成证书的CSR文件 48 CsrData *string `json:"CsrData,omitempty" name:"CsrData"` 49 50 // 证书备注信息 51 Notes *string `json:"Notes,omitempty" name:"Notes"` 52} 53 54func (r *ApplyUserCertRequest) ToJsonString() string { 55 b, _ := json.Marshal(r) 56 return string(b) 57} 58 59// FromJsonString It is highly **NOT** recommended to use this function 60// because it has no param check, nor strict type check 61func (r *ApplyUserCertRequest) FromJsonString(s string) error { 62 f := make(map[string]interface{}) 63 if err := json.Unmarshal([]byte(s), &f); err != nil { 64 return err 65 } 66 delete(f, "Module") 67 delete(f, "Operation") 68 delete(f, "ClusterId") 69 delete(f, "GroupName") 70 delete(f, "UserIdentity") 71 delete(f, "Applicant") 72 delete(f, "IdentityNum") 73 delete(f, "CsrData") 74 delete(f, "Notes") 75 if len(f) > 0 { 76 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ApplyUserCertRequest has unknown keys!", "") 77 } 78 return json.Unmarshal([]byte(s), &r) 79} 80 81type ApplyUserCertResponse struct { 82 *tchttp.BaseResponse 83 Response *struct { 84 85 // 证书ID 86 CertId *uint64 `json:"CertId,omitempty" name:"CertId"` 87 88 // 证书DN 89 CertDn *string `json:"CertDn,omitempty" name:"CertDn"` 90 91 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 92 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 93 } `json:"Response"` 94} 95 96func (r *ApplyUserCertResponse) ToJsonString() string { 97 b, _ := json.Marshal(r) 98 return string(b) 99} 100 101// FromJsonString It is highly **NOT** recommended to use this function 102// because it has no param check, nor strict type check 103func (r *ApplyUserCertResponse) FromJsonString(s string) error { 104 return json.Unmarshal([]byte(s), &r) 105} 106 107type BcosBlockObj struct { 108 109 // 区块哈希 110 BlockHash *string `json:"BlockHash,omitempty" name:"BlockHash"` 111 112 // 区块高度 113 BlockNumber *int64 `json:"BlockNumber,omitempty" name:"BlockNumber"` 114 115 // 区块时间戳 116 BlockTimestamp *string `json:"BlockTimestamp,omitempty" name:"BlockTimestamp"` 117 118 // 打包节点ID 119 Sealer *string `json:"Sealer,omitempty" name:"Sealer"` 120 121 // 打包节点索引 122 SealerIndex *int64 `json:"SealerIndex,omitempty" name:"SealerIndex"` 123 124 // 记录保存时间 125 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 126 127 // 交易数量 128 TransCount *int64 `json:"TransCount,omitempty" name:"TransCount"` 129 130 // 记录修改时间 131 ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"` 132} 133 134type BcosTransInfo struct { 135 136 // 所属区块高度 137 BlockNumber *int64 `json:"BlockNumber,omitempty" name:"BlockNumber"` 138 139 // 区块时间戳 140 BlockTimestamp *string `json:"BlockTimestamp,omitempty" name:"BlockTimestamp"` 141 142 // 交易哈希 143 TransHash *string `json:"TransHash,omitempty" name:"TransHash"` 144 145 // 交易发起者 146 TransFrom *string `json:"TransFrom,omitempty" name:"TransFrom"` 147 148 // 交易接收者 149 TransTo *string `json:"TransTo,omitempty" name:"TransTo"` 150 151 // 落库时间 152 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 153 154 // 修改时间 155 ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"` 156} 157 158type Block struct { 159 160 // 区块编号 161 BlockNum *uint64 `json:"BlockNum,omitempty" name:"BlockNum"` 162 163 // 区块数据Hash数值 164 DataHash *string `json:"DataHash,omitempty" name:"DataHash"` 165 166 // 区块ID,与区块编号一致 167 BlockId *uint64 `json:"BlockId,omitempty" name:"BlockId"` 168 169 // 前一个区块Hash 170 PreHash *string `json:"PreHash,omitempty" name:"PreHash"` 171 172 // 区块内的交易数量 173 TxCount *uint64 `json:"TxCount,omitempty" name:"TxCount"` 174} 175 176type BlockByNumberHandlerRequest struct { 177 *tchttp.BaseRequest 178 179 // 模块名,固定字段:block 180 Module *string `json:"Module,omitempty" name:"Module"` 181 182 // 操作名,固定字段:block_by_number 183 Operation *string `json:"Operation,omitempty" name:"Operation"` 184 185 // 当前群组编号 186 GroupPk *string `json:"GroupPk,omitempty" name:"GroupPk"` 187 188 // 区块高度 189 BlockNumber *int64 `json:"BlockNumber,omitempty" name:"BlockNumber"` 190} 191 192func (r *BlockByNumberHandlerRequest) ToJsonString() string { 193 b, _ := json.Marshal(r) 194 return string(b) 195} 196 197// FromJsonString It is highly **NOT** recommended to use this function 198// because it has no param check, nor strict type check 199func (r *BlockByNumberHandlerRequest) FromJsonString(s string) error { 200 f := make(map[string]interface{}) 201 if err := json.Unmarshal([]byte(s), &f); err != nil { 202 return err 203 } 204 delete(f, "Module") 205 delete(f, "Operation") 206 delete(f, "GroupPk") 207 delete(f, "BlockNumber") 208 if len(f) > 0 { 209 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "BlockByNumberHandlerRequest has unknown keys!", "") 210 } 211 return json.Unmarshal([]byte(s), &r) 212} 213 214type BlockByNumberHandlerResponse struct { 215 *tchttp.BaseResponse 216 Response *struct { 217 218 // 返回区块json字符串 219 BlockJson *string `json:"BlockJson,omitempty" name:"BlockJson"` 220 221 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 222 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 223 } `json:"Response"` 224} 225 226func (r *BlockByNumberHandlerResponse) ToJsonString() string { 227 b, _ := json.Marshal(r) 228 return string(b) 229} 230 231// FromJsonString It is highly **NOT** recommended to use this function 232// because it has no param check, nor strict type check 233func (r *BlockByNumberHandlerResponse) FromJsonString(s string) error { 234 return json.Unmarshal([]byte(s), &r) 235} 236 237type ChannelDetailForUser struct { 238 239 // 通道名称 240 ChannelName *string `json:"ChannelName,omitempty" name:"ChannelName"` 241 242 // 当前组织加入通道的节点列表 243 PeerList []*PeerDetailForUser `json:"PeerList,omitempty" name:"PeerList"` 244} 245 246type ClusterDetailForUser struct { 247 248 // 网络ID 249 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 250 251 // 组织列表 252 GroupList []*GroupDetailForUser `json:"GroupList,omitempty" name:"GroupList"` 253 254 // 网络名称 255 ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` 256} 257 258type CreateChaincodeAndInstallForUserRequest struct { 259 *tchttp.BaseRequest 260 261 // 模块名,本接口取值:chaincode_mng 262 Module *string `json:"Module,omitempty" name:"Module"` 263 264 // 操作名,本接口取值:chaincode_create_and_install_for_user 265 Operation *string `json:"Operation,omitempty" name:"Operation"` 266 267 // 区块链网络ID,可在区块链网络详情或列表中获取 268 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 269 270 // 调用合约的组织名称,可以在组织管理列表中获取当前组织的名称 271 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` 272 273 // 合约安装节点名称,可以在通道详情中获取该通道上的节点名称 274 PeerName *string `json:"PeerName,omitempty" name:"PeerName"` 275 276 // 智能合约名称,格式说明:以小写字母开头,由2-12位数字或小写字母组成 277 ChaincodeName *string `json:"ChaincodeName,omitempty" name:"ChaincodeName"` 278 279 // 智能合约版本,格式说明:由1-12位数字、小写字母、特殊符号(“.”)组成,如v1.0 280 ChaincodeVersion *string `json:"ChaincodeVersion,omitempty" name:"ChaincodeVersion"` 281 282 // 智能合约代码文件类型,支持类型: 283 // 1. "go":.go合约文件 284 // 2. "gozip":go合约工程zip包,要求压缩目录为代码根目录 285 // 3. "javazip":java合约工程zip包,要求压缩目录为代码根目录 286 // 4. "nodezip":nodejs合约工程zip包,要求压缩目录为代码根目录 287 ChaincodeFileType *string `json:"ChaincodeFileType,omitempty" name:"ChaincodeFileType"` 288 289 // 合约内容,合约文件或压缩包内容的base64编码,大小要求小于等于5M 290 Chaincode *string `json:"Chaincode,omitempty" name:"Chaincode"` 291} 292 293func (r *CreateChaincodeAndInstallForUserRequest) ToJsonString() string { 294 b, _ := json.Marshal(r) 295 return string(b) 296} 297 298// FromJsonString It is highly **NOT** recommended to use this function 299// because it has no param check, nor strict type check 300func (r *CreateChaincodeAndInstallForUserRequest) FromJsonString(s string) error { 301 f := make(map[string]interface{}) 302 if err := json.Unmarshal([]byte(s), &f); err != nil { 303 return err 304 } 305 delete(f, "Module") 306 delete(f, "Operation") 307 delete(f, "ClusterId") 308 delete(f, "GroupName") 309 delete(f, "PeerName") 310 delete(f, "ChaincodeName") 311 delete(f, "ChaincodeVersion") 312 delete(f, "ChaincodeFileType") 313 delete(f, "Chaincode") 314 if len(f) > 0 { 315 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateChaincodeAndInstallForUserRequest has unknown keys!", "") 316 } 317 return json.Unmarshal([]byte(s), &r) 318} 319 320type CreateChaincodeAndInstallForUserResponse struct { 321 *tchttp.BaseResponse 322 Response *struct { 323 324 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 325 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 326 } `json:"Response"` 327} 328 329func (r *CreateChaincodeAndInstallForUserResponse) ToJsonString() string { 330 b, _ := json.Marshal(r) 331 return string(b) 332} 333 334// FromJsonString It is highly **NOT** recommended to use this function 335// because it has no param check, nor strict type check 336func (r *CreateChaincodeAndInstallForUserResponse) FromJsonString(s string) error { 337 return json.Unmarshal([]byte(s), &r) 338} 339 340type DeployDynamicBcosContractRequest struct { 341 *tchttp.BaseRequest 342 343 // 网络ID,可在区块链网络详情或列表中获取 344 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 345 346 // 群组编号,可在群组列表中获取 347 GroupId *int64 `json:"GroupId,omitempty" name:"GroupId"` 348 349 // 合约编译后的ABI,可在合约详情获取 350 AbiInfo *string `json:"AbiInfo,omitempty" name:"AbiInfo"` 351 352 // 合约编译得到的字节码,hex编码,可在合约详情获取 353 ByteCodeBin *string `json:"ByteCodeBin,omitempty" name:"ByteCodeBin"` 354 355 // 签名用户编号,可在私钥管理页面获取 356 SignUserId *string `json:"SignUserId,omitempty" name:"SignUserId"` 357 358 // 构造函数入参,Json数组,多个参数以逗号分隔(参数为数组时同理),如:["str1",["arr1","arr2"]] 359 ConstructorParams *string `json:"ConstructorParams,omitempty" name:"ConstructorParams"` 360} 361 362func (r *DeployDynamicBcosContractRequest) ToJsonString() string { 363 b, _ := json.Marshal(r) 364 return string(b) 365} 366 367// FromJsonString It is highly **NOT** recommended to use this function 368// because it has no param check, nor strict type check 369func (r *DeployDynamicBcosContractRequest) FromJsonString(s string) error { 370 f := make(map[string]interface{}) 371 if err := json.Unmarshal([]byte(s), &f); err != nil { 372 return err 373 } 374 delete(f, "ClusterId") 375 delete(f, "GroupId") 376 delete(f, "AbiInfo") 377 delete(f, "ByteCodeBin") 378 delete(f, "SignUserId") 379 delete(f, "ConstructorParams") 380 if len(f) > 0 { 381 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeployDynamicBcosContractRequest has unknown keys!", "") 382 } 383 return json.Unmarshal([]byte(s), &r) 384} 385 386type DeployDynamicBcosContractResponse struct { 387 *tchttp.BaseResponse 388 Response *struct { 389 390 // 部署成功返回的合约地址 391 ContractAddress *string `json:"ContractAddress,omitempty" name:"ContractAddress"` 392 393 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 394 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 395 } `json:"Response"` 396} 397 398func (r *DeployDynamicBcosContractResponse) ToJsonString() string { 399 b, _ := json.Marshal(r) 400 return string(b) 401} 402 403// FromJsonString It is highly **NOT** recommended to use this function 404// because it has no param check, nor strict type check 405func (r *DeployDynamicBcosContractResponse) FromJsonString(s string) error { 406 return json.Unmarshal([]byte(s), &r) 407} 408 409type DeployDynamicContractHandlerRequest struct { 410 *tchttp.BaseRequest 411 412 // 模块名,固定字段:contract 413 Module *string `json:"Module,omitempty" name:"Module"` 414 415 // 操作名,固定字段:deploy_dynamic_contract 416 Operation *string `json:"Operation,omitempty" name:"Operation"` 417 418 // 群组编号 419 GroupPk *string `json:"GroupPk,omitempty" name:"GroupPk"` 420 421 // 合约名称 422 ContractName *string `json:"ContractName,omitempty" name:"ContractName"` 423 424 // 合约编译后的abi 425 AbiInfo *string `json:"AbiInfo,omitempty" name:"AbiInfo"` 426 427 // 合约编译后的binary 428 ByteCodeBin *string `json:"ByteCodeBin,omitempty" name:"ByteCodeBin"` 429 430 // 构造函数入参 431 ConstructorParams []*string `json:"ConstructorParams,omitempty" name:"ConstructorParams"` 432} 433 434func (r *DeployDynamicContractHandlerRequest) ToJsonString() string { 435 b, _ := json.Marshal(r) 436 return string(b) 437} 438 439// FromJsonString It is highly **NOT** recommended to use this function 440// because it has no param check, nor strict type check 441func (r *DeployDynamicContractHandlerRequest) FromJsonString(s string) error { 442 f := make(map[string]interface{}) 443 if err := json.Unmarshal([]byte(s), &f); err != nil { 444 return err 445 } 446 delete(f, "Module") 447 delete(f, "Operation") 448 delete(f, "GroupPk") 449 delete(f, "ContractName") 450 delete(f, "AbiInfo") 451 delete(f, "ByteCodeBin") 452 delete(f, "ConstructorParams") 453 if len(f) > 0 { 454 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeployDynamicContractHandlerRequest has unknown keys!", "") 455 } 456 return json.Unmarshal([]byte(s), &r) 457} 458 459type DeployDynamicContractHandlerResponse struct { 460 *tchttp.BaseResponse 461 Response *struct { 462 463 // 部署成功返回的合约地址 464 ContractAddress *string `json:"ContractAddress,omitempty" name:"ContractAddress"` 465 466 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 467 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 468 } `json:"Response"` 469} 470 471func (r *DeployDynamicContractHandlerResponse) ToJsonString() string { 472 b, _ := json.Marshal(r) 473 return string(b) 474} 475 476// FromJsonString It is highly **NOT** recommended to use this function 477// because it has no param check, nor strict type check 478func (r *DeployDynamicContractHandlerResponse) FromJsonString(s string) error { 479 return json.Unmarshal([]byte(s), &r) 480} 481 482type DownloadUserCertRequest struct { 483 *tchttp.BaseRequest 484 485 // 模块名,固定字段:cert_mng 486 Module *string `json:"Module,omitempty" name:"Module"` 487 488 // 操作名,固定字段:cert_download_for_user 489 Operation *string `json:"Operation,omitempty" name:"Operation"` 490 491 // 证书ID,可以在证书详情页面获取 492 CertId *uint64 `json:"CertId,omitempty" name:"CertId"` 493 494 // 证书DN,可以在证书详情页面获取 495 CertDn *string `json:"CertDn,omitempty" name:"CertDn"` 496 497 // 区块链网络ID,可在区块链网络详情或列表中获取 498 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 499 500 // 下载证书的组织名称,可以在组织管理列表中获取当前组织的名称 501 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` 502} 503 504func (r *DownloadUserCertRequest) ToJsonString() string { 505 b, _ := json.Marshal(r) 506 return string(b) 507} 508 509// FromJsonString It is highly **NOT** recommended to use this function 510// because it has no param check, nor strict type check 511func (r *DownloadUserCertRequest) FromJsonString(s string) error { 512 f := make(map[string]interface{}) 513 if err := json.Unmarshal([]byte(s), &f); err != nil { 514 return err 515 } 516 delete(f, "Module") 517 delete(f, "Operation") 518 delete(f, "CertId") 519 delete(f, "CertDn") 520 delete(f, "ClusterId") 521 delete(f, "GroupName") 522 if len(f) > 0 { 523 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DownloadUserCertRequest has unknown keys!", "") 524 } 525 return json.Unmarshal([]byte(s), &r) 526} 527 528type DownloadUserCertResponse struct { 529 *tchttp.BaseResponse 530 Response *struct { 531 532 // 证书名称 533 CertName *string `json:"CertName,omitempty" name:"CertName"` 534 535 // 证书内容 536 CertCtx *string `json:"CertCtx,omitempty" name:"CertCtx"` 537 538 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 539 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 540 } `json:"Response"` 541} 542 543func (r *DownloadUserCertResponse) ToJsonString() string { 544 b, _ := json.Marshal(r) 545 return string(b) 546} 547 548// FromJsonString It is highly **NOT** recommended to use this function 549// because it has no param check, nor strict type check 550func (r *DownloadUserCertResponse) FromJsonString(s string) error { 551 return json.Unmarshal([]byte(s), &r) 552} 553 554type EndorserGroup struct { 555 556 // 背书组织名称 557 EndorserGroupName *string `json:"EndorserGroupName,omitempty" name:"EndorserGroupName"` 558 559 // 背书节点列表 560 EndorserPeerList []*string `json:"EndorserPeerList,omitempty" name:"EndorserPeerList"` 561} 562 563type GetBcosBlockByNumberRequest struct { 564 *tchttp.BaseRequest 565 566 // 网络ID,可在区块链网络详情或列表中获取 567 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 568 569 // 群组编号,可在群组列表中获取 570 GroupId *int64 `json:"GroupId,omitempty" name:"GroupId"` 571 572 // 区块高度,可以从InvokeBcosTrans接口的返回值中解析获取 573 BlockNumber *int64 `json:"BlockNumber,omitempty" name:"BlockNumber"` 574} 575 576func (r *GetBcosBlockByNumberRequest) ToJsonString() string { 577 b, _ := json.Marshal(r) 578 return string(b) 579} 580 581// FromJsonString It is highly **NOT** recommended to use this function 582// because it has no param check, nor strict type check 583func (r *GetBcosBlockByNumberRequest) FromJsonString(s string) error { 584 f := make(map[string]interface{}) 585 if err := json.Unmarshal([]byte(s), &f); err != nil { 586 return err 587 } 588 delete(f, "ClusterId") 589 delete(f, "GroupId") 590 delete(f, "BlockNumber") 591 if len(f) > 0 { 592 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetBcosBlockByNumberRequest has unknown keys!", "") 593 } 594 return json.Unmarshal([]byte(s), &r) 595} 596 597type GetBcosBlockByNumberResponse struct { 598 *tchttp.BaseResponse 599 Response *struct { 600 601 // 返回区块json字符串 602 BlockJson *string `json:"BlockJson,omitempty" name:"BlockJson"` 603 604 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 605 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 606 } `json:"Response"` 607} 608 609func (r *GetBcosBlockByNumberResponse) ToJsonString() string { 610 b, _ := json.Marshal(r) 611 return string(b) 612} 613 614// FromJsonString It is highly **NOT** recommended to use this function 615// because it has no param check, nor strict type check 616func (r *GetBcosBlockByNumberResponse) FromJsonString(s string) error { 617 return json.Unmarshal([]byte(s), &r) 618} 619 620type GetBcosBlockListRequest struct { 621 *tchttp.BaseRequest 622 623 // 网络ID,可在区块链网络详情或列表中获取 624 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 625 626 // 群组编号,可在群组列表中获取 627 GroupId *int64 `json:"GroupId,omitempty" name:"GroupId"` 628 629 // 当前页数,默认为1 630 PageNumber *int64 `json:"PageNumber,omitempty" name:"PageNumber"` 631 632 // 每页记录数,默认为10 633 PageSize *int64 `json:"PageSize,omitempty" name:"PageSize"` 634 635 // 区块高度,可以从InvokeBcosTrans接口的返回值中解析获取 636 BlockNumber *int64 `json:"BlockNumber,omitempty" name:"BlockNumber"` 637 638 // 区块哈希,可以从InvokeBcosTrans接口的返回值中解析获取 639 BlockHash *string `json:"BlockHash,omitempty" name:"BlockHash"` 640} 641 642func (r *GetBcosBlockListRequest) ToJsonString() string { 643 b, _ := json.Marshal(r) 644 return string(b) 645} 646 647// FromJsonString It is highly **NOT** recommended to use this function 648// because it has no param check, nor strict type check 649func (r *GetBcosBlockListRequest) FromJsonString(s string) error { 650 f := make(map[string]interface{}) 651 if err := json.Unmarshal([]byte(s), &f); err != nil { 652 return err 653 } 654 delete(f, "ClusterId") 655 delete(f, "GroupId") 656 delete(f, "PageNumber") 657 delete(f, "PageSize") 658 delete(f, "BlockNumber") 659 delete(f, "BlockHash") 660 if len(f) > 0 { 661 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetBcosBlockListRequest has unknown keys!", "") 662 } 663 return json.Unmarshal([]byte(s), &r) 664} 665 666type GetBcosBlockListResponse struct { 667 *tchttp.BaseResponse 668 Response *struct { 669 670 // 总记录数 671 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 672 673 // 返回数据列表 674 List []*BcosBlockObj `json:"List,omitempty" name:"List"` 675 676 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 677 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 678 } `json:"Response"` 679} 680 681func (r *GetBcosBlockListResponse) ToJsonString() string { 682 b, _ := json.Marshal(r) 683 return string(b) 684} 685 686// FromJsonString It is highly **NOT** recommended to use this function 687// because it has no param check, nor strict type check 688func (r *GetBcosBlockListResponse) FromJsonString(s string) error { 689 return json.Unmarshal([]byte(s), &r) 690} 691 692type GetBcosTransByHashRequest struct { 693 *tchttp.BaseRequest 694 695 // 网络ID,可在区块链网络详情或列表中获取 696 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 697 698 // 群组编号,可在群组列表中获取 699 GroupId *int64 `json:"GroupId,omitempty" name:"GroupId"` 700 701 // 交易哈希值,可以从InvokeBcosTrans接口的返回值中解析获取 702 TransHash *string `json:"TransHash,omitempty" name:"TransHash"` 703} 704 705func (r *GetBcosTransByHashRequest) ToJsonString() string { 706 b, _ := json.Marshal(r) 707 return string(b) 708} 709 710// FromJsonString It is highly **NOT** recommended to use this function 711// because it has no param check, nor strict type check 712func (r *GetBcosTransByHashRequest) FromJsonString(s string) error { 713 f := make(map[string]interface{}) 714 if err := json.Unmarshal([]byte(s), &f); err != nil { 715 return err 716 } 717 delete(f, "ClusterId") 718 delete(f, "GroupId") 719 delete(f, "TransHash") 720 if len(f) > 0 { 721 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetBcosTransByHashRequest has unknown keys!", "") 722 } 723 return json.Unmarshal([]byte(s), &r) 724} 725 726type GetBcosTransByHashResponse struct { 727 *tchttp.BaseResponse 728 Response *struct { 729 730 // 交易信息json字符串 731 TransactionJson *string `json:"TransactionJson,omitempty" name:"TransactionJson"` 732 733 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 734 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 735 } `json:"Response"` 736} 737 738func (r *GetBcosTransByHashResponse) ToJsonString() string { 739 b, _ := json.Marshal(r) 740 return string(b) 741} 742 743// FromJsonString It is highly **NOT** recommended to use this function 744// because it has no param check, nor strict type check 745func (r *GetBcosTransByHashResponse) FromJsonString(s string) error { 746 return json.Unmarshal([]byte(s), &r) 747} 748 749type GetBcosTransListRequest struct { 750 *tchttp.BaseRequest 751 752 // 网络ID,可在区块链网络详情或列表中获取 753 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 754 755 // 群组编号,可在群组列表中获取 756 GroupId *int64 `json:"GroupId,omitempty" name:"GroupId"` 757 758 // 当前页数,默认是1 759 PageNumber *int64 `json:"PageNumber,omitempty" name:"PageNumber"` 760 761 // 每页记录数,默认为10 762 PageSize *int64 `json:"PageSize,omitempty" name:"PageSize"` 763 764 // 区块高度,可以从InvokeBcosTrans接口的返回值中解析获取 765 BlockNumber *int64 `json:"BlockNumber,omitempty" name:"BlockNumber"` 766 767 // 交易哈希,可以从InvokeBcosTrans接口的返回值中解析获取 768 TransHash *string `json:"TransHash,omitempty" name:"TransHash"` 769} 770 771func (r *GetBcosTransListRequest) ToJsonString() string { 772 b, _ := json.Marshal(r) 773 return string(b) 774} 775 776// FromJsonString It is highly **NOT** recommended to use this function 777// because it has no param check, nor strict type check 778func (r *GetBcosTransListRequest) FromJsonString(s string) error { 779 f := make(map[string]interface{}) 780 if err := json.Unmarshal([]byte(s), &f); err != nil { 781 return err 782 } 783 delete(f, "ClusterId") 784 delete(f, "GroupId") 785 delete(f, "PageNumber") 786 delete(f, "PageSize") 787 delete(f, "BlockNumber") 788 delete(f, "TransHash") 789 if len(f) > 0 { 790 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetBcosTransListRequest has unknown keys!", "") 791 } 792 return json.Unmarshal([]byte(s), &r) 793} 794 795type GetBcosTransListResponse struct { 796 *tchttp.BaseResponse 797 Response *struct { 798 799 // 总记录数 800 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 801 802 // 返回数据列表 803 List []*BcosTransInfo `json:"List,omitempty" name:"List"` 804 805 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 806 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 807 } `json:"Response"` 808} 809 810func (r *GetBcosTransListResponse) ToJsonString() string { 811 b, _ := json.Marshal(r) 812 return string(b) 813} 814 815// FromJsonString It is highly **NOT** recommended to use this function 816// because it has no param check, nor strict type check 817func (r *GetBcosTransListResponse) FromJsonString(s string) error { 818 return json.Unmarshal([]byte(s), &r) 819} 820 821type GetBlockListHandlerRequest struct { 822 *tchttp.BaseRequest 823 824 // 模块名,固定字段:block 825 Module *string `json:"Module,omitempty" name:"Module"` 826 827 // 操作名,固定字段:get_block_list 828 Operation *string `json:"Operation,omitempty" name:"Operation"` 829 830 // 记录偏移数 831 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 832 833 // 每页记录数 834 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 835 836 // 当前群组编号 837 GroupPk *string `json:"GroupPk,omitempty" name:"GroupPk"` 838 839 // 区块哈希 840 BlockHash *string `json:"BlockHash,omitempty" name:"BlockHash"` 841} 842 843func (r *GetBlockListHandlerRequest) ToJsonString() string { 844 b, _ := json.Marshal(r) 845 return string(b) 846} 847 848// FromJsonString It is highly **NOT** recommended to use this function 849// because it has no param check, nor strict type check 850func (r *GetBlockListHandlerRequest) FromJsonString(s string) error { 851 f := make(map[string]interface{}) 852 if err := json.Unmarshal([]byte(s), &f); err != nil { 853 return err 854 } 855 delete(f, "Module") 856 delete(f, "Operation") 857 delete(f, "Offset") 858 delete(f, "Limit") 859 delete(f, "GroupPk") 860 delete(f, "BlockHash") 861 if len(f) > 0 { 862 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetBlockListHandlerRequest has unknown keys!", "") 863 } 864 return json.Unmarshal([]byte(s), &r) 865} 866 867type GetBlockListHandlerResponse struct { 868 *tchttp.BaseResponse 869 Response *struct { 870 871 // 总记录数 872 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 873 874 // 当前群组编号 875 GroupPk *string `json:"GroupPk,omitempty" name:"GroupPk"` 876 877 // 返回数据列表 878 List []*BcosBlockObj `json:"List,omitempty" name:"List"` 879 880 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 881 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 882 } `json:"Response"` 883} 884 885func (r *GetBlockListHandlerResponse) ToJsonString() string { 886 b, _ := json.Marshal(r) 887 return string(b) 888} 889 890// FromJsonString It is highly **NOT** recommended to use this function 891// because it has no param check, nor strict type check 892func (r *GetBlockListHandlerResponse) FromJsonString(s string) error { 893 return json.Unmarshal([]byte(s), &r) 894} 895 896type GetBlockListRequest struct { 897 *tchttp.BaseRequest 898 899 // 模块名称,固定字段:block 900 Module *string `json:"Module,omitempty" name:"Module"` 901 902 // 操作名称,固定字段:block_list 903 Operation *string `json:"Operation,omitempty" name:"Operation"` 904 905 // 通道ID,固定字段:0 906 ChannelId *uint64 `json:"ChannelId,omitempty" name:"ChannelId"` 907 908 // 组织ID,固定字段:0 909 GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"` 910 911 // 需要查询的通道名称,可在通道详情或列表中获取 912 ChannelName *string `json:"ChannelName,omitempty" name:"ChannelName"` 913 914 // 调用接口的组织名称,可以在组织管理列表中获取当前组织的名称 915 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` 916 917 // 区块链网络ID,可在区块链网络详情或列表中获取 918 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 919 920 // 需要获取的起始交易偏移 921 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 922 923 // 需要获取的交易数量 924 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 925} 926 927func (r *GetBlockListRequest) ToJsonString() string { 928 b, _ := json.Marshal(r) 929 return string(b) 930} 931 932// FromJsonString It is highly **NOT** recommended to use this function 933// because it has no param check, nor strict type check 934func (r *GetBlockListRequest) FromJsonString(s string) error { 935 f := make(map[string]interface{}) 936 if err := json.Unmarshal([]byte(s), &f); err != nil { 937 return err 938 } 939 delete(f, "Module") 940 delete(f, "Operation") 941 delete(f, "ChannelId") 942 delete(f, "GroupId") 943 delete(f, "ChannelName") 944 delete(f, "GroupName") 945 delete(f, "ClusterId") 946 delete(f, "Offset") 947 delete(f, "Limit") 948 if len(f) > 0 { 949 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetBlockListRequest has unknown keys!", "") 950 } 951 return json.Unmarshal([]byte(s), &r) 952} 953 954type GetBlockListResponse struct { 955 *tchttp.BaseResponse 956 Response *struct { 957 958 // 区块数量 959 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 960 961 // 区块列表 962 BlockList []*Block `json:"BlockList,omitempty" name:"BlockList"` 963 964 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 965 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 966 } `json:"Response"` 967} 968 969func (r *GetBlockListResponse) ToJsonString() string { 970 b, _ := json.Marshal(r) 971 return string(b) 972} 973 974// FromJsonString It is highly **NOT** recommended to use this function 975// because it has no param check, nor strict type check 976func (r *GetBlockListResponse) FromJsonString(s string) error { 977 return json.Unmarshal([]byte(s), &r) 978} 979 980type GetBlockTransactionListForUserRequest struct { 981 *tchttp.BaseRequest 982 983 // 模块名,固定字段:transaction 984 Module *string `json:"Module,omitempty" name:"Module"` 985 986 // 操作名,固定字段:block_transaction_list_for_user 987 Operation *string `json:"Operation,omitempty" name:"Operation"` 988 989 // 区块链网络ID,可在区块链网络详情或列表中获取 990 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 991 992 // 参与交易的组织名称,可以在组织管理列表中获取当前组织的名称 993 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` 994 995 // 业务所属通道名称,可在通道详情或列表中获取 996 ChannelName *string `json:"ChannelName,omitempty" name:"ChannelName"` 997 998 // 区块ID,通过GetInvokeTx接口可以获取交易所在的区块ID 999 BlockId *uint64 `json:"BlockId,omitempty" name:"BlockId"` 1000 1001 // 查询的交易列表起始偏移地址 1002 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 1003 1004 // 查询的交易列表数量 1005 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 1006} 1007 1008func (r *GetBlockTransactionListForUserRequest) ToJsonString() string { 1009 b, _ := json.Marshal(r) 1010 return string(b) 1011} 1012 1013// FromJsonString It is highly **NOT** recommended to use this function 1014// because it has no param check, nor strict type check 1015func (r *GetBlockTransactionListForUserRequest) FromJsonString(s string) error { 1016 f := make(map[string]interface{}) 1017 if err := json.Unmarshal([]byte(s), &f); err != nil { 1018 return err 1019 } 1020 delete(f, "Module") 1021 delete(f, "Operation") 1022 delete(f, "ClusterId") 1023 delete(f, "GroupName") 1024 delete(f, "ChannelName") 1025 delete(f, "BlockId") 1026 delete(f, "Offset") 1027 delete(f, "Limit") 1028 if len(f) > 0 { 1029 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetBlockTransactionListForUserRequest has unknown keys!", "") 1030 } 1031 return json.Unmarshal([]byte(s), &r) 1032} 1033 1034type GetBlockTransactionListForUserResponse struct { 1035 *tchttp.BaseResponse 1036 Response *struct { 1037 1038 // 交易总数量 1039 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 1040 1041 // 交易列表 1042 TransactionList []*TransactionItem `json:"TransactionList,omitempty" name:"TransactionList"` 1043 1044 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1045 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1046 } `json:"Response"` 1047} 1048 1049func (r *GetBlockTransactionListForUserResponse) ToJsonString() string { 1050 b, _ := json.Marshal(r) 1051 return string(b) 1052} 1053 1054// FromJsonString It is highly **NOT** recommended to use this function 1055// because it has no param check, nor strict type check 1056func (r *GetBlockTransactionListForUserResponse) FromJsonString(s string) error { 1057 return json.Unmarshal([]byte(s), &r) 1058} 1059 1060type GetChaincodeCompileLogForUserRequest struct { 1061 *tchttp.BaseRequest 1062 1063 // 模块名,本接口取值:chaincode_mng 1064 Module *string `json:"Module,omitempty" name:"Module"` 1065 1066 // 操作名,本接口取值:chaincode_compile_log_for_user 1067 Operation *string `json:"Operation,omitempty" name:"Operation"` 1068 1069 // 区块链网络ID,可在区块链网络详情或列表中获取 1070 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 1071 1072 // 调用合约的组织名称 1073 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` 1074 1075 // 业务所属智能合约名称 1076 ChaincodeName *string `json:"ChaincodeName,omitempty" name:"ChaincodeName"` 1077 1078 // 业务所属智能合约版本 1079 ChaincodeVersion *string `json:"ChaincodeVersion,omitempty" name:"ChaincodeVersion"` 1080 1081 // 合约安装节点名称,可以在通道详情中获取该通道上的节点名称 1082 PeerName *string `json:"PeerName,omitempty" name:"PeerName"` 1083 1084 // 返回数据项数,本接口默认取值:10 1085 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 1086 1087 // 返回数据起始偏移,本接口默认取值:0 1088 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 1089} 1090 1091func (r *GetChaincodeCompileLogForUserRequest) ToJsonString() string { 1092 b, _ := json.Marshal(r) 1093 return string(b) 1094} 1095 1096// FromJsonString It is highly **NOT** recommended to use this function 1097// because it has no param check, nor strict type check 1098func (r *GetChaincodeCompileLogForUserRequest) FromJsonString(s string) error { 1099 f := make(map[string]interface{}) 1100 if err := json.Unmarshal([]byte(s), &f); err != nil { 1101 return err 1102 } 1103 delete(f, "Module") 1104 delete(f, "Operation") 1105 delete(f, "ClusterId") 1106 delete(f, "GroupName") 1107 delete(f, "ChaincodeName") 1108 delete(f, "ChaincodeVersion") 1109 delete(f, "PeerName") 1110 delete(f, "Limit") 1111 delete(f, "Offset") 1112 if len(f) > 0 { 1113 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetChaincodeCompileLogForUserRequest has unknown keys!", "") 1114 } 1115 return json.Unmarshal([]byte(s), &r) 1116} 1117 1118type GetChaincodeCompileLogForUserResponse struct { 1119 *tchttp.BaseResponse 1120 Response *struct { 1121 1122 // 日志总行数,上限2000条日志 1123 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 1124 1125 // 日志列表 1126 CompileLogList []*LogDetailForUser `json:"CompileLogList,omitempty" name:"CompileLogList"` 1127 1128 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1129 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1130 } `json:"Response"` 1131} 1132 1133func (r *GetChaincodeCompileLogForUserResponse) ToJsonString() string { 1134 b, _ := json.Marshal(r) 1135 return string(b) 1136} 1137 1138// FromJsonString It is highly **NOT** recommended to use this function 1139// because it has no param check, nor strict type check 1140func (r *GetChaincodeCompileLogForUserResponse) FromJsonString(s string) error { 1141 return json.Unmarshal([]byte(s), &r) 1142} 1143 1144type GetChaincodeInitializeResultForUserRequest struct { 1145 *tchttp.BaseRequest 1146 1147 // 模块名,本接口取值:chaincode_mng 1148 Module *string `json:"Module,omitempty" name:"Module"` 1149 1150 // 操作名,本接口取值:chaincode_init_result_for_user 1151 Operation *string `json:"Operation,omitempty" name:"Operation"` 1152 1153 // 区块链网络ID,可在区块链网络详情或列表中获取 1154 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 1155 1156 // 调用合约的组织名称 1157 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` 1158 1159 // 业务所属通道名称 1160 ChannelName *string `json:"ChannelName,omitempty" name:"ChannelName"` 1161 1162 // 业务所属合约名称 1163 ChaincodeName *string `json:"ChaincodeName,omitempty" name:"ChaincodeName"` 1164 1165 // 业务所属智能合约版本 1166 ChaincodeVersion *string `json:"ChaincodeVersion,omitempty" name:"ChaincodeVersion"` 1167 1168 // 实例化任务ID 1169 TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` 1170} 1171 1172func (r *GetChaincodeInitializeResultForUserRequest) ToJsonString() string { 1173 b, _ := json.Marshal(r) 1174 return string(b) 1175} 1176 1177// FromJsonString It is highly **NOT** recommended to use this function 1178// because it has no param check, nor strict type check 1179func (r *GetChaincodeInitializeResultForUserRequest) FromJsonString(s string) error { 1180 f := make(map[string]interface{}) 1181 if err := json.Unmarshal([]byte(s), &f); err != nil { 1182 return err 1183 } 1184 delete(f, "Module") 1185 delete(f, "Operation") 1186 delete(f, "ClusterId") 1187 delete(f, "GroupName") 1188 delete(f, "ChannelName") 1189 delete(f, "ChaincodeName") 1190 delete(f, "ChaincodeVersion") 1191 delete(f, "TaskId") 1192 if len(f) > 0 { 1193 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetChaincodeInitializeResultForUserRequest has unknown keys!", "") 1194 } 1195 return json.Unmarshal([]byte(s), &r) 1196} 1197 1198type GetChaincodeInitializeResultForUserResponse struct { 1199 *tchttp.BaseResponse 1200 Response *struct { 1201 1202 // 实例化结果:0,实例化中;1,实例化成功;2,实例化失败 1203 InitResult *uint64 `json:"InitResult,omitempty" name:"InitResult"` 1204 1205 // 实例化信息 1206 InitMessage *string `json:"InitMessage,omitempty" name:"InitMessage"` 1207 1208 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1209 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1210 } `json:"Response"` 1211} 1212 1213func (r *GetChaincodeInitializeResultForUserResponse) ToJsonString() string { 1214 b, _ := json.Marshal(r) 1215 return string(b) 1216} 1217 1218// FromJsonString It is highly **NOT** recommended to use this function 1219// because it has no param check, nor strict type check 1220func (r *GetChaincodeInitializeResultForUserResponse) FromJsonString(s string) error { 1221 return json.Unmarshal([]byte(s), &r) 1222} 1223 1224type GetChaincodeLogForUserRequest struct { 1225 *tchttp.BaseRequest 1226 1227 // 模块名,本接口取值:chaincode_mng 1228 Module *string `json:"Module,omitempty" name:"Module"` 1229 1230 // 操作名,本接口取值:chaincode_log_for_user 1231 Operation *string `json:"Operation,omitempty" name:"Operation"` 1232 1233 // 区块链网络ID,可在区块链网络详情或列表中获取 1234 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 1235 1236 // 调用合约的组织名称 1237 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` 1238 1239 // 业务所属智能合约名称 1240 ChaincodeName *string `json:"ChaincodeName,omitempty" name:"ChaincodeName"` 1241 1242 // 业务所属智能合约版本 1243 ChaincodeVersion *string `json:"ChaincodeVersion,omitempty" name:"ChaincodeVersion"` 1244 1245 // 合约安装节点名称,可以在通道详情中获取该通道上的节点名称 1246 PeerName *string `json:"PeerName,omitempty" name:"PeerName"` 1247 1248 // 日志开始时间,如"2020-11-24 19:49:25" 1249 BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` 1250 1251 // 返回日志行数的最大值,系统设定该参数最大为1000,且一行日志的最大字节数是500,即最大返回50万个字节数的日志数据 1252 RowNum *int64 `json:"RowNum,omitempty" name:"RowNum"` 1253} 1254 1255func (r *GetChaincodeLogForUserRequest) ToJsonString() string { 1256 b, _ := json.Marshal(r) 1257 return string(b) 1258} 1259 1260// FromJsonString It is highly **NOT** recommended to use this function 1261// because it has no param check, nor strict type check 1262func (r *GetChaincodeLogForUserRequest) FromJsonString(s string) error { 1263 f := make(map[string]interface{}) 1264 if err := json.Unmarshal([]byte(s), &f); err != nil { 1265 return err 1266 } 1267 delete(f, "Module") 1268 delete(f, "Operation") 1269 delete(f, "ClusterId") 1270 delete(f, "GroupName") 1271 delete(f, "ChaincodeName") 1272 delete(f, "ChaincodeVersion") 1273 delete(f, "PeerName") 1274 delete(f, "BeginTime") 1275 delete(f, "RowNum") 1276 if len(f) > 0 { 1277 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetChaincodeLogForUserRequest has unknown keys!", "") 1278 } 1279 return json.Unmarshal([]byte(s), &r) 1280} 1281 1282type GetChaincodeLogForUserResponse struct { 1283 *tchttp.BaseResponse 1284 Response *struct { 1285 1286 // 返回日志总行数,不会超过入参的RowNum 1287 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 1288 1289 // 日志列表 1290 ChaincodeLogList []*LogDetailForUser `json:"ChaincodeLogList,omitempty" name:"ChaincodeLogList"` 1291 1292 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1293 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1294 } `json:"Response"` 1295} 1296 1297func (r *GetChaincodeLogForUserResponse) ToJsonString() string { 1298 b, _ := json.Marshal(r) 1299 return string(b) 1300} 1301 1302// FromJsonString It is highly **NOT** recommended to use this function 1303// because it has no param check, nor strict type check 1304func (r *GetChaincodeLogForUserResponse) FromJsonString(s string) error { 1305 return json.Unmarshal([]byte(s), &r) 1306} 1307 1308type GetChannelListForUserRequest struct { 1309 *tchttp.BaseRequest 1310 1311 // 模块名,本接口取值:channel_mng 1312 Module *string `json:"Module,omitempty" name:"Module"` 1313 1314 // 操作名,本接口取值:channel_list_for_user 1315 Operation *string `json:"Operation,omitempty" name:"Operation"` 1316 1317 // 区块链网络ID,可在区块链网络详情或列表中获取 1318 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 1319 1320 // 组织名称 1321 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` 1322 1323 // 返回数据项数,本接口默认取值:10,上限取值:20 1324 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 1325 1326 // 返回数据起始偏移,本接口默认取值:0 1327 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 1328} 1329 1330func (r *GetChannelListForUserRequest) ToJsonString() string { 1331 b, _ := json.Marshal(r) 1332 return string(b) 1333} 1334 1335// FromJsonString It is highly **NOT** recommended to use this function 1336// because it has no param check, nor strict type check 1337func (r *GetChannelListForUserRequest) FromJsonString(s string) error { 1338 f := make(map[string]interface{}) 1339 if err := json.Unmarshal([]byte(s), &f); err != nil { 1340 return err 1341 } 1342 delete(f, "Module") 1343 delete(f, "Operation") 1344 delete(f, "ClusterId") 1345 delete(f, "GroupName") 1346 delete(f, "Limit") 1347 delete(f, "Offset") 1348 if len(f) > 0 { 1349 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetChannelListForUserRequest has unknown keys!", "") 1350 } 1351 return json.Unmarshal([]byte(s), &r) 1352} 1353 1354type GetChannelListForUserResponse struct { 1355 *tchttp.BaseResponse 1356 Response *struct { 1357 1358 // 通道总数量 1359 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 1360 1361 // 通道列表 1362 ChannelList []*ChannelDetailForUser `json:"ChannelList,omitempty" name:"ChannelList"` 1363 1364 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1365 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1366 } `json:"Response"` 1367} 1368 1369func (r *GetChannelListForUserResponse) ToJsonString() string { 1370 b, _ := json.Marshal(r) 1371 return string(b) 1372} 1373 1374// FromJsonString It is highly **NOT** recommended to use this function 1375// because it has no param check, nor strict type check 1376func (r *GetChannelListForUserResponse) FromJsonString(s string) error { 1377 return json.Unmarshal([]byte(s), &r) 1378} 1379 1380type GetClusterListForUserRequest struct { 1381 *tchttp.BaseRequest 1382 1383 // 模块名,本接口取值:cluster_mng 1384 Module *string `json:"Module,omitempty" name:"Module"` 1385 1386 // 操作名,本接口取值:cluster_list_for_user 1387 Operation *string `json:"Operation,omitempty" name:"Operation"` 1388 1389 // 返回数据项数,本接口默认取值:10,上限取值:20 1390 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 1391 1392 // 返回数据起始偏移,本接口默认取值:0 1393 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 1394} 1395 1396func (r *GetClusterListForUserRequest) ToJsonString() string { 1397 b, _ := json.Marshal(r) 1398 return string(b) 1399} 1400 1401// FromJsonString It is highly **NOT** recommended to use this function 1402// because it has no param check, nor strict type check 1403func (r *GetClusterListForUserRequest) FromJsonString(s string) error { 1404 f := make(map[string]interface{}) 1405 if err := json.Unmarshal([]byte(s), &f); err != nil { 1406 return err 1407 } 1408 delete(f, "Module") 1409 delete(f, "Operation") 1410 delete(f, "Limit") 1411 delete(f, "Offset") 1412 if len(f) > 0 { 1413 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetClusterListForUserRequest has unknown keys!", "") 1414 } 1415 return json.Unmarshal([]byte(s), &r) 1416} 1417 1418type GetClusterListForUserResponse struct { 1419 *tchttp.BaseResponse 1420 Response *struct { 1421 1422 // 网络总数量 1423 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 1424 1425 // 网络列表 1426 ClusterList []*ClusterDetailForUser `json:"ClusterList,omitempty" name:"ClusterList"` 1427 1428 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1429 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1430 } `json:"Response"` 1431} 1432 1433func (r *GetClusterListForUserResponse) ToJsonString() string { 1434 b, _ := json.Marshal(r) 1435 return string(b) 1436} 1437 1438// FromJsonString It is highly **NOT** recommended to use this function 1439// because it has no param check, nor strict type check 1440func (r *GetClusterListForUserResponse) FromJsonString(s string) error { 1441 return json.Unmarshal([]byte(s), &r) 1442} 1443 1444type GetClusterSummaryRequest struct { 1445 *tchttp.BaseRequest 1446 1447 // 模块名称,固定字段:cluster_mng 1448 Module *string `json:"Module,omitempty" name:"Module"` 1449 1450 // 操作名称,固定字段:cluster_summary 1451 Operation *string `json:"Operation,omitempty" name:"Operation"` 1452 1453 // 区块链网络ID,可在区块链网络详情或列表中获取 1454 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 1455 1456 // 组织ID,固定字段:0 1457 GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"` 1458 1459 // 调用接口的组织名称,可以在组织管理列表中获取当前组织的名称 1460 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` 1461} 1462 1463func (r *GetClusterSummaryRequest) ToJsonString() string { 1464 b, _ := json.Marshal(r) 1465 return string(b) 1466} 1467 1468// FromJsonString It is highly **NOT** recommended to use this function 1469// because it has no param check, nor strict type check 1470func (r *GetClusterSummaryRequest) FromJsonString(s string) error { 1471 f := make(map[string]interface{}) 1472 if err := json.Unmarshal([]byte(s), &f); err != nil { 1473 return err 1474 } 1475 delete(f, "Module") 1476 delete(f, "Operation") 1477 delete(f, "ClusterId") 1478 delete(f, "GroupId") 1479 delete(f, "GroupName") 1480 if len(f) > 0 { 1481 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetClusterSummaryRequest has unknown keys!", "") 1482 } 1483 return json.Unmarshal([]byte(s), &r) 1484} 1485 1486type GetClusterSummaryResponse struct { 1487 *tchttp.BaseResponse 1488 Response *struct { 1489 1490 // 网络通道总数量 1491 TotalChannelCount *uint64 `json:"TotalChannelCount,omitempty" name:"TotalChannelCount"` 1492 1493 // 当前组织创建的通道数量 1494 MyChannelCount *uint64 `json:"MyChannelCount,omitempty" name:"MyChannelCount"` 1495 1496 // 当前组织加入的通道数量 1497 JoinChannelCount *uint64 `json:"JoinChannelCount,omitempty" name:"JoinChannelCount"` 1498 1499 // 网络节点总数量 1500 TotalPeerCount *uint64 `json:"TotalPeerCount,omitempty" name:"TotalPeerCount"` 1501 1502 // 当前组织创建的节点数量 1503 MyPeerCount *uint64 `json:"MyPeerCount,omitempty" name:"MyPeerCount"` 1504 1505 // 其他组织创建的节点数量 1506 OrderCount *uint64 `json:"OrderCount,omitempty" name:"OrderCount"` 1507 1508 // 网络组织总数量 1509 TotalGroupCount *uint64 `json:"TotalGroupCount,omitempty" name:"TotalGroupCount"` 1510 1511 // 当前组织创建的组织数量 1512 MyGroupCount *uint64 `json:"MyGroupCount,omitempty" name:"MyGroupCount"` 1513 1514 // 网络智能合约总数量 1515 TotalChaincodeCount *uint64 `json:"TotalChaincodeCount,omitempty" name:"TotalChaincodeCount"` 1516 1517 // 最近7天发起的智能合约数量 1518 RecentChaincodeCount *uint64 `json:"RecentChaincodeCount,omitempty" name:"RecentChaincodeCount"` 1519 1520 // 当前组织发起的智能合约数量 1521 MyChaincodeCount *uint64 `json:"MyChaincodeCount,omitempty" name:"MyChaincodeCount"` 1522 1523 // 当前组织的证书总数量 1524 TotalCertCount *uint64 `json:"TotalCertCount,omitempty" name:"TotalCertCount"` 1525 1526 // 颁发给当前组织的证书数量 1527 TlsCertCount *uint64 `json:"TlsCertCount,omitempty" name:"TlsCertCount"` 1528 1529 // 网络背书节点证书数量 1530 PeerCertCount *uint64 `json:"PeerCertCount,omitempty" name:"PeerCertCount"` 1531 1532 // 当前组织业务证书数量 1533 ClientCertCount *uint64 `json:"ClientCertCount,omitempty" name:"ClientCertCount"` 1534 1535 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1536 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1537 } `json:"Response"` 1538} 1539 1540func (r *GetClusterSummaryResponse) ToJsonString() string { 1541 b, _ := json.Marshal(r) 1542 return string(b) 1543} 1544 1545// FromJsonString It is highly **NOT** recommended to use this function 1546// because it has no param check, nor strict type check 1547func (r *GetClusterSummaryResponse) FromJsonString(s string) error { 1548 return json.Unmarshal([]byte(s), &r) 1549} 1550 1551type GetInvokeTxRequest struct { 1552 *tchttp.BaseRequest 1553 1554 // 模块名,固定字段:transaction 1555 Module *string `json:"Module,omitempty" name:"Module"` 1556 1557 // 操作名,固定字段:query_txid 1558 Operation *string `json:"Operation,omitempty" name:"Operation"` 1559 1560 // 区块链网络ID,可在区块链网络详情或列表中获取 1561 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 1562 1563 // 业务所属通道名称,可在通道详情或列表中获取 1564 ChannelName *string `json:"ChannelName,omitempty" name:"ChannelName"` 1565 1566 // 执行该查询交易的节点名称,可以在通道详情中获取该通道上的节点名称极其所属组织名称 1567 PeerName *string `json:"PeerName,omitempty" name:"PeerName"` 1568 1569 // 执行该查询交易的节点所属组织名称,可以在通道详情中获取该通道上的节点名称极其所属组织名称 1570 PeerGroup *string `json:"PeerGroup,omitempty" name:"PeerGroup"` 1571 1572 // 交易ID 1573 TxId *string `json:"TxId,omitempty" name:"TxId"` 1574 1575 // 调用合约的组织名称,可以在组织管理列表中获取当前组织的名称 1576 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` 1577} 1578 1579func (r *GetInvokeTxRequest) ToJsonString() string { 1580 b, _ := json.Marshal(r) 1581 return string(b) 1582} 1583 1584// FromJsonString It is highly **NOT** recommended to use this function 1585// because it has no param check, nor strict type check 1586func (r *GetInvokeTxRequest) FromJsonString(s string) error { 1587 f := make(map[string]interface{}) 1588 if err := json.Unmarshal([]byte(s), &f); err != nil { 1589 return err 1590 } 1591 delete(f, "Module") 1592 delete(f, "Operation") 1593 delete(f, "ClusterId") 1594 delete(f, "ChannelName") 1595 delete(f, "PeerName") 1596 delete(f, "PeerGroup") 1597 delete(f, "TxId") 1598 delete(f, "GroupName") 1599 if len(f) > 0 { 1600 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetInvokeTxRequest has unknown keys!", "") 1601 } 1602 return json.Unmarshal([]byte(s), &r) 1603} 1604 1605type GetInvokeTxResponse struct { 1606 *tchttp.BaseResponse 1607 Response *struct { 1608 1609 // 交易执行状态码 1610 TxValidationCode *int64 `json:"TxValidationCode,omitempty" name:"TxValidationCode"` 1611 1612 // 交易执行消息 1613 TxValidationMsg *string `json:"TxValidationMsg,omitempty" name:"TxValidationMsg"` 1614 1615 // 交易所在区块ID 1616 BlockId *int64 `json:"BlockId,omitempty" name:"BlockId"` 1617 1618 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1619 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1620 } `json:"Response"` 1621} 1622 1623func (r *GetInvokeTxResponse) ToJsonString() string { 1624 b, _ := json.Marshal(r) 1625 return string(b) 1626} 1627 1628// FromJsonString It is highly **NOT** recommended to use this function 1629// because it has no param check, nor strict type check 1630func (r *GetInvokeTxResponse) FromJsonString(s string) error { 1631 return json.Unmarshal([]byte(s), &r) 1632} 1633 1634type GetLatesdTransactionListRequest struct { 1635 *tchttp.BaseRequest 1636 1637 // 模块名称,固定字段:transaction 1638 Module *string `json:"Module,omitempty" name:"Module"` 1639 1640 // 操作名称,固定字段:latest_transaction_list 1641 Operation *string `json:"Operation,omitempty" name:"Operation"` 1642 1643 // 组织ID,固定字段:0 1644 GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"` 1645 1646 // 通道ID,固定字段:0 1647 ChannelId *uint64 `json:"ChannelId,omitempty" name:"ChannelId"` 1648 1649 // 获取的最新交易的区块数量,取值范围1~5 1650 LatestBlockNumber *uint64 `json:"LatestBlockNumber,omitempty" name:"LatestBlockNumber"` 1651 1652 // 调用接口的组织名称,可以在组织管理列表中获取当前组织的名称 1653 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` 1654 1655 // 需要查询的通道名称,可在通道详情或列表中获取 1656 ChannelName *string `json:"ChannelName,omitempty" name:"ChannelName"` 1657 1658 // 区块链网络ID,可在区块链网络详情或列表中获取 1659 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 1660 1661 // 需要获取的起始交易偏移 1662 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 1663 1664 // 需要获取的交易数量 1665 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 1666} 1667 1668func (r *GetLatesdTransactionListRequest) ToJsonString() string { 1669 b, _ := json.Marshal(r) 1670 return string(b) 1671} 1672 1673// FromJsonString It is highly **NOT** recommended to use this function 1674// because it has no param check, nor strict type check 1675func (r *GetLatesdTransactionListRequest) FromJsonString(s string) error { 1676 f := make(map[string]interface{}) 1677 if err := json.Unmarshal([]byte(s), &f); err != nil { 1678 return err 1679 } 1680 delete(f, "Module") 1681 delete(f, "Operation") 1682 delete(f, "GroupId") 1683 delete(f, "ChannelId") 1684 delete(f, "LatestBlockNumber") 1685 delete(f, "GroupName") 1686 delete(f, "ChannelName") 1687 delete(f, "ClusterId") 1688 delete(f, "Offset") 1689 delete(f, "Limit") 1690 if len(f) > 0 { 1691 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetLatesdTransactionListRequest has unknown keys!", "") 1692 } 1693 return json.Unmarshal([]byte(s), &r) 1694} 1695 1696type GetLatesdTransactionListResponse struct { 1697 *tchttp.BaseResponse 1698 Response *struct { 1699 1700 // 交易总数量 1701 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 1702 1703 // 交易列表 1704 TransactionList []*TransactionItem `json:"TransactionList,omitempty" name:"TransactionList"` 1705 1706 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1707 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1708 } `json:"Response"` 1709} 1710 1711func (r *GetLatesdTransactionListResponse) ToJsonString() string { 1712 b, _ := json.Marshal(r) 1713 return string(b) 1714} 1715 1716// FromJsonString It is highly **NOT** recommended to use this function 1717// because it has no param check, nor strict type check 1718func (r *GetLatesdTransactionListResponse) FromJsonString(s string) error { 1719 return json.Unmarshal([]byte(s), &r) 1720} 1721 1722type GetPeerLogForUserRequest struct { 1723 *tchttp.BaseRequest 1724 1725 // 模块名,本接口取值:peer_mng 1726 Module *string `json:"Module,omitempty" name:"Module"` 1727 1728 // 操作名,本接口取值:peer_log_for_user 1729 Operation *string `json:"Operation,omitempty" name:"Operation"` 1730 1731 // 区块链网络ID,可在区块链网络详情或列表中获取 1732 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 1733 1734 // 调用合约的组织名称 1735 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` 1736 1737 // 节点名称 1738 PeerName *string `json:"PeerName,omitempty" name:"PeerName"` 1739 1740 // 日志开始时间,如"2020-11-24 19:49:25" 1741 BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` 1742 1743 // 返回日志行数的最大值,系统设定该参数最大为1000,且一行日志的最大字节数是500,即最大返回50万个字节数的日志数据 1744 RowNum *int64 `json:"RowNum,omitempty" name:"RowNum"` 1745} 1746 1747func (r *GetPeerLogForUserRequest) ToJsonString() string { 1748 b, _ := json.Marshal(r) 1749 return string(b) 1750} 1751 1752// FromJsonString It is highly **NOT** recommended to use this function 1753// because it has no param check, nor strict type check 1754func (r *GetPeerLogForUserRequest) FromJsonString(s string) error { 1755 f := make(map[string]interface{}) 1756 if err := json.Unmarshal([]byte(s), &f); err != nil { 1757 return err 1758 } 1759 delete(f, "Module") 1760 delete(f, "Operation") 1761 delete(f, "ClusterId") 1762 delete(f, "GroupName") 1763 delete(f, "PeerName") 1764 delete(f, "BeginTime") 1765 delete(f, "RowNum") 1766 if len(f) > 0 { 1767 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetPeerLogForUserRequest has unknown keys!", "") 1768 } 1769 return json.Unmarshal([]byte(s), &r) 1770} 1771 1772type GetPeerLogForUserResponse struct { 1773 *tchttp.BaseResponse 1774 Response *struct { 1775 1776 // 返回日志总行数,不会超过入参的RowNum 1777 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 1778 1779 // 日志列表 1780 PeerLogList []*LogDetailForUser `json:"PeerLogList,omitempty" name:"PeerLogList"` 1781 1782 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1783 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1784 } `json:"Response"` 1785} 1786 1787func (r *GetPeerLogForUserResponse) ToJsonString() string { 1788 b, _ := json.Marshal(r) 1789 return string(b) 1790} 1791 1792// FromJsonString It is highly **NOT** recommended to use this function 1793// because it has no param check, nor strict type check 1794func (r *GetPeerLogForUserResponse) FromJsonString(s string) error { 1795 return json.Unmarshal([]byte(s), &r) 1796} 1797 1798type GetTransByHashHandlerRequest struct { 1799 *tchttp.BaseRequest 1800 1801 // 模块名,固定字段:transaction 1802 Module *string `json:"Module,omitempty" name:"Module"` 1803 1804 // 操作名,固定字段:get_trans_by_hash 1805 Operation *string `json:"Operation,omitempty" name:"Operation"` 1806 1807 // 群组编号 1808 GroupPk *string `json:"GroupPk,omitempty" name:"GroupPk"` 1809 1810 // 交易哈希 1811 TransHash *string `json:"TransHash,omitempty" name:"TransHash"` 1812} 1813 1814func (r *GetTransByHashHandlerRequest) ToJsonString() string { 1815 b, _ := json.Marshal(r) 1816 return string(b) 1817} 1818 1819// FromJsonString It is highly **NOT** recommended to use this function 1820// because it has no param check, nor strict type check 1821func (r *GetTransByHashHandlerRequest) FromJsonString(s string) error { 1822 f := make(map[string]interface{}) 1823 if err := json.Unmarshal([]byte(s), &f); err != nil { 1824 return err 1825 } 1826 delete(f, "Module") 1827 delete(f, "Operation") 1828 delete(f, "GroupPk") 1829 delete(f, "TransHash") 1830 if len(f) > 0 { 1831 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetTransByHashHandlerRequest has unknown keys!", "") 1832 } 1833 return json.Unmarshal([]byte(s), &r) 1834} 1835 1836type GetTransByHashHandlerResponse struct { 1837 *tchttp.BaseResponse 1838 Response *struct { 1839 1840 // 交易信息json字符串 1841 TransactionJson *string `json:"TransactionJson,omitempty" name:"TransactionJson"` 1842 1843 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1844 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1845 } `json:"Response"` 1846} 1847 1848func (r *GetTransByHashHandlerResponse) ToJsonString() string { 1849 b, _ := json.Marshal(r) 1850 return string(b) 1851} 1852 1853// FromJsonString It is highly **NOT** recommended to use this function 1854// because it has no param check, nor strict type check 1855func (r *GetTransByHashHandlerResponse) FromJsonString(s string) error { 1856 return json.Unmarshal([]byte(s), &r) 1857} 1858 1859type GetTransListHandlerRequest struct { 1860 *tchttp.BaseRequest 1861 1862 // 模块名,固定字段:transaction 1863 Module *string `json:"Module,omitempty" name:"Module"` 1864 1865 // 操作名,固定字段:get_trans_list 1866 Operation *string `json:"Operation,omitempty" name:"Operation"` 1867 1868 // 记录偏移量 1869 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 1870 1871 // 每页记录数 1872 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 1873 1874 // 群组编号 1875 GroupPk *string `json:"GroupPk,omitempty" name:"GroupPk"` 1876 1877 // 交易哈希 1878 TransHash *string `json:"TransHash,omitempty" name:"TransHash"` 1879} 1880 1881func (r *GetTransListHandlerRequest) ToJsonString() string { 1882 b, _ := json.Marshal(r) 1883 return string(b) 1884} 1885 1886// FromJsonString It is highly **NOT** recommended to use this function 1887// because it has no param check, nor strict type check 1888func (r *GetTransListHandlerRequest) FromJsonString(s string) error { 1889 f := make(map[string]interface{}) 1890 if err := json.Unmarshal([]byte(s), &f); err != nil { 1891 return err 1892 } 1893 delete(f, "Module") 1894 delete(f, "Operation") 1895 delete(f, "Offset") 1896 delete(f, "Limit") 1897 delete(f, "GroupPk") 1898 delete(f, "TransHash") 1899 if len(f) > 0 { 1900 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetTransListHandlerRequest has unknown keys!", "") 1901 } 1902 return json.Unmarshal([]byte(s), &r) 1903} 1904 1905type GetTransListHandlerResponse struct { 1906 *tchttp.BaseResponse 1907 Response *struct { 1908 1909 // 总记录数 1910 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 1911 1912 // 当前群组编号 1913 GroupPk *string `json:"GroupPk,omitempty" name:"GroupPk"` 1914 1915 // 返回数据列表 1916 List []*BcosTransInfo `json:"List,omitempty" name:"List"` 1917 1918 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1919 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1920 } `json:"Response"` 1921} 1922 1923func (r *GetTransListHandlerResponse) ToJsonString() string { 1924 b, _ := json.Marshal(r) 1925 return string(b) 1926} 1927 1928// FromJsonString It is highly **NOT** recommended to use this function 1929// because it has no param check, nor strict type check 1930func (r *GetTransListHandlerResponse) FromJsonString(s string) error { 1931 return json.Unmarshal([]byte(s), &r) 1932} 1933 1934type GetTransactionDetailForUserRequest struct { 1935 *tchttp.BaseRequest 1936 1937 // 模块名,固定字段:transaction 1938 Module *string `json:"Module,omitempty" name:"Module"` 1939 1940 // 操作名,固定字段:transaction_detail_for_user 1941 Operation *string `json:"Operation,omitempty" name:"Operation"` 1942 1943 // 区块链网络ID,可在区块链网络详情或列表中获取 1944 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 1945 1946 // 参与交易的组织名称,可以在组织管理列表中获取当前组织的名称 1947 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` 1948 1949 // 业务所属通道名称,可在通道详情或列表中获取 1950 ChannelName *string `json:"ChannelName,omitempty" name:"ChannelName"` 1951 1952 // 区块ID,通过GetInvokeTx接口可以获取交易所在的区块ID 1953 BlockId *uint64 `json:"BlockId,omitempty" name:"BlockId"` 1954 1955 // 交易ID,需要查询的详情的交易ID 1956 TransactionId *string `json:"TransactionId,omitempty" name:"TransactionId"` 1957} 1958 1959func (r *GetTransactionDetailForUserRequest) ToJsonString() string { 1960 b, _ := json.Marshal(r) 1961 return string(b) 1962} 1963 1964// FromJsonString It is highly **NOT** recommended to use this function 1965// because it has no param check, nor strict type check 1966func (r *GetTransactionDetailForUserRequest) FromJsonString(s string) error { 1967 f := make(map[string]interface{}) 1968 if err := json.Unmarshal([]byte(s), &f); err != nil { 1969 return err 1970 } 1971 delete(f, "Module") 1972 delete(f, "Operation") 1973 delete(f, "ClusterId") 1974 delete(f, "GroupName") 1975 delete(f, "ChannelName") 1976 delete(f, "BlockId") 1977 delete(f, "TransactionId") 1978 if len(f) > 0 { 1979 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetTransactionDetailForUserRequest has unknown keys!", "") 1980 } 1981 return json.Unmarshal([]byte(s), &r) 1982} 1983 1984type GetTransactionDetailForUserResponse struct { 1985 *tchttp.BaseResponse 1986 Response *struct { 1987 1988 // 交易ID 1989 TransactionId *string `json:"TransactionId,omitempty" name:"TransactionId"` 1990 1991 // 交易hash 1992 TransactionHash *string `json:"TransactionHash,omitempty" name:"TransactionHash"` 1993 1994 // 创建交易的组织名 1995 CreateOrgName *string `json:"CreateOrgName,omitempty" name:"CreateOrgName"` 1996 1997 // 交易类型(普通交易和配置交易) 1998 TransactionType *string `json:"TransactionType,omitempty" name:"TransactionType"` 1999 2000 // 交易状态 2001 TransactionStatus *string `json:"TransactionStatus,omitempty" name:"TransactionStatus"` 2002 2003 // 交易创建时间 2004 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 2005 2006 // 交易数据 2007 TransactionData *string `json:"TransactionData,omitempty" name:"TransactionData"` 2008 2009 // 交易所在区块号 2010 BlockId *uint64 `json:"BlockId,omitempty" name:"BlockId"` 2011 2012 // 交易所在区块哈希 2013 BlockHash *string `json:"BlockHash,omitempty" name:"BlockHash"` 2014 2015 // 交易所在区块高度 2016 BlockHeight *uint64 `json:"BlockHeight,omitempty" name:"BlockHeight"` 2017 2018 // 通道名称 2019 ChannelName *string `json:"ChannelName,omitempty" name:"ChannelName"` 2020 2021 // 交易所在合约名称 2022 ContractName *string `json:"ContractName,omitempty" name:"ContractName"` 2023 2024 // 背书组织列表 2025 EndorserOrgList []*EndorserGroup `json:"EndorserOrgList,omitempty" name:"EndorserOrgList"` 2026 2027 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2028 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2029 } `json:"Response"` 2030} 2031 2032func (r *GetTransactionDetailForUserResponse) ToJsonString() string { 2033 b, _ := json.Marshal(r) 2034 return string(b) 2035} 2036 2037// FromJsonString It is highly **NOT** recommended to use this function 2038// because it has no param check, nor strict type check 2039func (r *GetTransactionDetailForUserResponse) FromJsonString(s string) error { 2040 return json.Unmarshal([]byte(s), &r) 2041} 2042 2043type GroupDetailForUser struct { 2044 2045 // 组织名称 2046 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` 2047 2048 // 组织MSP Identity 2049 GroupMSPId *string `json:"GroupMSPId,omitempty" name:"GroupMSPId"` 2050} 2051 2052type InitializeChaincodeForUserRequest struct { 2053 *tchttp.BaseRequest 2054 2055 // 模块名,本接口取值:chaincode_mng 2056 Module *string `json:"Module,omitempty" name:"Module"` 2057 2058 // 操作名,本接口取值:chaincode_init_for_user 2059 Operation *string `json:"Operation,omitempty" name:"Operation"` 2060 2061 // 区块链网络ID,可在区块链网络详情或列表中获取 2062 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 2063 2064 // 调用合约的组织名称 2065 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` 2066 2067 // 业务所属智能合约名称 2068 ChaincodeName *string `json:"ChaincodeName,omitempty" name:"ChaincodeName"` 2069 2070 // 业务所属智能合约版本 2071 ChaincodeVersion *string `json:"ChaincodeVersion,omitempty" name:"ChaincodeVersion"` 2072 2073 // 业务所属通道名称 2074 ChannelName *string `json:"ChannelName,omitempty" name:"ChannelName"` 2075 2076 // 合约实例化节点名称,可以在通道详情中获取该通道上的节点名称 2077 PeerName *string `json:"PeerName,omitempty" name:"PeerName"` 2078 2079 // 实例化的函数参数列表 2080 Args []*string `json:"Args,omitempty" name:"Args"` 2081} 2082 2083func (r *InitializeChaincodeForUserRequest) ToJsonString() string { 2084 b, _ := json.Marshal(r) 2085 return string(b) 2086} 2087 2088// FromJsonString It is highly **NOT** recommended to use this function 2089// because it has no param check, nor strict type check 2090func (r *InitializeChaincodeForUserRequest) FromJsonString(s string) error { 2091 f := make(map[string]interface{}) 2092 if err := json.Unmarshal([]byte(s), &f); err != nil { 2093 return err 2094 } 2095 delete(f, "Module") 2096 delete(f, "Operation") 2097 delete(f, "ClusterId") 2098 delete(f, "GroupName") 2099 delete(f, "ChaincodeName") 2100 delete(f, "ChaincodeVersion") 2101 delete(f, "ChannelName") 2102 delete(f, "PeerName") 2103 delete(f, "Args") 2104 if len(f) > 0 { 2105 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "InitializeChaincodeForUserRequest has unknown keys!", "") 2106 } 2107 return json.Unmarshal([]byte(s), &r) 2108} 2109 2110type InitializeChaincodeForUserResponse struct { 2111 *tchttp.BaseResponse 2112 Response *struct { 2113 2114 // 实例化任务ID,用于查询实例化结果 2115 TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` 2116 2117 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2118 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2119 } `json:"Response"` 2120} 2121 2122func (r *InitializeChaincodeForUserResponse) ToJsonString() string { 2123 b, _ := json.Marshal(r) 2124 return string(b) 2125} 2126 2127// FromJsonString It is highly **NOT** recommended to use this function 2128// because it has no param check, nor strict type check 2129func (r *InitializeChaincodeForUserResponse) FromJsonString(s string) error { 2130 return json.Unmarshal([]byte(s), &r) 2131} 2132 2133type InvokeBcosTransRequest struct { 2134 *tchttp.BaseRequest 2135 2136 // 网络ID,可在区块链网络详情或列表中获取 2137 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 2138 2139 // 群组编号,可在群组列表中获取 2140 GroupId *int64 `json:"GroupId,omitempty" name:"GroupId"` 2141 2142 // 合约地址,可在合约详情获取 2143 ContractAddress *string `json:"ContractAddress,omitempty" name:"ContractAddress"` 2144 2145 // 合约Abi的json数组格式的字符串,可在合约详情获取 2146 AbiInfo *string `json:"AbiInfo,omitempty" name:"AbiInfo"` 2147 2148 // 合约方法名 2149 FuncName *string `json:"FuncName,omitempty" name:"FuncName"` 2150 2151 // 签名用户编号,可在私钥管理页面获取 2152 SignUserId *string `json:"SignUserId,omitempty" name:"SignUserId"` 2153 2154 // 合约方法入参,json格式字符串 2155 FuncParam *string `json:"FuncParam,omitempty" name:"FuncParam"` 2156} 2157 2158func (r *InvokeBcosTransRequest) ToJsonString() string { 2159 b, _ := json.Marshal(r) 2160 return string(b) 2161} 2162 2163// FromJsonString It is highly **NOT** recommended to use this function 2164// because it has no param check, nor strict type check 2165func (r *InvokeBcosTransRequest) FromJsonString(s string) error { 2166 f := make(map[string]interface{}) 2167 if err := json.Unmarshal([]byte(s), &f); err != nil { 2168 return err 2169 } 2170 delete(f, "ClusterId") 2171 delete(f, "GroupId") 2172 delete(f, "ContractAddress") 2173 delete(f, "AbiInfo") 2174 delete(f, "FuncName") 2175 delete(f, "SignUserId") 2176 delete(f, "FuncParam") 2177 if len(f) > 0 { 2178 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "InvokeBcosTransRequest has unknown keys!", "") 2179 } 2180 return json.Unmarshal([]byte(s), &r) 2181} 2182 2183type InvokeBcosTransResponse struct { 2184 *tchttp.BaseResponse 2185 Response *struct { 2186 2187 // 交易结果json字符串 2188 TransactionRsp *string `json:"TransactionRsp,omitempty" name:"TransactionRsp"` 2189 2190 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2191 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2192 } `json:"Response"` 2193} 2194 2195func (r *InvokeBcosTransResponse) ToJsonString() string { 2196 b, _ := json.Marshal(r) 2197 return string(b) 2198} 2199 2200// FromJsonString It is highly **NOT** recommended to use this function 2201// because it has no param check, nor strict type check 2202func (r *InvokeBcosTransResponse) FromJsonString(s string) error { 2203 return json.Unmarshal([]byte(s), &r) 2204} 2205 2206type InvokeRequest struct { 2207 *tchttp.BaseRequest 2208 2209 // 模块名,固定字段:transaction 2210 Module *string `json:"Module,omitempty" name:"Module"` 2211 2212 // 操作名,固定字段:invoke 2213 Operation *string `json:"Operation,omitempty" name:"Operation"` 2214 2215 // 区块链网络ID,可在区块链网络详情或列表中获取 2216 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 2217 2218 // 业务所属智能合约名称,可在智能合约详情或列表中获取 2219 ChaincodeName *string `json:"ChaincodeName,omitempty" name:"ChaincodeName"` 2220 2221 // 业务所属通道名称,可在通道详情或列表中获取 2222 ChannelName *string `json:"ChannelName,omitempty" name:"ChannelName"` 2223 2224 // 对该笔交易进行背书的节点列表(包括节点名称和节点所属组织名称,详见数据结构一节),可以在通道详情中获取该通道上的节点名称及其所属组织名称 2225 Peers []*PeerSet `json:"Peers,omitempty" name:"Peers"` 2226 2227 // 该笔交易需要调用的智能合约中的函数名称 2228 FuncName *string `json:"FuncName,omitempty" name:"FuncName"` 2229 2230 // 调用合约的组织名称,可以在组织管理列表中获取当前组织的名称 2231 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` 2232 2233 // 被调用的函数参数列表,参数列表大小总和要求小于2M 2234 Args []*string `json:"Args,omitempty" name:"Args"` 2235 2236 // 同步调用标识,可选参数,值为0或者不传表示使用同步方法调用,调用后会等待交易执行后再返回执行结果;值为1时表示使用异步方式调用Invoke,执行后会立即返回交易对应的Txid,后续需要通过GetInvokeTx这个API查询该交易的执行结果。(对于逻辑较为简单的交易,可以使用同步模式;对于逻辑较为复杂的交易,建议使用异步模式,否则容易导致API因等待时间过长,返回等待超时) 2237 AsyncFlag *uint64 `json:"AsyncFlag,omitempty" name:"AsyncFlag"` 2238} 2239 2240func (r *InvokeRequest) ToJsonString() string { 2241 b, _ := json.Marshal(r) 2242 return string(b) 2243} 2244 2245// FromJsonString It is highly **NOT** recommended to use this function 2246// because it has no param check, nor strict type check 2247func (r *InvokeRequest) FromJsonString(s string) error { 2248 f := make(map[string]interface{}) 2249 if err := json.Unmarshal([]byte(s), &f); err != nil { 2250 return err 2251 } 2252 delete(f, "Module") 2253 delete(f, "Operation") 2254 delete(f, "ClusterId") 2255 delete(f, "ChaincodeName") 2256 delete(f, "ChannelName") 2257 delete(f, "Peers") 2258 delete(f, "FuncName") 2259 delete(f, "GroupName") 2260 delete(f, "Args") 2261 delete(f, "AsyncFlag") 2262 if len(f) > 0 { 2263 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "InvokeRequest has unknown keys!", "") 2264 } 2265 return json.Unmarshal([]byte(s), &r) 2266} 2267 2268type InvokeResponse struct { 2269 *tchttp.BaseResponse 2270 Response *struct { 2271 2272 // 交易ID 2273 Txid *string `json:"Txid,omitempty" name:"Txid"` 2274 2275 // 交易执行结果 2276 Events *string `json:"Events,omitempty" name:"Events"` 2277 2278 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2279 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2280 } `json:"Response"` 2281} 2282 2283func (r *InvokeResponse) ToJsonString() string { 2284 b, _ := json.Marshal(r) 2285 return string(b) 2286} 2287 2288// FromJsonString It is highly **NOT** recommended to use this function 2289// because it has no param check, nor strict type check 2290func (r *InvokeResponse) FromJsonString(s string) error { 2291 return json.Unmarshal([]byte(s), &r) 2292} 2293 2294type LogDetailForUser struct { 2295 2296 // 日志行号 2297 LineNumber *uint64 `json:"LineNumber,omitempty" name:"LineNumber"` 2298 2299 // 日志详情 2300 LogMessage *string `json:"LogMessage,omitempty" name:"LogMessage"` 2301} 2302 2303type PeerDetailForUser struct { 2304 2305 // 节点名称 2306 PeerName *string `json:"PeerName,omitempty" name:"PeerName"` 2307} 2308 2309type PeerSet struct { 2310 2311 // 节点名称 2312 PeerName *string `json:"PeerName,omitempty" name:"PeerName"` 2313 2314 // 组织名称 2315 OrgName *string `json:"OrgName,omitempty" name:"OrgName"` 2316} 2317 2318type QueryRequest struct { 2319 *tchttp.BaseRequest 2320 2321 // 模块名,固定字段:transaction 2322 Module *string `json:"Module,omitempty" name:"Module"` 2323 2324 // 操作名,固定字段:query 2325 Operation *string `json:"Operation,omitempty" name:"Operation"` 2326 2327 // 区块链网络ID,可在区块链网络详情或列表中获取 2328 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 2329 2330 // 业务所属智能合约名称,可在智能合约详情或列表中获取 2331 ChaincodeName *string `json:"ChaincodeName,omitempty" name:"ChaincodeName"` 2332 2333 // 业务所属通道名称,可在通道详情或列表中获取 2334 ChannelName *string `json:"ChannelName,omitempty" name:"ChannelName"` 2335 2336 // 执行该查询交易的节点列表(包括节点名称和节点所属组织名称,详见数据结构一节),可以在通道详情中获取该通道上的节点名称及其所属组织名称 2337 Peers []*PeerSet `json:"Peers,omitempty" name:"Peers"` 2338 2339 // 该笔交易查询需要调用的智能合约中的函数名称 2340 FuncName *string `json:"FuncName,omitempty" name:"FuncName"` 2341 2342 // 调用合约的组织名称,可以在组织管理列表中获取当前组织的名称 2343 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` 2344 2345 // 被调用的函数参数列表 2346 Args []*string `json:"Args,omitempty" name:"Args"` 2347} 2348 2349func (r *QueryRequest) ToJsonString() string { 2350 b, _ := json.Marshal(r) 2351 return string(b) 2352} 2353 2354// FromJsonString It is highly **NOT** recommended to use this function 2355// because it has no param check, nor strict type check 2356func (r *QueryRequest) FromJsonString(s string) error { 2357 f := make(map[string]interface{}) 2358 if err := json.Unmarshal([]byte(s), &f); err != nil { 2359 return err 2360 } 2361 delete(f, "Module") 2362 delete(f, "Operation") 2363 delete(f, "ClusterId") 2364 delete(f, "ChaincodeName") 2365 delete(f, "ChannelName") 2366 delete(f, "Peers") 2367 delete(f, "FuncName") 2368 delete(f, "GroupName") 2369 delete(f, "Args") 2370 if len(f) > 0 { 2371 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "QueryRequest has unknown keys!", "") 2372 } 2373 return json.Unmarshal([]byte(s), &r) 2374} 2375 2376type QueryResponse struct { 2377 *tchttp.BaseResponse 2378 Response *struct { 2379 2380 // 查询结果数据 2381 Data []*string `json:"Data,omitempty" name:"Data"` 2382 2383 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2384 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2385 } `json:"Response"` 2386} 2387 2388func (r *QueryResponse) ToJsonString() string { 2389 b, _ := json.Marshal(r) 2390 return string(b) 2391} 2392 2393// FromJsonString It is highly **NOT** recommended to use this function 2394// because it has no param check, nor strict type check 2395func (r *QueryResponse) FromJsonString(s string) error { 2396 return json.Unmarshal([]byte(s), &r) 2397} 2398 2399type SendTransactionHandlerRequest struct { 2400 *tchttp.BaseRequest 2401 2402 // 模块名,固定字段:transaction 2403 Module *string `json:"Module,omitempty" name:"Module"` 2404 2405 // 操作名,固定字段:send_transaction 2406 Operation *string `json:"Operation,omitempty" name:"Operation"` 2407 2408 // 群组编号 2409 GroupPk *string `json:"GroupPk,omitempty" name:"GroupPk"` 2410 2411 // 合约编号 2412 ContractId *int64 `json:"ContractId,omitempty" name:"ContractId"` 2413 2414 // 合约方法名 2415 FuncName *string `json:"FuncName,omitempty" name:"FuncName"` 2416 2417 // 合约方法入参 2418 FuncParam []*string `json:"FuncParam,omitempty" name:"FuncParam"` 2419} 2420 2421func (r *SendTransactionHandlerRequest) ToJsonString() string { 2422 b, _ := json.Marshal(r) 2423 return string(b) 2424} 2425 2426// FromJsonString It is highly **NOT** recommended to use this function 2427// because it has no param check, nor strict type check 2428func (r *SendTransactionHandlerRequest) FromJsonString(s string) error { 2429 f := make(map[string]interface{}) 2430 if err := json.Unmarshal([]byte(s), &f); err != nil { 2431 return err 2432 } 2433 delete(f, "Module") 2434 delete(f, "Operation") 2435 delete(f, "GroupPk") 2436 delete(f, "ContractId") 2437 delete(f, "FuncName") 2438 delete(f, "FuncParam") 2439 if len(f) > 0 { 2440 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SendTransactionHandlerRequest has unknown keys!", "") 2441 } 2442 return json.Unmarshal([]byte(s), &r) 2443} 2444 2445type SendTransactionHandlerResponse struct { 2446 *tchttp.BaseResponse 2447 Response *struct { 2448 2449 // 交易结果json字符串 2450 TransactionRsp *string `json:"TransactionRsp,omitempty" name:"TransactionRsp"` 2451 2452 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2453 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2454 } `json:"Response"` 2455} 2456 2457func (r *SendTransactionHandlerResponse) ToJsonString() string { 2458 b, _ := json.Marshal(r) 2459 return string(b) 2460} 2461 2462// FromJsonString It is highly **NOT** recommended to use this function 2463// because it has no param check, nor strict type check 2464func (r *SendTransactionHandlerResponse) FromJsonString(s string) error { 2465 return json.Unmarshal([]byte(s), &r) 2466} 2467 2468type SrvInvokeRequest struct { 2469 *tchttp.BaseRequest 2470 2471 // 服务类型,iss或者dam 2472 Service *string `json:"Service,omitempty" name:"Service"` 2473 2474 // 服务接口,要调用的方法函数名 2475 Method *string `json:"Method,omitempty" name:"Method"` 2476 2477 // 用户自定义json字符串 2478 Param *string `json:"Param,omitempty" name:"Param"` 2479} 2480 2481func (r *SrvInvokeRequest) ToJsonString() string { 2482 b, _ := json.Marshal(r) 2483 return string(b) 2484} 2485 2486// FromJsonString It is highly **NOT** recommended to use this function 2487// because it has no param check, nor strict type check 2488func (r *SrvInvokeRequest) FromJsonString(s string) error { 2489 f := make(map[string]interface{}) 2490 if err := json.Unmarshal([]byte(s), &f); err != nil { 2491 return err 2492 } 2493 delete(f, "Service") 2494 delete(f, "Method") 2495 delete(f, "Param") 2496 if len(f) > 0 { 2497 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SrvInvokeRequest has unknown keys!", "") 2498 } 2499 return json.Unmarshal([]byte(s), &r) 2500} 2501 2502type SrvInvokeResponse struct { 2503 *tchttp.BaseResponse 2504 Response *struct { 2505 2506 // 返回码 2507 RetCode *int64 `json:"RetCode,omitempty" name:"RetCode"` 2508 2509 // 返回消息 2510 RetMsg *string `json:"RetMsg,omitempty" name:"RetMsg"` 2511 2512 // 返回数据 2513 Data *string `json:"Data,omitempty" name:"Data"` 2514 2515 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2516 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2517 } `json:"Response"` 2518} 2519 2520func (r *SrvInvokeResponse) ToJsonString() string { 2521 b, _ := json.Marshal(r) 2522 return string(b) 2523} 2524 2525// FromJsonString It is highly **NOT** recommended to use this function 2526// because it has no param check, nor strict type check 2527func (r *SrvInvokeResponse) FromJsonString(s string) error { 2528 return json.Unmarshal([]byte(s), &r) 2529} 2530 2531type TransByDynamicContractHandlerRequest struct { 2532 *tchttp.BaseRequest 2533 2534 // 模块名,固定字段:transaction 2535 Module *string `json:"Module,omitempty" name:"Module"` 2536 2537 // 操作名,固定字段:trans_by_dynamic_contract 2538 Operation *string `json:"Operation,omitempty" name:"Operation"` 2539 2540 // 群组编号 2541 GroupPk *string `json:"GroupPk,omitempty" name:"GroupPk"` 2542 2543 // 合约地址(合约部署成功,可得到合约地址) 2544 ContractAddress *string `json:"ContractAddress,omitempty" name:"ContractAddress"` 2545 2546 // 合约名 2547 ContractName *string `json:"ContractName,omitempty" name:"ContractName"` 2548 2549 // 合约编译后的abi 2550 AbiInfo *string `json:"AbiInfo,omitempty" name:"AbiInfo"` 2551 2552 // 合约被调用方法名 2553 FuncName *string `json:"FuncName,omitempty" name:"FuncName"` 2554 2555 // 合约被调用方法的入参 2556 FuncParam []*string `json:"FuncParam,omitempty" name:"FuncParam"` 2557} 2558 2559func (r *TransByDynamicContractHandlerRequest) ToJsonString() string { 2560 b, _ := json.Marshal(r) 2561 return string(b) 2562} 2563 2564// FromJsonString It is highly **NOT** recommended to use this function 2565// because it has no param check, nor strict type check 2566func (r *TransByDynamicContractHandlerRequest) FromJsonString(s string) error { 2567 f := make(map[string]interface{}) 2568 if err := json.Unmarshal([]byte(s), &f); err != nil { 2569 return err 2570 } 2571 delete(f, "Module") 2572 delete(f, "Operation") 2573 delete(f, "GroupPk") 2574 delete(f, "ContractAddress") 2575 delete(f, "ContractName") 2576 delete(f, "AbiInfo") 2577 delete(f, "FuncName") 2578 delete(f, "FuncParam") 2579 if len(f) > 0 { 2580 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "TransByDynamicContractHandlerRequest has unknown keys!", "") 2581 } 2582 return json.Unmarshal([]byte(s), &r) 2583} 2584 2585type TransByDynamicContractHandlerResponse struct { 2586 *tchttp.BaseResponse 2587 Response *struct { 2588 2589 // 交易结果json字符串 2590 TransactionRsp *string `json:"TransactionRsp,omitempty" name:"TransactionRsp"` 2591 2592 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2593 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2594 } `json:"Response"` 2595} 2596 2597func (r *TransByDynamicContractHandlerResponse) ToJsonString() string { 2598 b, _ := json.Marshal(r) 2599 return string(b) 2600} 2601 2602// FromJsonString It is highly **NOT** recommended to use this function 2603// because it has no param check, nor strict type check 2604func (r *TransByDynamicContractHandlerResponse) FromJsonString(s string) error { 2605 return json.Unmarshal([]byte(s), &r) 2606} 2607 2608type TransactionItem struct { 2609 2610 // 交易ID 2611 TransactionId *string `json:"TransactionId,omitempty" name:"TransactionId"` 2612 2613 // 交易hash 2614 TransactionHash *string `json:"TransactionHash,omitempty" name:"TransactionHash"` 2615 2616 // 创建交易的组织名 2617 CreateOrgName *string `json:"CreateOrgName,omitempty" name:"CreateOrgName"` 2618 2619 // 交易所在区块号 2620 BlockId *uint64 `json:"BlockId,omitempty" name:"BlockId"` 2621 2622 // 交易类型(普通交易和配置交易) 2623 TransactionType *string `json:"TransactionType,omitempty" name:"TransactionType"` 2624 2625 // 交易创建时间 2626 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 2627 2628 // 交易所在区块高度 2629 BlockHeight *uint64 `json:"BlockHeight,omitempty" name:"BlockHeight"` 2630 2631 // 交易状态 2632 TransactionStatus *string `json:"TransactionStatus,omitempty" name:"TransactionStatus"` 2633} 2634