*** title: Build a Token Swap App (AllowanceHolder) description: Walkthrough how to build a Next.js with 0x Swap API ---------------------------------------------------------------- This guide walks through building a token swap app in **Next.js** using the **0x Swap API (AllowanceHolder)**. It highlights the core concepts used in production apps like [Matcha.xyz](https://matcha.xyz/) and can be adapted to any swap interface. ## Try it Out Code for the demo app used in this tutorial: [https://github.com/0xProject/0x-examples/tree/main/swap-v2-allowance-holder-next-app](https://github.com/0xProject/0x-examples/tree/main/swap-v2-allowance-holder-next-app) ## What We’re Building This example demonstrates: * Fetching indicative prices via `/swap/allowance-holder/price` * Fetching firm executable quotes via `/swap/allowance-holder/quote` * Approving ERC20 allowances for AllowanceHolder * Submitting swap transactions on-chain ![](https://files.buildwithfern.com/0x.docs.buildwithfern.com/e5a7d21520c1b3cfe816d43d59338f1251551cd97f2e151b0c992885d8dba038/docs/assets/img/0x-swap-api/swap-v2-demo-app.png) Video tutorial version here: