# API 集成

## v1.5.0

v1.5.0 版本增加了自定义染色和部分染色的功能。

{% embed url="<https://github.com/atomicals/atomicals-electrumx/releases/tag/v1.5.0.0-beta.1>" %}

这些功能同时也带来了破坏性改动，在读取 Atomicals 资产时需要进行适配。

在读取 `blockchain.atomicals.listscripthash` 这样的列表接口结果时，`response.utxos.atomicals` 的结构发生了变化。

#### 之前

该字段是 UTXO 包含的 Atomical ID 的字符串列表。

```json
{
  "atomicals": [
    "9025f03bcf9325f6071761b9aee00b462a0b43ed157c336e2e89e07f47ea6f66i0"
  ],
  "height": 847000,
  "index": 0,
  "txid": "b3ab9bf07db9075c1bbdef5638aef4941564a8afa3e0399ea4127285796b9ac1",
  "value": 546,
  "vout": 0
}
```

#### 现在

该字段是 UTXO 包含的 Atomicals 资产的 ID 及其资产数量的字典。

```json
{
  "atomicals": {
    "9025f03bcf9325f6071761b9aee00b462a0b43ed157c336e2e89e07f47ea6f66i0": 546
  },
  "height": 847000,
  "index": 0,
  "txid": "b3ab9bf07db9075c1bbdef5638aef4941564a8afa3e0399ea4127285796b9ac1",
  "value": 546,
  "vout": 0
}
```

现在的 Atomicals 资产数量并不一定等于 UTXO 的含聪量，开发者需要适配该结构获取正确的资产数量。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wizz.cash/wizz-wallet/zh/kai-fa-zhe/electrumx-zhi-nan/api-ji-cheng.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
