You can call this operation to freeze an account on a blockchain in Ant Blockchain.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Account | String | Yes | accountname |
The name of the account to freeze. |
| AntChainId | String | Yes | 1q8B5R9p |
The ID of the blockchain to which the account to freeze belongs. |
| Action | String | No | FreezeAntChainAccount |
The operation that you want to perform. Set the value to FreezeAntChainAccount. |
| RegionId | String | No | cn-hangzhou |
The ID of the region where Ant Blockchain is used. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 9F862442-F6AD-4B5F-8969-CE23DE1413CB |
The ID of the request. |
| Result | String | success |
The result of the operation. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=FreezeAntChainAccount
&<Common request parameters>
Sample success responses
JSON format
{
"successResponse":true,
"requestId":"9F862442-F6AD-4B5F-8969-CE23DE1413CB",
"data":{
"Result":"success",
"RequestId":"9F862442-F6AD-4B5F-8969-CE23DE1413CB"
},
"code":"200"
}
Error codes
For a list of error codes, visit the API Error Center.