Zcash
getnodeaddresses8クレジット
新しいピアを見つけるために使える可能性のある既知のアドレスを返します
パラメータ
| 名前 | 型 | 説明 |
|---|---|---|
| count | number | 返すアドレスの最大数。デフォルトは 1。0 は既知のすべてのアドレスを返します。 (任意) |
| network | string | 1 つのネットワークに限定:ipv4, ipv6, onion, i2p, cjdns のいずれか。デフォルトはすべてのネットワーク。 (任意) |
戻り値
型
Object[]
{ time(最終確認時刻、Unix), services, address, port, network } の配列。
コード例
curl https://holy-burned-sky-zcash-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"
]
}'