# ERC-6551

ERC-6551 是一个全新的以太坊标准，它可以为`任意的 721 NFT` 创建一个绑定的`合约账户(TBA)`，该账户只有 NFT 的所有者可以控制，该账户与普通账户无异，可以存放任何链上资产。

6551 标准可以极大扩展 NFT 的可组合性, 及功能性。从而极大的扩展 NFT 的应用场景。

## Rainbow 增加对 ERC-6551 的支持

Rainbow 增加了对 Conflux Core 上的 ERC-6551 的支持，部署了第一个 `ERC-6551 Registry 合约`及 `Account Impl 合约`。任何人可以直接与该合约交互为任意的 NFT 创建 TBA，从而为自身应用增加更多的功能。

同时 Rainbow 提供了 **RESTful Open API 供开发者来以接口调用的方式创建和获取 TBA**。对于非开发者账户，Rainbow 将会在 **Console 提供可视化的界面来创建和管理 TBA**。

我们也会持续开发更多的工具(SDK)来帮助开发者，应用，场景更好的使用 ERC-6551。从而打造一个完善的 ERC-6551 生态。

将来 Rainbow 会将 ERC-6551 的支持扩展到 eSpace 甚至其他 EVM 区块链上。

### 部署地址

#### 树图主网

* ERC6551AdminSafeRegistry: `cfx:ach1zpmjyv17arzdjx9fgbt4cw6uns0ntuwre8sdsy`
* ERC6551AccountUpgradeableImpl: `cfx:acd9jgz4d5as156ef08r5mdgux28y51yz639nr5s78`

[合约源码](https://github.com/conflux-fans/erc6551-conflux-reference)

#### 树图测试网

TODO

## 常见应用场景

### 投资组合

创建动态的 NFT 甚至包括 20 资产的投资组合， 该投资组合内的资产可以随时变化， 也可以整体打包转移。

### 高价值 NFT 资产扩张

高价值 NFT 可作为身份象征，不短增加其他标签 NFT 或用于领取空投。

## FAQs

## 资源

1. [Official Site](https://tokenbound.org/)
2. [ERC-6551 Twitter](https://twitter.com/erc6551)
3. [ERC-6551 Telegram](https://t.co/pa9JFwgd56)
4. [Github](https://github.com/tokenbound)
5. [An Overview on ERC 6551](https://www.lcx.com/an-overview-on-erc-6551/)
6. [ERC-6551 详解](https://github.com/nft-rainbow/rainbow-doc/blob/main/docs/ERC-6551.pdf)


---

# 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.nftrainbow.xyz/products/erc-6551.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.
