# batchGetOrdinalsOutputs

**Identifier:** `xverse_batchGetOrdinalsOutputs`

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

Get detailed info for multiple transaction outputs (max 20). Each output is specified as txid:vout.

## Run it with the CLI

```bash
kirha tools run xverse_batchGetOrdinalsOutputs \
  --input '{
    "outputs": [
      "<outputs>"
    ]
  }'
```

`--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_batchGetOrdinalsOutputs",
  "input": {
    "outputs": [
      "<outputs>"
    ]
  }
}'
```

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": {
    "outputs": {
      "description": "Transaction outputs as txid:vout pairs, e.g., ['txid:0', 'txid:1']",
      "items": {
        "type": "string"
      },
      "maxItems": 20,
      "type": "array"
    }
  },
  "required": [
    "outputs"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "outputIds": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "outputs": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "type": "string"
          },
          "isSpent": {
            "type": "boolean"
          },
          "txid": {
            "type": "string"
          },
          "vout": {
            "type": "number"
          }
        },
        "required": [
          "txid",
          "vout"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "outputIds",
    "outputs"
  ],
  "type": "object"
}
```

-----

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