Domain name for API request: tbaas.intl.tencentcloudapi.com.
This API is used to obtain detailed information of Fabric transactions.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: DescribeFabricTransaction. |
| Version | Yes | String | Common Params. The value used for this API: 2018-04-16. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| ClusterId | Yes | String | Cluster ID, which can be obtained from the blockchain cluster details or in the list. |
| ChannelId | Yes | String | Channel ID, which can be obtained from the channel list or channel detail. |
| TxId | Yes | String | Transaction ID |
| Parameter Name | Type | Description |
|---|---|---|
| TxId | String | Transaction ID |
| TxHash | String | Transaction Hash. |
| TxStatus | String | Transaction status. |
| JoinOrgList | Array of String | Organization list involved. |
| Sender | String | Transaction sender. |
| CreateTime | String | Creation time |
| BlockHeight | Integer | Block height. |
| ChaincodeName | String | The contract to which the exchange belongs. |
| TransactionData | String | Transaction data, base64 encoded, decoded as a json string. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
DescribeFabricTransaction
POST / HTTP/1.1
Host: tbaas.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeFabricTransaction
<Common request parameters>
{
"ClusterId": "fabric-65z42qi150",
"ChannelId": "channel-9xej4d",
"TxId": "03389f4a5af1883347ecdb15471e70abf3a8e6cf5b6648dc789674af7930e229"
}{
"Response": {
"BlockHeight": 4,
"ChaincodeName": "_lifecycle",
"CreateTime": "2023-08-05 15:44:04",
"JoinOrgList": [
"org-xxxx.fabric-ian2bqtylk"
],
"RequestId": "b5221353-8f20-4547-8260-c550b4b0175c",
"Sender": "org-xxxx.fabric-ian2bqtylk",
"TransactionData": "eyJjaGFpbmNvZGVfc3BlYyI6eyJjaGFpbmNvZGVfaWQiOnsibmFtZSI6Il9saWZlY3ljbGUiLCJwYXRoIjoiIiwidmVyc2lvbiI6IiJ9LCJpbnB1dCI6eyJhcmdzIjpbIkNvbW1pdENoYWluY29kZURlZmluaXRpb24iLCJcdTAwMDhcdTAwMDFcdTAwMTJcdTAwMDNteWNcdTAwMWFcdTAwMDR2MS4wXCJcdTAwMDRlc2NjKlx1MDAwNHZzY2MyMVxuL1x1MDAxMlx1MDAwOFx1MDAxMlx1MDAwNlx1MDAwOFx1MDAwMVx1MDAxMlx1MDAwMlx1MDAwOFx1MDAwMFx1MDAxYSNcdTAwMTIhXG5cdTAwMWZvcmctMjUxMDA1NzQ2LmZhYnJpYy02NXo0MnFpMTUwOlx1MDAwMCJdLCJkZWNvcmF0aW9ucyI6e30sImlzX2luaXQiOmZhbHNlfSwidGltZW91dCI6MCwidHlwZSI6IlVOREVGSU5FRCJ9fQ==",
"TxHash": "8e5b978d33cfbc0510b4e60406f8481f8ec00e390131d5b6ea6d38604e1bcb46",
"TxId": "03389f4a5af1883347ecdb15471e70abf3a8e6cf5b6648dc789674af7930e229",
"TxStatus": "VALID"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| FailedOperation.FabricTransactionNoExist | The transaction does not exist. |
| FailedOperation.InvalidAuth | User has no access permission. |
| InternalError.ServerError | Internal error. please try again later or contact technical personnel. |
Feedback