Create Listing
How to list an NFT for sale on the Wayup Marketplace
Introduction
This guide demonstrates how to list an NFT for sale on the Wayup Marketplace using the API. Listing an NFT requires that you own the NFT and have it in your wallet UTXOs.
Requirements
A Cardano wallet containing the NFT you want to list.
UTXOs from your wallet containing the NFT. See Get UTXOs for more information.
Policy ID and asset name of your NFT.
API Request Structure
Configuration
// API endpoint for Wayup Marketplace
const NFT_BASE_URL = "https://prod.api.ada-anvil.app/marketplace/api";
// NFT to list for sale
const NFT_POLICY_ID = "6fb0ce0d80bce539333b0b16f4a29a0d40c786249f86850d3a36fa01";
const NFT_ASSET_NAME_HEX = "4646506f776572436f72657331363630";
// Wallet address to receive change
const SELLER_CHANGE_ADDRESS = "addr1qx33ycd2ymg02dxh6vnnf8dsk54l8ranr9cfjk9qrlj3309c69jc4n8h3uvnczncaqu2sm03pl99h99n75uvtl3mhv0q3z8s8m";
// UTXOs from your wallet containing the NFT to list
const SELLER_UTXOS: string[] = [
"82825820fa7a8f907051db7783be036684481fdce2a5fbcf19f6e5ea5f9f09128288dd1f0382583901a31261aa26d0f534d7d327349db0b52bf38fb319709958a01fe518bcb8d1658accf78f193c0a78e838a86df10fca5b94b3f538c5fe3bbb1e821a0092b832a1581c6fb0ce0d80bce539333b0b16f4a29a0d40c786249f86850d3a36fa01a2504646506f776572436f7265733136363001504646506f776572436f7265733137323001",
"82825820fd43f693f0cd4c690ca3adde613262fc41530e62b3cacc906a0056603f5514ae0082583901a31261aa26d0f534d7d327349db0b52bf38fb319709958a01fe518bcb8d1658accf78f193c0a78e838a86df10fca5b94b3f538c5fe3bbb1e821a0085b174a1581c6fb0ce0d80bce539333b0b16f4a29a0d40c786249f86850d3a36fa01a34e4646506f776572436f7265733437014f4646506f776572436f72657336323901504646506f776572436f7265733132343801"
];
// Listing price in ADA (minimum 5 ADA)
const LISTING_PRICE_ADA = 25;Type Definitions
Implementation
Step 1: Identify Your NFT
First, identify the NFT you want to list by its policy ID and asset name:
Step 2: Create the Listing Payload
Next, create the payload for the listing transaction:
Step 3: Build the Transaction
Use the build-tx endpoint to create the transaction:
Running the Example
Example Output
The Complete File
See our examples repository for the complete file: create-listing.ts
Next Steps
After building the transaction:
Sign the transaction hex with your wallet
Submit the signed transaction using the
/submitendpointWait for confirmation on the blockchain
Your NFT will be visible as listed on the Wayup Marketplace
Best Practices
Pricing Strategy: Research the collection's floor price before setting your listing price
Wallet Balance: Ensure your wallet has sufficient ADA for transaction fees
UTXO Verification: Make sure your UTXOs actually contain the NFT you're trying to list
Asset Verification: Double-check the policy ID and asset name before listing
End-to-End Flow
Confirm you own the NFT you want to sell
Build a listing transaction via
/build-txwith thecreatepropertySign the transaction with your wallet. See Signing Transactions
Submit the transaction via
/submit. See Submit TransactionsWait for confirmation; your NFT will be listed on the Wayup Marketplace
Last updated
Was this helpful?

