> For the complete documentation index, see [llms.txt](https://pantos.gitbook.io/technical-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pantos.gitbook.io/technical-documentation/getting-started/token-transfer.md).

# Token Transfer

## On-Chain Transfer

The Pantos protocol allows the transfer of assets on-chain and cross-chain. To move assets on the same blockchain (no cross-chain transfer), a user has to create a `TransferRequest`, sign it, and send it to a service node.&#x20;

The service node uses the transfer function of the Pantos Hub to perform the transfer.<br>

**The following figure shows how an on-chain transfer is executed and what entities are involved:**

<figure><img src="https://1656073451-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9YxVfrKycm9v3fFenGOq%2Fuploads%2FlpXxDabChx0t82qcFjfk%2FInter-Chain-Transfer.png?alt=media&amp;token=d63fae59-48a1-4d3f-8324-92e80139f99a" alt=""><figcaption></figcaption></figure>

## Cross-Chain Transfer

If a user wants to transfer a token from a source chain to a destination chain, they must create a `TransferFromRequest`, sign it, and submit it to a service node. The service node will use the `transferFrom` function of the Pantos Hub contract on the source chain.<br>

**The following figure shows the steps and entities involved in a cross-chain transfer on the source chain:**

<figure><img src="https://1656073451-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9YxVfrKycm9v3fFenGOq%2Fuploads%2FJy6h9uQyyEvwmwfMXYRY%2FCross-Chain-Transfer-Source.png?alt=media&amp;token=aeea26b7-a00a-4433-8fd9-02191759d255" alt=""><figcaption></figcaption></figure>

As soon the transaction on the source chain is successful, an event is emitted. The Validator is listening to such `transferFrom` events and once it hears one, it creates `TransferToRequest` and forwards it to the Pantos Hub contract using the `transferTo` function. Once this transaction has been successful, the cross-chain asset transfer has been successful.<br>

**The following figure shows the steps and entities involved in executing the cross-chain transfer on the destination chain:**

<figure><img src="https://1656073451-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9YxVfrKycm9v3fFenGOq%2Fuploads%2FVmlxg4LgIclKk7IKft2A%2FTransfer.png?alt=media&amp;token=50044443-c34b-4552-9fe7-310c3786ac23" alt=""><figcaption></figcaption></figure>
