Skip to main content

getnetwork

Description:

This endpoint returns the information about network if you are part of or created it.

Request

https://api.moinet.io/moibit/getnetwork

Request type - GET

Headers#

Header KeyHeader ValueOptional
nonce<developer_nonce> No
signature<signature gotten after signing developer_nonce by developer> No
developerKeypublic id of the developerNo
networkID ID of the network the file want to be written to. No

Response#

FieldDescription
networkName User defined name for the created network
networkID A unique identifier for the creted network
networkOwnerID This is used to identify the owner of the node
nodeList List of Nodes with information like nodeID, ram , storage , location etc
peerID Peer ID and PeerName of the cluster nodes
minimumReplicationFactor Minimum repliation factor value
maxReplicationFactor Maximum replication factory for a network
city City of the physical node
timeZone TimeZone of the physical node
ram RAM SIZE OF THE PHYSICAL MACHINE
storage total storage available on a physical node
cloudProvider machine provider name like cantaboa , digitalocean etc
isMoibitNode is this node belong to moibit
isActive is node active or not
swarmKeykey to create a private IPFS Network
clustersecretkey to create a private IPFS Network
clusterportIPFS cluster gateway port
ipfsportIPFS gateway port

Sample Response#

{
"meta": {
"code": 200,
"requestId": "dae7627d-f8e9-4412-b885-1ab1d8a4a976",
"message": "sucess"
},
"data": {
"networkName": "local network",
"networkID": "12D3KooWS37BFVMiDzV8VMAEmyF3e7FzxS5GzUzDQNYQ3TTv8Gko",
"networkOwnerID": "0xe34936809618c9b9D8506CbF2Dfd5aE55dA13876",
"swarmKey": "c201350d81a38d881eec7f2d521cf61d2ac00a6b8e7e9c20a0b5bb27b945b202",
"clustersecret": "14bb20b814a5c609b51aadf9158c28d3e54f648ab5ec19fcb8cc4b7646fdcca8",
"ipfsport": "5001",
"clusterport": "9094",
"nodelist": [
{
"nodeName": "normalNode",
"nodeIP": "127.0.0.1",
"nodeID": "12D3KooWDevi5vZMQuxZ4oQdJH4uKXqRFD4ZrGmYqwjUWpwB5T8U",
"nodeType": 1,
"region": "",
"country": "",
"city": "",
"timeZone": "",
"ram": "8192 MB",
"cpu": "4",
"storage": "115511 MB",
"internalName": null,
"cloudProvider": "",
"isPrivateNode": false,
"isMoibitNode": true,
"nodeOwnerID": "0xe34936809618c9b9D8506CbF2Dfd5aE55dA13876",
"devNetworks": [
{
"network_name": "local network"
}
],
"isActive": true
}
],
"peerIDs": [
{
"nodeID": "12D3KooWDevi5vZMQuxZ4oQdJH4uKXqRFD4ZrGmYqwjUWpwB5T8U",
"nodePeerID": "12D3KooWQm8d86f4ZRHpuDDiqrbbBsFREqU9vUPNhc4Kmbfj5oi6",
"nodePeerName": "local network_peer_1"
}
],
"minReplicationFactor": 1,
"maxReplicationFactor": 1,
"networkType": 1
}
}