GET /chains/:chainId

This endpoint returns Factom chain by Chain ID.

get
Get chain

http://localhost:8081/v1/chains/:chainId
Important! `content` and `extIds` are sent and received into Base64 format. Open API SDKs automatically convert the data into Base64.
Request
Response
Request
Path Parameters
chainId
required
string
Chain ID of the Factom chain.
Response
200: OK
Success
{
"result":
{
"chainId": "9aa8eebdaa9e6ba6790dd27692519530c046e08be73fe488597947205cc563c0",
"extIds": [
"RmFjdG9tIE9wZW4gQVBJ",
"UEhQIFNESyBUZXN0"
],
"status": "completed",
"synced": true,
"createdAt": "2019-04-18T20:03:00Z",
"links": [
{
"rel": "entries",
"href": "/chain/9aa8eebdaa9e6ba6790dd27692519530c046e08be73fe488597947205cc563c0/entries"
},
{
"rel": "firstEntry",
"href": "/chain/9aa8eebdaa9e6ba6790dd27692519530c046e08be73fe488597947205cc563c0/entries/first"
},
{
"rel": "lastEntry",
"href": "/chain/9aa8eebdaa9e6ba6790dd27692519530c046e08be73fe488597947205cc563c0/entries/last"
}
]
}
}
400: Bad Request
Pagination error Validation error
{
"result": false,
"code": 1420,
"error": "Key: 'Chain.Status' Error:Field validation for 'Status' failed on the 'oneof' tag"
}
500: Internal Server Error
Internal server error
{
"result": false,
"code": 1510,
"error": "Internal server error"
}