You can call this operation to query the nodes on a blockchain in Ant Blockchain.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
AntChainId | String | Yes | 1q8B5R9p |
The ID of the blockchain on which you want to query the nodes. |
Action | String | No | DescribeAntChainNodes |
The operation that you want to perform. Set the value to DescribeAntChainNodes. |
RegionId | String | No | cn-hangzhou |
The ID of the region where Ant Blockchain is used. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | BA9738FE-F427-44FD-A1D9-EB4EFB43075A |
The ID of the request. |
Result | [] |
The result of the operation. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeAntChainNodes
&<Common request parameters>
Sample success responses
JSON
format
{
"successResponse":true,
"requestId":"BA9738FE-F427-44FD-A1D9-EB4EFB43075A",
"data":{
"Result":[
{
"publicKey":"0x9934CFA59EE6CB241AEC242411BCD67D1DA8E07095FFC49DCB1102F2625031EBE9636CD6C392F675214E406C9AA55CD7F8A9EA11BD54C93258FA93BED717EACD",
"nodeId":"0x79233E99716D28740AA00CFE0C1274C34C9E5511EE910C227999683EAF749553",
"nodeState":2,
"endpoints":[
{
"port":"18130",
"ip":"47.101.74.49"
}
],
"nodeType":1
},
{
"publicKey":"0x63F4F303751FB86866718A4C797CE4CD8DDBECCB2E113D5CB9B41818C6C549FEA9E559601916F0F4BDCABDC16C170ECAFA0525C8345490161124EC8386F39B93",
"nodeId":"0x9E953C89ADA2E927F7EAE866D2F26828B330D44DD17FEA84195B902B1AD1D1B1",
"nodeState":2,
"endpoints":[
{
"port":"18131",
"ip":"47.101.74.49"
}
],
"nodeType":1
},
{
"publicKey":"0x1143C35FEFF1EB151AEB77C19A6ECC6FFD6BA13AA1913C60A9ADACA08AA6CB51A555ACF6E3E6B658142EB464EF2199AE41CA0EC5ACEB6514B5F56E2D2395CE78",
"nodeId":"0x77AD62D5041B92617488A0FDD8E341C06352344FA09F614AD7FDF616C1936B92",
"nodeState":2,
"endpoints":[
{
"port":"18132",
"ip":"47.101.74.49"
}
],
"nodeType":1
},
{
"publicKey":"0xCD15C9C87DAB460C2F4AE48752E98AF023B8810777CAAA563E045EF04F714A8D2934998CAC00F462C81EB23B3816D39E07B81B49695FEA827342FDCEA982E3B6",
"nodeId":"0x3F6355C92FB81904A1D9FD6E7781415A2B4455704BCFE2A8A0466302BD8EA5C8",
"nodeState":2,
"endpoints":[
{
"port":"18133",
"ip":"47.101.74.49"
}
],
"nodeType":1
}
],
"RequestId":"BA9738FE-F427-44FD-A1D9-EB4EFB43075A"
},
"code":"200"
}
Error codes
For a list of error codes, visit the API Error Center.