Invariant

Returns result of running the given invariant.

GEThttps://thor.nownodes.io/thorchain/invariant/{invariant}
Path parameters
invariant*string
Example: "asgard"
Query parameters
Response

OK

Body
invariant*string

The name of the invariant.

Example: "asgard"
broken*boolean

Returns true if the invariant is broken.

Example: false
msg*array of string

Informative message about the invariant result.

Request
const response = await fetch('https://thor.nownodes.io/thorchain/invariant/{invariant}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "invariant": "asgard",
  "broken": false,
  "msg": [
    "insolvent: 200000rune",
    "oversolvent: 1btc/btc"
  ]
}