Get configured nodes
curl --request GET \
--url https://dev-gateway.molpha.io/v1/nodesconst options = {method: 'GET'};
fetch('https://dev-gateway.molpha.io/v1/nodes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://dev-gateway.molpha.io/v1/nodes"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://dev-gateway.molpha.io/v1/nodes"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"status": "ok",
"data": {
"nodes": [
{
"index": 0,
"address": "<string>",
"peerId": "<string>",
"signingKey": "<string>"
}
]
}
}Gateway API
Get configured nodes
Oracle node set for the current gateway deployment.
GET
/
v1
/
nodes
Get configured nodes
curl --request GET \
--url https://dev-gateway.molpha.io/v1/nodesconst options = {method: 'GET'};
fetch('https://dev-gateway.molpha.io/v1/nodes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://dev-gateway.molpha.io/v1/nodes"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://dev-gateway.molpha.io/v1/nodes"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"status": "ok",
"data": {
"nodes": [
{
"index": 0,
"address": "<string>",
"peerId": "<string>",
"signingKey": "<string>"
}
]
}
}Response
200 - application/json
Node list
Example:
"ok"
Hide child attributes
Hide child attributes
⌘I