文档
定价GitHub控制台

Litecoin

getnodeaddresses15 额度

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

网络: litecoin

参数

名称类型描述
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-litecoin-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"
  ]
}'