# Integrate rToken

There are 2 ways for Cosmos Eco projects to integrate into StaFiHub to get their own liquid staking derivatives.

[**Integrating with Interchain Accounts(ICA):** ](/welcome-to-stafihub/rtoken/integrate-rtoken/integrating-with-interchain-accounts.md)It is a more decentralized way that enables the chain security to maintain rToken among Cosmos-SDK based projects, if which have already integrated Interchain accounts module.

[**Integrating with Multisig Accounts:**](/welcome-to-stafihub/rtoken/integrate-rtoken/integrating-with-multisig-accounts.md) We provide this way to support projects that do not support ICA yet. rToken security relies on the chain security and offchain relay. If ICA is supported in the future, it will migrate to the way of using ICA.

## Cycle Flow Chart

### Integrating with Multisig Accounts

![](/files/dhe3rImstZOiFm8a05eC)

### Integrating with Interchain Accounts

#### Phase 1

![](/files/gFYNHJXVW9NxXGFBKC7W)

#### Phase 2

![](/files/SCKUpc09rJnZPXILJ5Nj)

### Conclusion

#### Similarity

1. The two integration methods are cyclical, the length of a cycle is one ERA which equals to 1 day.
2. Each cycle is started with a new Era and contains several transaction steps, each of them needs to process a specific transaction such as `Delegate`, `Undelegate`, `Withdraw Reward` or `Transfer`. After each step, StaFiHub will issue an event which will be listened by rToken relay service to start the next step.&#x20;
3. All transactions included in a cycle are completed on the pool accounts.

#### Diversity

1. Transactions on the Multisig Account pool are completed by the relay, while transactions on the Interchain Account Pool are completed by the StaFiHub.
2. The transaction results of the Multisig Account pool need to be monitored by the rToken relay service and reported to the StaFiHub, while the transaction results of the Interchain Account pool are directly notified to the StaFiHub by the IBC protocol.
3. For Multisig Account pool and Interchain Account pool phase 1, all the information required by the transactions is queried by the rToken relay service on  StaFiHub and the target chain, while for Interchain Account pool phase 2, StaFiHub is able to collect the information through Interchain Query and build the transactions itself. At this point, the rToken relay service will be downsized and rToken will be completely decentralized.


---

# 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.stafihub.io/welcome-to-stafihub/rtoken/integrate-rtoken.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.
