A NFT marketplace that integrates with Crossmint for NFT purchases. This project allows users to browse and purchase NFT collections using a credit card.
- Node.js 18+ and npm/yarn
- Crossmint API keys (https://www.crossmint.com/console)
Create a .env.local
file in the root directory with the following variables:
NEXT_PUBLIC_TREASURY_ADDRESS=your_treasury_contract_address
NEXT_PUBLIC_RPC_URL="https://rpc.xion-testnet-2.burnt.com:443"
NEXT_PUBLIC_REST_URL="https://api.xion-testnet-2.burnt.com"
NEXT_PUBLIC_CROSSMINT_API_KEY=your_crossmint_api_key
Open the src/app/collections.json
file and add your list of collections in the following format:
{
"collections": [
{
"id": "your-collection-id",
"contractAddress": "your-nft-contract-address"
}
]
}
- Clone the repository:
git clone https://github.com/burnt-labs/xion-crossmint-hosted-checkout-frontend.git
cd xion-crossmint-hosted-checkout-frontend
- Install dependencies:
npm install
# or
yarn install
- Run the development server:
npm run dev
# or
yarn dev
- Open http://localhost:3000 in your browser.
- Connect your XION wallet using the "Connect" button in the top right
- Browse available NFT collections
- Click the checkout button on any collection to purchase
- Complete the purchase through Crossmint's hosted checkout interface