# decodeRunestone

**Identifier:** `xverse_decodeRunestone`

**Provider:** [Xverse](https://kirha.com/providers/xverse.md)

Decode runestone data from a raw Bitcoin transaction hex

## Run it with the CLI

```bash
kirha tools run xverse_decodeRunestone \
  --input '{
    "tx": "<tx>"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "xverse_decodeRunestone",
  "input": {
    "tx": "<tx>"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "tx": {
      "description": "Raw transaction hex",
      "type": "string"
    }
  },
  "required": [
    "tx"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "edicts": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "type": "number"
          },
          "id": {
            "type": "string"
          },
          "output": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "etching": {
      "additionalProperties": false,
      "properties": {
        "divisibility": {
          "type": "number"
        },
        "premine": {
          "type": "number"
        },
        "rune": {
          "type": "string"
        },
        "symbol": {
          "type": "string"
        },
        "turbo": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "flaws": {
      "type": "number"
    },
    "mint": {
      "type": "string"
    },
    "pointer": {
      "type": "number"
    }
  },
  "required": [
    "context"
  ],
  "type": "object"
}
```

-----

[All Xverse tools](https://kirha.com/providers/xverse.md) · [< Back to tools list](https://kirha.com/tools.md)