Swap
Swap is CollectorCrypt's peer-to-peer trading tool. Two users agree to exchange assets directly — cards, other NFTs, and tokens — in a single trade, with no listing, no buyer to find, and no price in between. Both sides deposit what they're offering into a secure on-chain escrow, both approve, and the trade settles atomically: either everyone gets what they agreed to, or nobody's assets move.
How it works
A swap is a mutual-consent exchange between two parties:
- Create a swap and choose who you're trading with.
- Deposit the assets each side is offering into escrow.
- Approve — both parties confirm the trade.
- Execute — both parties commit, and the assets are exchanged and settled.
Until the trade executes, either party can cancel and withdraw their deposited assets. Nothing is exchanged unless both sides agree at every step.
Supported assets
A single swap can combine any mix of these on either side:
- Standard NFTs — SPL token-based NFTs
- Programmable NFTs (pNFTs) — Token Metadata assets with enforced royalties
- Compressed NFTs (cNFTs) — Merkle-tree-based assets via Metaplex Bubblegum
- Core NFTs — Metaplex Core (single-account) assets
- Tokens — the SPL token configured for the program
Key features
- Escrow-backed — deposited assets are held in program-controlled escrows for the life of the trade, not sent directly between wallets.
- Multi-asset — NFTs, pNFTs, cNFTs, Core NFTs, and tokens can be mixed in one trade.
- Mutual consent — both parties must approve and execute before anything settles.
- Cancel any time before execution — either party can back out and withdraw their assets while the trade is still open or approved.
When you add an asset to a swap it's transferred into escrow, not held in your wallet. A trade only completes once both parties approve and execute. If you change your mind beforehand, cancel the swap and withdraw your assets.
Learn more
The User Guide walks through creating a swap, adding assets, approving, and completing or cancelling a trade.
The Program Documentation is the underlying Solana smart contract reference — accounts, instructions, the trade lifecycle, fees, and error codes.