Uniswap Protocol Tools for Building Swaps, Pools and Markets - Resilient Seed Monitor
Uniswap is not only an app. It is an open protocol that wallets, aggregators, games and fintech apps use to offer token swaps without building an exchange from scratch. More than $4.5 trillion has been traded through Uniswap since 2018, and much of it came from integrations, not the Uniswap app itself.
Developers can plug in at different levels. Call the Trading API for quotes and swaps, use the SDKs to build transactions, write v4 hooks to create new pool logic, or deploy on Unichain, Uniswap’s own Layer 2.
This page gives an overview of the developer tools, what each one is good for and where to start.
Ways to Integrate Uniswap
Before writing code, decide how deep you need to go. Most teams start simple and go deeper only when they need to.
Integration options at a glance
- Trading API: get quotes and ready-to-sign swap transactions from Uniswap Labs’ routing
- SDKs: build and simulate swaps and positions in your own code
- Smart contracts: call the Universal Router, Permit2 and pool contracts directly
- v4 hooks: add custom logic to pools you create
- Unichain: deploy your app on a Layer 2 built for DeFi
Which one to choose
A wallet that just needs swaps usually starts with the Trading API. A DeFi protocol that needs full control works with the SDKs and contracts. A team creating a new type of market writes a hook. Many teams also mix approaches, for example using the Trading API for quotes while calling the Universal Router directly for execution.
The Uniswap Trading API
The Trading API gives you the same routing the Uniswap app uses. You send a request with tokens, amount and network, and get back a quote and a transaction to sign.
What the API handles for you
- Finding the best route across Uniswap v2, v3 and v4 pools
- Routing through UniswapX when it gives a better result
- Building the transaction with Permit2 approvals
- Supporting the networks the Uniswap app supports
Fees after UNIfication
After the UNIfication vote in December 2026, Uniswap Labs stopped charging fees on its interface, wallet and API. Your users pay the pool fee and gas, and you can still add your own integrator fee in your product if you choose. The quote shows all costs upfront.
Typical use cases
- Wallets adding an in-app swap button
- Portfolio apps that rebalance user holdings
- Payment apps that convert tokens before sending
- Bots and trading tools that need reliable quotes
SDKs and Core Contracts
For teams that want full control, Uniswap provides open-source SDKs and well-documented contracts.
Key building blocks
- Universal Router: one entry point for swaps across protocol versions and token types
- Permit2: a shared approval contract that enables signature-based, time-limited approvals
- v4 PoolManager: a single contract that manages all v4 pools, saving gas on multi-hop swaps
- SDKs: TypeScript libraries for building swaps, positions and routes
Why v4’s architecture matters
In earlier versions, each pool was a separate contract. In v4, all pools live in one PoolManager, and flash accounting settles only net balances at the end of a transaction. That is why creating a pool in v4 is up to 99.99% cheaper and multi-hop swaps cost less gas.
Uniswap v4 Hooks
Hooks are contracts that run at key moments in a pool’s life: before or after a swap, when liquidity is added or removed, and when a pool is created. More than 150 hooks were in development when v4 launched on January 31, 2026.
What you can build with hooks
- Dynamic fees that react to volatility or volume
- Onchain limit orders and TWAP execution
- Automated rebalancing of LP positions
- Custom oracles and MEV redistribution to LPs
- Loyalty rewards or access rules for specific traders
Writing a safe hook
A hook runs inside every swap of its pool, so a bug can affect real funds. Keep the logic simple, test it against edge cases, get an independent audit, and document clearly what your hook does. LPs and integrators look for this before trusting a hooked pool. A clear README and public test results go a long way.
Learning from existing hooks
Many teams publish their hooks as open source. Reading them is the fastest way to see how others handle permissions, fee logic and edge cases. Before deploying, compare your design with similar hooks and check whether an audited version of what you need already exists.
Building on Unichain
Unichain is a Layer 2 built on the Superchain by Uniswap Labs. It launched on mainnet on February 11, 2026.
Why developers choose Unichain
- Fast blocks, with 1-second block times at launch and later sub-second confirmations
- Gas costs about 95% lower than Ethereum mainnet at launch
- Native access to Uniswap v4 liquidity and hooks
- Superchain interoperability with other OP-based networks
- A Stage 1 rollup with permissionless fault proofs
Developer tooling
Unichain works with standard Ethereum tools like Foundry, Hardhat and viem. If your contracts already run on Ethereum or another OP-based network, moving them to Unichain usually needs only new RPC settings and contract addresses. The developer docs list contract addresses, RPC endpoints and cross-chain options.
Token Launches With Continuous Clearing Auctions
If your project needs to launch a token, Uniswap offers Continuous Clearing Auctions, or CCA. It is a protocol for fair token distribution with liquidity built in.
How CCA helps a launch
Bids are spread across blocks, each block clears at a single price, and the auction proceeds automatically seed a Uniswap v4 pool at the final price. Since June 2026, teams can configure and launch auctions directly from the Uniswap web app on Ethereum, Base, Arbitrum and Unichain.
Audits
The CCA contracts have been reviewed in seven independent audits, including reports from OpenZeppelin and Spearbit.
Getting Started: A Simple Path for New Builders
You do not need to master every tool before shipping something. A simple order works for most teams.
A practical starting path
- Read the concepts section of the developer docs to understand pools, routing and Permit2
- Get quotes from the Trading API in a small script to see real routes and prices
- Build a basic swap flow in a test app using the SDKs
- Move to direct contract calls only where you need custom behavior
- Write a hook only when no existing pool type fits your use case
Testing before mainnet
Uniswap contracts are deployed on public testnets, including Ethereum Sepolia and Unichain Sepolia. Test every flow there first, especially approvals and edge cases like failed swaps or expired permits. A mainnet bug costs real money, a testnet bug costs only time.
Where to get help
The developer docs include guides, contract references and example code. For hook development, studying open-source hooks from other teams is one of the fastest ways to learn common patterns and pitfalls.
Security and Developer Resources
Builders depend on the protocol’s security as much as users do. Uniswap’s record is public.
What backs the protocol
- Uniswap v4 passed nine independent audits and a $2.35M security competition
- An active bug bounty of up to $15.5M for critical v4 vulnerabilities
- Open-source contracts with deployment addresses published in the docs
- Developer documentation at developers.uniswap.org
- Help center for users at support.uniswap.org The core contracts are immutable once deployed. That means Uniswap Labs cannot change the rules under your integration later. Hooks and integrations built by third parties carry their own risks.
CONTINUITY PROCEDURES & OPERATIONAL RUNBOOKS
Verified documentation modules from Resilient Seed Monitor:
- Swapping in Uniswap Wallet: Guide for Cautious Users 2026 Swapping in Uniswap Wallet explained for cautious holders: what the feature does, setup steps, fees, slippage settings, limits and scam avoidance tips.
- Buying Crypto With a Card in Uniswap Wallet: 2026 Guide Buying crypto with a card in Uniswap Wallet explained for older users: what the feature does, setup, steps, fees, limits, settings and practical tips.
- Selling Crypto to a Bank in Uniswap Wallet: 2026 Guide Selling crypto to a bank in Uniswap Wallet explained: what the flow is, what you need first, step by step actions, fees, limits, and practical tips for 2026.
FREQUENTLY ASKED QUESTIONS
Yes, Uniswap Labs offers the Trading API for quotes and swap transactions. It uses the same routing as the Uniswap app, including UniswapX.
Uniswap Labs removed its API fees after the UNIfication vote in December 2026. Users still pay pool fees and gas.
Hooks are smart contracts that add custom logic to Uniswap v4 pools, such as dynamic fees, limit orders or automated LP management. They run at set points like before or after a swap.
Smart contracts and hooks are written in Solidity. Most integrations use TypeScript with the Uniswap SDKs or the Trading API.
Yes, anyone can create a pool permissionlessly. In v4, pool creation is up to 99.99% cheaper than in earlier versions.
Unichain offers fast blocks and much lower gas, with direct access to Uniswap v4. It is a good fit for apps with frequent transactions.
Yes, Uniswap contracts are deployed on public testnets such as Ethereum Sepolia and Unichain Sepolia. Use them to test integrations before going live.
The official developer documentation is at developers.uniswap.org, with guides for the API, SDKs, hooks, Unichain and CCA.