Network

1. List

GET api/v1/networks/

List networks

Body ParametersTypeNote
pageint
per_pageint
network_typestring

Example Response Body

{
    "data": {
        "total": 1,
        "data": [
            {
                "id": "bfb3484d-dc5c-4cc4-8be0-0251eefd2c57",
                "name": "test1",
                "created_at": "2021-12-10T05:51:29.120240Z"
            }
        ]
    },
    "msg": null,
    "status": "successful"
}

2. Create

POST api/v1/networks/

Create new network through internal organization

Body ParametersTypeNote
namestring
consensusstring
databasestring

Example Request Body

{
    "name": "test1",
    "consensus": "etcdraft",
    "database": "leveldb"
}

Example Response Body

{
    "data": {
        "id": "9ca9ab40-cd25-42a8-baaf-8a217d9ad335"
    },
    "msg": null,
    "status": "successful"
}