Get Realm Info

Get information of realm or subrealm.

Method

atomicalsGetRealmInfo

Parameters

{
  realmOrSubRealm: string
  verbose?: boolean
}

Example

Realm

Code

const realm = 'realmapp'
const result: ToResult<{ result: RealmInfo }> = await api.atomicalsGetRealmInfo(
  {
    params: { realmOrSubRealm: realm },
  }
)

Result

{
  "result": {
    "atomical_id": "7788b52fb3da9d01d11918c0816aa7c62dafa2aca2f0c219d356ba71c29a31cci0",
    "candidates": [
      {
        "atomical_id": "7788b52fb3da9d01d11918c0816aa7c62dafa2aca2f0c219d356ba71c29a31cci0",
        "commit_height": 874371,
        "reveal_location_height": 874371,
        "tx_num": 1130581592,
        "txid": "7788b52fb3da9d01d11918c0816aa7c62dafa2aca2f0c219d356ba71c29a31cc"
      }
    ],
    "found_full_realm_name": "realmapp",
    "missing_name_parts": null,
    "nearest_parent_realm_atomical_id": "7788b52fb3da9d01d11918c0816aa7c62dafa2aca2f0c219d356ba71c29a31cci0",
    "nearest_parent_realm_name": "realmapp",
    "nearest_parent_realm_subrealm_mint_allowed": true,
    "nearest_parent_realm_subrealm_mint_rules": {
      "current_height": 890678,
      "current_height_rules": [
        {
          "bitworkc": "8888",
          "o": {
            "5120ac36f64dd51647bb55551dc379c4b18a65ecc71669639fdc46926c02c5a637d7": {
              "v": 50000
            }
          },
          "p": "^[a-z]{7,32}$"
        }
      ],
      "nearest_parent_realm_atomical_id": "7788b52fb3da9d01d11918c0816aa7c62dafa2aca2f0c219d356ba71c29a31cci0"
    },
    "request_full_realm_name": "realmapp",
    "top_level_realm_atomical_id": "7788b52fb3da9d01d11918c0816aa7c62dafa2aca2f0c219d356ba71c29a31cci0",
    "top_level_realm_name": "realmapp"
  }
}

SubRealm

Code

const subrealm = 'realmapp.techtoshi'
const result: ToResult<{ result: RealmInfo }> = await api.atomicalsGetRealmInfo(
  {
    params: { realmOrSubRealm: subrealm },
  }
)

Result

{
  "result": {
    "atomical_id": "7502826301679118cef4f3bab45bac1ea525e4867fda9375d202a22d31e36e14i0",
    "candidates": [
      {
        "atomical_id": "7502826301679118cef4f3bab45bac1ea525e4867fda9375d202a22d31e36e14i0",
        "commit_height": 881204,
        "reveal_location_height": 881204,
        "tx_num": 1148536603,
        "txid": "7502826301679118cef4f3bab45bac1ea525e4867fda9375d202a22d31e36e14"
      }
    ],
    "found_full_realm_name": "realmapp.techtoshi",
    "missing_name_parts": null,
    "nearest_parent_realm_atomical_id": "7788b52fb3da9d01d11918c0816aa7c62dafa2aca2f0c219d356ba71c29a31cci0",
    "nearest_parent_realm_name": "realmapp",
    "nearest_parent_realm_subrealm_mint_allowed": true,
    "nearest_parent_realm_subrealm_mint_rules": {
      "current_height": 890678,
      "current_height_rules": [
        {
          "bitworkc": "8888",
          "o": {
            "5120ac36f64dd51647bb55551dc379c4b18a65ecc71669639fdc46926c02c5a637d7": {
              "v": 50000
            }
          },
          "p": "^[a-z]{7,32}$"
        }
      ],
      "nearest_parent_realm_atomical_id": "7788b52fb3da9d01d11918c0816aa7c62dafa2aca2f0c219d356ba71c29a31cci0"
    },
    "request_full_realm_name": "realmapp.techtoshi",
    "top_level_realm_atomical_id": "7788b52fb3da9d01d11918c0816aa7c62dafa2aca2f0c219d356ba71c29a31cci0",
    "top_level_realm_name": "realmapp"
  }
}