Mistransfer is a platform to get back Tokens/NFTs sent to a wrong smartcontract.
This boilerplate is built with Moralis
πΏ Install all dependencies:
cd mistransfer/website
yarn install
β Rename .env.local.example
to .env.local
and provide required data. Get your Web3 Api Key from the Moralis dashboard:
ποΈ Fill the environment variables in your .env.local file in the app root:
MORALIS_API_KEY
: You can get it here.NEXTAUTH_URL
: Your app address. In the development stage, use http://localhost:3000.NEXTAUTH_SECRET
: Used for encrypting JWT tokens of users. You can put any value here or generate it on https://generate-secret.now.sh/32.USER_INTERFACE
: UserInterface smartcontract address.
Example:
MORALIS_API_KEY=xxxx
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=7197b3e8dbee5ea6274cab37245eec212
USER_INTERFACE=0x1C5a4E5345E81db66EF3D739f7702DFb76a758b8
π΄ββοΈ Run your App:
yarn start
location: src/component/templates/lost/ERC20/ERC20Transfers.tsx
π° <Lost/ERC20Transfers />
: displays the user's ERC20 transfers sent to a wrong contract. It shows the "Reclaim" button to get them back.
location: src/component/templates/lost/NFT/NFTTransfers.tsx
π¨ <Lost/NFTTransfers />
: displays the user's NFT transfers sent to a wrong contract. It shows the Reclaim button to recover lost NFTs.