BhavInch

Cross-chain dApp: 1inch-powered EVM swaps + Stellar testnet bridge for instant low-fee remittances.

BhavInch

Created At

Unite Defi

Project Description

"BhavInch" bridges EVM‐based DeFi with Stellar’s ultra‐fast, low‐fee rails to deliver seamless cross-chain swaps and instant global remittance. Users connect their wallet to view an on-chain portfolio—real-time ERC-20 balances, USD valuations, PnL/ROI breakdown and detailed token metadata via 1inch’s Balance, Portfolio, Token and Price APIs. They can search any token across networks using 1inch’s Token Search API. On the Swap page, selecting “From” & “To” assets triggers 1inch’s Classic Swap + Gas Price APIs to quote best rates, display exchange rate, estimated received amount, and gas cost, then generate the unsigned swap transaction payload. Once reviewed, a separate “Swap on Stellar” button mints a pegged custom asset (named after the destination token) on the Stellar testnet—automatically setting up trustlines and issuing the bridged amount via our Stellar Bridge service—our account on stellar receives this asset and it can be sent instantly to any Stellar account worldwide, showcasing unparalleled speed and minimal cost., demonstrating a practical cross-chain remittance. “Swap → Bridge → Remit” workflow that leverages both 1inch’s DEX aggregation and Stellar’s programmable digital assets.

1Inch Api's and endpoints used: 1.BALANCE API Endpoints: https://api.1inch.dev/balance/v1.2/${chainId}/balances/${wallet} 2.TOKEN API Endpoints: https://api.1inch.dev/token/v1.2/${chainId}, https://api.1inch.dev/token/v1.2/${chain}/search 3.SWAP API Endpoints: https://api.1inch.dev/swap/v6.0/${chainId}/quote https://api.1inch.dev/swap/v6.0/${chainId}/swap 4.GAS PRICE API Endpoints: https://api.1inch.dev/gas-price/v1.4/${chainId} 5.PORTFOLIO API Endpoints: https://api.1inch.dev/portfolio/portfolio/v4/overview/erc20/details 6.SPOT PRICE API Endpoints: https://api.1inch.dev/price/v1.1/${chainId}/${tokenAddress}

How it's Made

This project is a modern React/Vite web app with TailwindCSS + DaisyUI for styling. We use Wagmi + RainbowKit for wallet connect and Viem for direct on-chain calls, Axios to call 1inch’s Balance, Portfolio, Token, Quote, Swap and Gas APIs through a Node/Express proxy (managing API keys and CORS). The backend also leverages stellar-sdk v10.4.1 in a .cjs module to automate trustline setup, custom asset issuance and payments on Stellar Testnet. React-Hot-Toast handles notifications.

background image mobile

Join the mailing list

Get the latest news and updates