
JavaScript library to scan crypto wallets for liquefiable assets and perform cost-effective, auto-converted onchain payments across multiple blockchains.
Web3 Payments by DePayFi is an open-source JavaScript library designed to enable developers to build seamless, cross-chain payment experiences. It scans users' crypto wallets for assets that can be liquidated and automatically routes payments in a cost-effective manner, converting tokens onchain as needed. The library supports multiple blockchains including Ethereum, BNB Smart Chain, Polygon, Solana, Arbitrum, Avalanche, Gnosis, Optimism, Base, and Worldchain, making it suitable for multichain payment scenarios.
The core feature is the route function, which calculates payment routes based on the tokens a user holds and the desired payment parameters. It supports multiple accepted tokens and blockchains simultaneously, allowing payments to be routed from various wallets and tokens to a single or multiple receivers. Developers can customize routing with allow and deny lists for tokens, configure fees and protocol fees, and handle token approvals automatically. The library also supports platform-specific packaging for EVM-compatible chains and Solana, optimizing dependency management.
What sets Web3 Payments apart is its trustless, permissionless design that eliminates intermediaries by using smart contracts connected to decentralized liquidity pools. This approach reduces friction by allowing users to pay with any asset they already hold, regardless of blockchain, and automatically handles network switching if needed. The open-source nature encourages community contributions and transparency. Developers can get started quickly by installing the package and dependencies, then integrating the route function to calculate payment routes and execute transactions using compatible wallet libraries.
Web3 Payments is ideal for DeFi projects, marketplaces, and platforms that want to accept a wide range of crypto assets across multiple chains without requiring users to manually convert tokens or switch networks. Its extensible architecture supports future blockchain integrations and advanced payment routing strategies.
Developers face challenges enabling users to pay with diverse crypto assets across multiple blockchains without manual token conversions or network switching. Existing payment solutions often require intermediaries or limit accepted tokens, causing friction and trust issues.
Explore web3 competitors and apps like Payments.
Open Source | |
|---|---|
| Price (Monthly) | Free |
| Price (Annual) | Free |
| Messaging | N/A |
| Support | Community support via GitHub |
| Analytics |
Reliable RPC, powerful APIs, and zero hassle.
The Web3 Payments repository provides comprehensive documentation, code examples, and platform-specific packages to help developers integrate cross-chain payment routing. The GitHub repo includes detailed API references and usage guides.
Supports Ethereum, BNB Smart Chain, Polygon, Solana, Arbitrum, Avalanche, Gnosis, Optimism, Base, and Worldchain.
Allows setting up to two fee receivers and protocol fees deducted from payments.
Handles token approval transactions automatically, including support for Permit2 signatures.
DeFi platforms can accept payments in any supported token across multiple chains, improving user experience and liquidity.
NFT marketplaces can enable buyers to pay with various tokens from different blockchains without manual conversions.
E-commerce dapps can accept crypto payments globally, automatically converting tokens and switching networks as needed.
Discover trusted tools and services in the QuickNode Marketplace. Everything you need to launch faster and scale smarter.





| Composability | |||
| Cross-Chain | |||
| Customizability | |||
| Developer Support | |||
| Ease of Integration | |||
| Performance |