I am building a dapp that relies on a Metamask auth to login. My dapp is basically a Nuxt app where certain whitelisted user can access extra Nuxt pages. It bothers me that hosting this dapp is centralized. It only looks at the Ethereum blockchain to make sure an address meets the requirements for the whitelisting. I wish this dapp could be serverless because as long as a server provides the Nuxt functionality this dapp is completely centralized.
So it occurred to me that when I write a smart contract, I actually write callable functions that can be accessed with the dapp user's Eth wallet. Annnnnnnnnd what is a Nuxt app other than a series of functions that load view pages.... So could I write the entire Nuxt server as a Solidity smart contract? Has anyone done this?
If the gas cost would make this prohibitive on Ethereum, could you do it on Polygon, or Avalanche, or some other EVM compatible chain?
[link] [comments]
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments