Place bids on NFTs in a collection that have a specific metadata ID. A metadata bid targets a group of tokens linked by the same metadata definition in Immutable’s indexer.Documentation Index
Fetch the complete documentation index at: https://docs.immutable.com/llms.txt
Use this file to discover all available pages before exploring further.
See Getting Started for prerequisites and installation.
What is a metadata bid?
- You offer ERC-20 tokens to buy one or more NFTs from a collection, identified by an ERC-721 collection buy item.
- You attach a
metadataId: a UUID that identifies a group of tokens sharing the same metadata definition in Immutable’s indexer. - Matching semantics: when a seller fills your bid with a specific
tokenId, Immutable validates that the token’smetadata_idin the indexer matches themetadataIdon the bid. - Orders appear as
METADATA_BIDin API responses alongside listings, bids, collection bids, and trait bids. Use the ordertypefield when branching in your app or webhooks.
Prerequisites
- Same setup as other orderbook flows (Passport or wallet, fees, etc.).
- Metadata for fulfillment: when a seller fills your bid with a specific
tokenId, Immutable validates that token’smetadata_idagainst the bid’smetadataId. That requires the NFT metadata to be available through Immutable’s indexer. If metadata is missing or themetadata_iddoes not match, fulfillment will fail.
Creating a metadata bid
The flow mirrors collection bids: prepare (buildsorderComponents, orderHash, and actions) → run any approval transactions → sign the EIP-712 order from the SIGNABLE action → create.
Filling a metadata bid (seller)
Sellers callfulfillOrder with the metadata bid order id and the token ID they are selling into the bid. Pass undefined for amountToFill (standard ERC-721 fill) and supply tokenId as a string.
Querying metadata bids
List metadata bids
Filter by collection contract, status, maker, and pagination.Get one metadata bid
Comparison: collection bid vs trait bid vs metadata bid
| Aspect | Collection bid | Trait bid | Metadata bid |
|---|---|---|---|
| Buy target | Any token in the collection | Any token whose metadata matches traitCriteria | Any token whose metadata_id matches metadataId |
| Filter mechanism | None | Array of trait type/value filters | Single metadata ID (UUID) |
| Fulfillment validation | Token exists in collection | Token attributes satisfy all trait filters | Token metadata_id matches bid |
| Typical use | Floor sweep / any item | Offers on filtered sets (e.g. legendary + blue) | Offers on tokens from a specific template or blueprint |
Fees and cancellation
- Fees: same maker/taker concepts as other orders — see Fees.
- Cancel: use the bid’s order id with Cancel orders (soft or hard cancel patterns apply to open orders).
Next steps
Collection bids
Bids on any NFT in a collection without filters
Trait bids
Bids filtered by metadata trait attributes
Fill orders
Fulfillment, actions, and approvals
Cancel orders
Cancel metadata bids you created