PreciosGitHubPanel

Bitcoin Cash

getnodeaddresses15 créditos

Returns known addresses that can potentially be used to find new peers

Red: bch

Parámetros

NombreTipoDescripción
countnumberMaximum number of addresses to return. Default is 1; 0 returns all known addresses. (opcional)
networkstringRestrict to one network: ipv4, ipv6, onion, i2p or cjdns. Default is all networks. (opcional)

Valor devuelto

Tipo

Object[]

Array of { time (last seen, Unix), services, address, port, network }.

Ejemplos de código

curl https://holy-burned-sky-bch-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
  -X POST \
  -H 'content-type: application/json' \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getnodeaddresses",
  "params": [
    10,
    "ipv4"
  ]
}'