# Swap NFT for NFT

### What are Atomic Swaps?

Atomic Swaps let you propose trading your NFT for another user's NFT. You can:

* Trade NFT for NFT directly
* Request additional tokens alongside an NFT
* Send additional tokens alongside your NFT
* Set expiration times for your swap offers

### Benefits of Using Atomic Swaps

* **Trustless Trading**: No intermediaries or escrow services needed
* **Flexibility**: Add token amounts to balance trades between NFTs of different values
* **Security**: Transactions only complete when both parties fulfill their side
* **Convenience**: Manage all your swap offers from your profile

### How to Create an Atomic Swap

#### Step 1: Select the NFT You Want to Receive

1. Navigate to any NFT you'd like to acquire
2. Click the "Swap" button next to the NFT
3. You'll be directed to the swap creation process

<figure><img src="/files/nmudV9jSft9LMufPBwh0" alt=""><figcaption></figcaption></figure>

#### Step 2: Select the NFT to Offer

1. You'll see a page with "Select Their NFTs For The Swap" header
2. The NFT you want to receive will be shown in your swap list on the right
3. Optionally, you can request additional tokens by entering an amount in the "Request Token" field
4. Click "Next" to continue

<figure><img src="/files/WeyVh6ARnwzd6IFs9rbd" alt=""><figcaption></figcaption></figure>

#### Step 3: Choose Your Offer

1. You'll see a page titled "Select Your Offer"
2. Browse your collection and select the NFT(s) you want to offer
3. Click on an NFT to add it to your offer
4. Optionally, you can add tokens to your offer in the "Add Token" field
5. Click "Next" to proceed

<figure><img src="/files/vvJnjM3RxutirCY3grVs" alt=""><figcaption></figcaption></figure>

#### Step 4: Review and Submit Your Swap Offer

1. Review both sides of the trade carefully
2. You can set how long the swap offer will remain valid (default is 7 days)
3. Click "Submit Swap Offer" when you're ready
4. Sign the transaction using your wallet

<figure><img src="/files/FwuQkFGUQtWVNqcPTYE0" alt=""><figcaption></figcaption></figure>

#### Step 5: Confirm Transaction

1. A popup will appear asking you to approve the transaction
2. The transaction details will show what's being created ("create\_swap")
3. Check the estimated fee and click "Approve"

<figure><img src="/files/Wk30VZGJno8CvkCBoSUU" alt=""><figcaption></figcaption></figure>

#### Step 6: Success and Management

1. Once confirmed, you'll see a success message
2. Your swap offer is now visible on your profile page under the "Swaps" tab
3. It will show as "Active" until it's either accepted, canceled, or expires
4. You can cancel the swap at any time by clicking "Cancel Swap"

<figure><img src="/files/HxYjVqxGzN1vVgp5qLj7" alt=""><figcaption></figcaption></figure>

### Managing Your Swaps

#### Viewing Your Swaps

1. Go to your profile page
2. Select the "Swaps" tab
3. Toggle between "Outgoing" and "Incoming" to see swaps you've created or received

#### Swap Actions

* **Cancel**: Withdraw your swap offer if you change your mind
* **Accept**: Accept an incoming swap offer to complete the exchange
* **Counter-Swap**: Create a new swap proposal in response to an existing one
* **View Details**: See the complete details of any swap offer

### Tips for Successful Swaps

* Ensure you carefully review both sides of the trade before submitting
* Consider the relative values of NFTs when requesting or adding tokens
* Set reasonable expiration times based on your trading needs
* Check your profile regularly for incoming swap offers


---

# 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://hello.kodadot.xyz/tutorial/swap-nft-for-nft.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.
