mirror of https://github.com/vacp2p/rfc.git
feat(c-bindings): add enr and peerID to dns discovery result (#599)
This commit is contained in:
parent
cbc2e9adb1
commit
ce86c79aa3
|
@ -1197,20 +1197,26 @@ Returns a list of multiaddress given a url to a DNS discoverable ENR tree
|
|||
**Returns**
|
||||
|
||||
A [`JsonResponse`](#jsonresponse-type).
|
||||
If the execution is successful, the `result` field contains an array with multiaddresses.
|
||||
If the execution is successful, the `result` field contains an array objects describing the multiaddresses, enr and peerID each node found.
|
||||
An `error` message otherwise.
|
||||
|
||||
```json
|
||||
{
|
||||
"result": [
|
||||
"/ip4/134.209.139.210/tcp/30303/p2p/16Uiu2HAmPLe7Mzm8TsYUubgCAW1aJoeFScxrLj8ppHFivPo97bUZ",
|
||||
"/ip4/104.154.239.128/tcp/30303/p2p/16Uiu2HAmJb2e28qLXxT5kZxVUUoJt72EMzNGXB47Rxx5hw3q4YjS",
|
||||
"/ip4/47.242.210.73/tcp/30303/p2p/16Uiu2HAkvWiyFsgRhuJEb9JfjYxEkoHLgnUQmr1N5mKWnYjxYRVm"
|
||||
]
|
||||
"result":[
|
||||
{
|
||||
"peerID":"16Uiu2HAmPLe7Mzm8TsYUubgCAW1aJoeFScxrLj8ppHFivPo97bUZ",
|
||||
"multiaddrs":[
|
||||
"/ip4/134.209.139.210/tcp/30303/p2p/16Uiu2HAmPLe7Mzm8TsYUubgCAW1aJoeFScxrLj8ppHFivPo97bUZ",
|
||||
"/dns4/node-01.do-ams3.wakuv2.test.statusim.net/tcp/8000/wss/p2p/16Uiu2HAmPLe7Mzm8TsYUubgCAW1aJoeFScxrLj8ppHFivPo97bUZ"
|
||||
],
|
||||
"enr":"enr:-M-4QCtJKX2WDloRYDT4yjeMGKUCRRcMlsNiZP3cnPO0HZn6IdJ035RPCqsQ5NvTyjqHzKnTM6pc2LoKliV4CeV0WrgBgmlkgnY0gmlwhIbRi9KKbXVsdGlhZGRyc7EALzYobm9kZS0wMS5kby1hbXMzLndha3V2Mi50ZXN0LnN0YXR1c2ltLm5ldAYfQN4DiXNlY3AyNTZrMaEDnr03Tuo77930a7sYLikftxnuG3BbC3gCFhA4632ooDaDdGNwgnZfg3VkcIIjKIV3YWt1Mg8"
|
||||
},
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
## Utils
|
||||
|
||||
### `extern char* waku_utils_base64_encode(char* data)`
|
||||
|
|
Loading…
Reference in New Issue