An open-source, up-to-date toolkit for building decentralized applications (dapps) on the Ethereum blockchain using React Native & Hardhat. It's designed to make it easier for developers to create and deploy smart contracts and build user interfaces that interact with those contracts.
โ๏ธ Scaffold-ETH-Mobile is an open-source toolkit for building decentralized applications (dApps) on Ethereum and other EVM-compatible blockchains. It simplifies mobile dApp development with fast, secure and customizable pre-built components to create, deploy and interact with smart contracts.
Watch me mint a Snowman NFT!โ๏ธ
โ๏ธ Tech Stack: Built with React Native, Hardhat, Ethers, and TypeScript to streamline mobile dApp development.
Before you begin, you need to install the following tools:
To get started, follow the steps below:
git clone https://github.com/ValentineCodes/scaffold-eth-mobile.git
cd scaffold-eth-mobile
yarn install
cd packages/reactnative
npx pod-install
Connect your device to your computer via WIFI-HOTSPOT
Run a local network in the first terminal
yarn chain
This command starts a local Ethereum network hosted on your local IP address. The network runs on your local machine and can be used for testing and development. You can customize the network configuration in hardhat.config.ts
.
Alternatively, you can use Ganache to persist the blockchain state during development
yarn deploy
This command deploys a test smart contract to the local network. The contract is located in packages/hardhat/contracts
and can be modified to suit your needs. The yarn deploy
command uses the deploy script located in packages/hardhat/deploy
to deploy the contract to the network. You can also customize the deploy script.
ALCHEMY_KEY
and localhost.provider
(port 8545) variables in packages/reactnative/scaffold.config.ts
ipconfig getifaddr en0
ipconfig
Connect your device via USB or Run an emulator
Run on device:
yarn android
yarn ios
You can interact with your smart contract using the DebugContracts
tab. You can configure your supported networks in packages/reactnative/scaffold.config.ts
.
Run smart contract test with yarn hardhat:test
YourContract.sol
in packages/hardhat/contracts
packages/reactnative/src/screens
packages/hardhat/deploy
We welcome contributions to Scaffold-ETH-Mobile!
Please see CONTRIBUTING.MD for more information and guidelines for contributing to Scaffold-ETH.