Get Peer List

get

/console/admin/api/v1.1/nodes/peers

Get a list of peers on a channel. If no parameter is specified, all peers will be returned. If specified by channelName, the peers which have joined the channel will be returned. If specified by chaincode, the peers which have installed the chaincode will be returned.

Request

Supported Media Types
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Response with peers listed
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : peer2
Type: object
Show Source

400 Response

Invalid argument
Body ()
Root Schema : 400errorModels
Type: object
Show Source
Example:
{
    "respMesg":"invalid argument"
}

401 Response

Unauthorized

500 Response

Internal Server Error
Body ()
Root Schema : 500errorModels
Type: object
Show Source

Default Response

Unexpected error
Body ()
Root Schema : errorModel
Type: object
Show Source
Back to Top