ドキュメント
料金GitHubダッシュボード

Dash

getnodeaddresses15クレジット

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

ネットワーク: dash

パラメータ

名前型説明
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-dash-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"
  ]
}'