getPeers Query
Parameters
This method does not accept any parameters
Returns
data
object
The data object which contains the following fields:
nodeInfo
object
The object containing information about the node
peers
array
An array of objects representing the peers connected to the node
id
string
The unique identifier (peer ID) for each connected peer in the network
Request
1curl --location 'https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql' \2--header 'Accept: application/json' \3--header 'Content-Type: application/json' \4--data '{5"query": "{ nodeInfo { peers { id } } }"6}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free