Make Offer

How to make an offer on an NFT in the Wayup Marketplace

Introduction

This guide demonstrates how to make an offer (bid) on an NFT in the Wayup Marketplace using the REST API. Making an offer requires the NFT's policy ID and asset name.

Requirements

  • A Cardano wallet with sufficient ADA (minimum 5 ADA per offer)

  • UTXOs from your wallet to fund the transaction. See Select UTXOs

  • Policy ID and asset name of the target NFT

API Request Structure

Configuration

// API endpoint for Wayup Marketplace
const NFT_BASE_URL = "https://prod.api.ada-anvil.app/marketplace/api";

// NFT Collection and asset to bid on
const NFT_POLICY_ID = "6fb0ce0d80bce539333b0b16f4a29a0d40c786249f86850d3a36fa01";
const NFT_ASSET_NAME_HEX = "4646506f776572436f726573373338";

// Wallet address to receive change
const BIDDER_CHANGE_ADDRESS = "addr1qx33ycd2ymg02dxh6vnnf8dsk54l8ranr9cfjk9qrlj3309c69jc4n8h3uvnczncaqu2sm03pl99h99n75uvtl3mhv0q3z8s8m";

// UTXOs from your wallet to fund the transaction
const BIDDER_UTXOS: string[] = [
  "82825820fa7a8f907051db7783be036684481fdce2a5fbcf19f6e5ea5f9f09128288dd1f0382583901a31261aa26d0f534d7d327349db0b52bf38fb319709958a01fe518bcb8d1658accf78f193c0a78e838a86df10fca5b94b3f538c5fe3bbb1e821a0092b832a1581c6fb0ce0d80bce539333b0b16f4a29a0d40c786249f86850d3a36fa01a2504646506f776572436f7265733136363001504646506f776572436f7265733137323001",
  "82825820fd43f693f0cd4c690ca3adde613262fc41530e62b3cacc906a0056603f5514ae0082583901a31261aa26d0f534d7d327349db0b52bf38fb319709958a01fe518bcb8d1658accf78f193c0a78e838a86df10fca5b94b3f538c5fe3bbb1e821a0085b174a1581c6fb0ce0d80bce539333b0b16f4a29a0d40c786249f86850d3a36fa01a34e4646506f776572436f7265733437014f4646506f776572436f72657336323901504646506f776572436f7265733132343801"
];

// Offer amount in ADA (minimum 5 ADA)
const OFFER_AMOUNT_ADA = 5;

Type Definitions

Implementation

Step 1: Identify the NFT

First, you need to identify the NFT you want to bid on by its policy ID and asset name:

Step 2: Create the Offer Payload

Next, create the payload for the offer 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: make-offer.tsarrow-up-right

chevron-rightmake-offer.tshashtag

Next Steps

After building the transaction:

  1. Sign the transaction hex with your wallet

  2. Submit the signed transaction using the /submit endpoint

  3. Wait for confirmation on the blockchain

Best Practices

  1. Offer Amount: Always offer at least 5 ADA per NFT (marketplace minimum)

  2. Wallet Balance: Ensure your wallet has sufficient funds for the offer plus transaction fees

  3. Asset Verification: Double-check the policy ID and asset name before submitting offers

  4. Transaction Fees: Account for network fees in addition to your offer amount

End-to-End Flow

  1. Identify the NFT you want to bid on using get-collection-assets

  2. Build an offer transaction via /build-tx with the createOffer property

  3. Sign the transaction with your wallet

  4. Submit the transaction via /submit. See Submit Transactions

  5. Wait for confirmation; your offer will appear to the NFT owner

Last updated

Was this helpful?