요금GitHub대시보드

Dogecoin

getnodeaddresses15 크레딧

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

네트워크: doge

매개변수

이름타입설명
countnumberMaximum number of addresses to return. Default is 1; 0 returns all known addresses. (선택)
networkstringRestrict to one network: ipv4, ipv6, onion, i2p or cjdns. Default is all networks. (선택)

반환값

타입

Object[]

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

코드 예제

curl https://holy-burned-sky-doge-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"
  ]
}'