MCPcopy Index your code
hub / github.com/ethereum-boilerplate/ethereum-boilerplate

github.com/ethereum-boilerplate/ethereum-boilerplate @main sqlite

repository ↗ · DeepWiki ↗
34 symbols 117 edges 57 files 0 documented · 0%
README

ethereum-boilerplate

Fully Typescript ready NextJS components for fast building dApps without running own backend

🚀DEMO: https://eth-boilerplate.vercel.app/

This boilerplate is built with Moralis

You need active web3 provider/wallet only for authentication. All pages in this boilerplate do not require an active web3 provider, they use Moralis Web3 API. Moralis supports the most popular blockchains and their test networks. You can find a list of all available networks in Moralis Supported Chains

Please check the official documentation of Moralis for all the functionalities of Moralis.

eth-boilerplate

⭐️ Star us

If this boilerplate helps you build Ethereum dapps faster - please star this project, every star makes us very happy!

🤝 Need help?

If you need help with setting up the boilerplate or have other questions - don't hesitate to write in our community forum and we will check asap. Forum link. The best thing about this boilerplate is the super active community ready to help at any time! We help each other.

🚀 Quick Start

Deploy with Vercel

📄 Clone or fork ethereum-boilerplate:

git clone https://github.com/ethereum-boilerplate/ethereum-boilerplate.git

💿 Install all dependencies:

cd ethereum-boilerplate
yarn install

✏ Rename .env.local.example to .env.local and provide required data. Get your Web3 Api Key from the Moralis dashboard:

image

🖊️ 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.

Example:

MORALIS_API_KEY=xxxx
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=7197b3e8dbee5ea6274cab37245eec212

🚴‍♂️ Run your App:

yarn start

🧭 Table of contents

🏗 Ethereum Components

<NFTBalances />

image

location: src/component/templates/balances/NFT/NFTBalances.tsx

🎨 <NFTBalances /> : displays the user's balances. Uses Moralis Evm API (does not require an active web3 provider).

<ERC20Balances />

image

location: src/component/templates/balances/ERC20/ERC20Balances.tsx

💰 <ERC20Balances /> : displays the user's ERC20 balances. Uses Moralis Evm API (does not require an active web3 provider).

<ERC20Transfers />

image

location: src/component/templates/transfers/ERC20/ERC20Transfers.tsx

💰 <ERC20Transfers /> : displays the user's ERC20 transfers. Uses Moralis Evm API (does not require an active web3 provider).

<NFTTransfers />

image

location: src/component/templates/transfers/NFT/NFTTransfers.tsx

🎨 <NFTTransfers /> : displays the user's NFT transfers. Uses Moralis Evm API (does not require an active web3 provider).

<Transactions />

image

location: src/component/templates/transactions/Transactions.tsx

💰 <Transactions /> : displays the user's transactions. Uses Moralis Evm API (does not require an active web3 provider).

✨ Contributors

Feel free to contribute 🧙 to ethereum-boilerplate project. But first, please read the Contributing Guidelines before opening an issue or PR so you understand the branching strategy and local development environment.

Made with contrib.rocks.

Extension points exported contracts — how you extend this code

Session (Interface)
(no doc)
next-auth.d.ts
NFTCardParams (Interface)
(no doc)
src/components/modules/NFTCard/NFTCard.tsx
ISubNav (Interface)
(no doc)
src/components/elements/navigation/SubNav/SubNav.tsx

Core symbols most depended-on inside this repo

getEllipsisTxt
called by 12
src/utils/format.ts
resolveIPFS
called by 1
src/utils/resolveIPFS.ts
TransactionsPage
called by 0
pages/transactions.tsx
MyApp
called by 0
pages/_app.tsx
HomePage
called by 0
pages/index.tsx
ERC20
called by 0
pages/transfers/erc20.tsx
NFTTransfersPage
called by 0
pages/transfers/nft.tsx
jwt
called by 0
pages/api/auth/[...nextauth].ts

Shape

Function 31
Interface 3

Languages

TypeScript100%

Modules by API surface

src/components/modules/ConnectButton/ConnectButton.tsx3 symbols
src/components/modules/NFTCard/NFTCard.tsx2 symbols
src/components/elements/navigation/SubNav/SubNav.tsx2 symbols
pages/api/auth/[...nextauth].ts2 symbols
src/utils/resolveIPFS.ts1 symbols
src/utils/getErc20LogoAddress.ts1 symbols
src/utils/format.ts1 symbols
src/utils/apiPost.ts1 symbols
src/components/templates/transfers/NFT/NFTTransfers.tsx1 symbols
src/components/templates/transfers/ERC20/ERC20Transfers.tsx1 symbols
src/components/templates/transactions/Transactions.tsx1 symbols
src/components/templates/home/Home.tsx1 symbols

Dependencies from manifests, versioned

@chakra-ui/icons2.0.8 · 1×
@chakra-ui/react2.5.5 · 1×
@emotion/react11 · 1×
@emotion/styled11 · 1×
@moralisweb3/next2.14.1 · 1×
@types/node18.16.0 · 1×
@types/react18.0.17 · 1×
@types/react-dom18.0.6 · 1×
@typescript-eslint/eslint-plugin5.33.1 · 1×
@web3uikit/core0.1.5 · 1×

For agents

$ claude mcp add ethereum-boilerplate \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact