namespace

Get blob metadata by commitment on height

Changed on

Returns indexed metadata for a blob (namespace, size, signer, share version, etc.) identified by block height, namespace hash, and commitment. Does not return raw blob data. To authorize your requests you have to select the required tariff on our site. Then you receive api key to authorize. Api key should be passed via request header apikey.

post/blob/metadata

Request

  • Base URL
    api-mainnet.celenium.io (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    API key in header apikey

Request body

commitmentstring required
hashstring required
heightinteger required

Example request

{
  "commitment": "vbGakK59+Non81TE3ULg5Ve5ufT9SFm/bCyY+WLR3gg=",
  "hash": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAs2bWWU6FOB0=",
  "height": 123456
}

Response

OK

commitmentstring base64
content_typestring string
heightinteger
idinteger
share_versioninteger
sizeinteger
sourcestring string
timestring date-time

Example response

{
  "commitment": "vbGakK59+Non81TE3ULg5Ve5ufT9SFm/bCyY+WLR3gg=",
  "content_type": "image/png",
  "height": 100,
  "id": 200,
  "namespace": {
    "blobs_count": 10000,
    "fibre_size": 12345,
    "hash": "U3dhZ2dlciByb2Nrcw==",
    "id": 321,
    "last_height": 100,
    "last_message_time": "2023-07-04T03:10:57+00:00",
    "name": "name",
    "namespace_id": "4723ce10b187716adfc55ff7e6d9179c226e6b5440b02577cca49d02",
    "pfb_count": 12,
    "pff_count": 10000,
    "reserved": true,
    "size": 12345,
    "version": 1
  },
  "rollup": {
    "id": 321,
    "logo": "https://some_link.com/image.png",
    "name": "Rollup name",
    "slug": "rollup_slug"
  },
  "signer": {
    "celestials": {
      "image_url": "https://ipfs.io/ipfs/QmUi269vE25fagqhyMCCTNSoiW6x4LHCwwQb3keSrEXAmC",
      "name": "name",
      "primary": true,
      "status": "VERIFIED"
    },
    "hash": "celestia1jc92qdnty48pafummfr8ava2tjtuhfdw774w60"
  },
  "size": 10,
  "source": "fibre",
  "time": "2023-07-04T03:10:57+00:00",
  "tx": {
    "codespace": "sdk",
    "events_count": 2,
    "fee": "9348",
    "gas_used": 4253,
    "gas_wanted": 9348,
    "hash": "652452A670018D629CC116E510BA88C1CABE061336661B1F3D206D248BD558AF",
    "height": 100,
    "id": 321,
    "memo": "Transfer to private account",
    "message_types": [
      "MsgSend",
      "MsgUnjail"
    ],
    "messages": [
      {
        "height": 100,
        "id": 321,
        "position": 2,
        "size": 2,
        "time": "2023-07-04T03:10:57+00:00",
        "tx_id": 11
      }
    ],
    "messages_count": 1,
    "position": 11,
    "signers": [
      {
        "celestials": {
          "image_url": "https://ipfs.io/ipfs/QmUi269vE25fagqhyMCCTNSoiW6x4LHCwwQb3keSrEXAmC",
          "name": "name",
          "primary": true,
          "status": "VERIFIED"
        },
        "hash": "celestia1jc92qdnty48pafummfr8ava2tjtuhfdw774w60"
      }
    ],
    "time": "2023-07-04T03:10:57+00:00"
  }
}

Changes