> For the complete documentation index, see [llms.txt](https://docs.artinals.com/artinals-protocol/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.artinals.com/artinals-protocol/integration-and-workflows/typical-user-journeys/listing-and-selling-nfts-sale.md).

# Listing and Selling NFTs (SALE)

**Workflow**:

1. **Prepare NFTs**: Ensure you have minted NFTs via ART20 and hold them in your `UserBalance`.
2. **Create Sale**: Call `create_nft_sale(...)` to list a set of NFTs at a fixed `price_per_nft`. The sale becomes active, and a `SaleCreated` event is emitted.
3. **Manage Inventory**: Use `add_nfts_to_sale(...)` to add more NFTs to the sale or `close_sale(...)` to end the sale when you’re done.
4. **Buyers Purchase**: Buyers call `purchase_nfts(...)` supplying the required currency to acquire listed NFTs directly.

**Result**: A straightforward marketplace scenario. Buyers pay a fixed price, and sellers can withdraw proceeds once sales occur.

**Example Script**:

```move
// Pseudocode:
create_nft_sale(
  nfts = my_nft_batch,
  nft_amount = 50,
  price_per_nft = 1000 /* tokens */,
  collection_cap,
  ...
);
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.artinals.com/artinals-protocol/integration-and-workflows/typical-user-journeys/listing-and-selling-nfts-sale.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.
