Decode Runestone

This endpoint can be used to pass a transaction hex and extract and decode the runestone present in the OP_RETURN

post

Decode a runestone from transaction hex.

Authorizations
Body
txstring Β· min: 1Required

Transaction hex string to decode

Responses
200

Default Response

application/json
post
POST /v1/tx/runes/decode HTTP/1.1
Host: api.secretkeylabs.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 13

{
  "tx": "text"
}
{
  "Runestone": {
    "edicts": [
      {
        "id": "text",
        "amount": 1,
        "output": 1
      }
    ],
    "etching": {
      "divisibility": 1,
      "premine": 1,
      "rune": "text",
      "spacers": 1,
      "symbol": "text",
      "terms": {
        "amount": 1,
        "cap": 1,
        "height": null,
        "offset": null
      },
      "turbo": true
    },
    "mint": null,
    "pointer": null
  },
  "Cenotaph": {
    "etching": 1,
    "flaws": 1,
    "mint": "text"
  }
}

Last updated