Chains

List all available chains

get
Responses
200
Successful response
application/json
get
GET /api/v2/chains HTTP/1.1
Host: api.ethos.network
Accept: */*
{
  "chains": [
    {
      "id": 1,
      "name": "text",
      "url": "https://example.com",
      "iconUrl": "https://example.com"
    }
  ]
}

Add a new chain (Admin only)

post
Authorizations
Body
namestring · min: 1 · max: 100Required
urlstring · uri | nullableRequired
iconUrlstring · uri | nullableRequired
Responses
200
Successful response
application/json
post
POST /api/v2/chains HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 75

{
  "name": "text",
  "url": "https://example.com",
  "iconUrl": "https://example.com"
}
{
  "chain": {
    "id": 1,
    "name": "text",
    "url": "https://example.com",
    "iconUrl": "https://example.com"
  }
}

Edit an existing chain (Admin only)

put
Authorizations
Path parameters
idintegerRequired
Body
namestring · min: 1 · max: 100Required
urlstring · uri | nullableRequired
iconUrlstring · uri | nullableRequired
Responses
200
Successful response
application/json
put
PUT /api/v2/chains/{id} HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 75

{
  "name": "text",
  "url": "https://example.com",
  "iconUrl": "https://example.com"
}
{
  "chain": {
    "id": 1,
    "name": "text",
    "url": "https://example.com",
    "iconUrl": "https://example.com"
  }
}

Delete a chain (Admin only)

delete
Authorizations
Path parameters
idintegerRequired
Responses
200
Successful response
application/json
Responseany
delete
DELETE /api/v2/chains/{id} HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content