https://github.com/chainstacklabs/ethers-chainstackprovider-demo-nextjs
A simple demo to showcase the ChainstackProvider with ethers.js
https://github.com/chainstacklabs/ethers-chainstackprovider-demo-nextjs
Last synced: 5 months ago
JSON representation
A simple demo to showcase the ChainstackProvider with ethers.js
- Host: GitHub
- URL: https://github.com/chainstacklabs/ethers-chainstackprovider-demo-nextjs
- Owner: chainstacklabs
- License: mit
- Created: 2024-05-28T19:29:06.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-19T13:32:48.000Z (almost 2 years ago)
- Last Synced: 2024-12-29T16:33:04.867Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://ethers-chainstackprovider-demo-nextjs.vercel.app
- Size: 106 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

Chainstack is the leading suite of services connecting developers with Web3 infrastructure
Supported protocols •
Chainstack blog •
Chainstack docs •
Blockchain API reference •
Start for free
# ethers.js `ChainstackProvider` demo
A simple demo to showcase the `ChainstackProvider` with ethers.js. This DApp uses Next.js 14 to fetch address balances from all the chains supported by the ethers `ChainstackProvider`.
> Check out the tutorial on the [Chainstack Dev Portal]().
Learn more about the `ChainstackProvider` and which chains are supported on the [Chainstack Docs](https://docs.chainstack.com/reference/ethersjs-chainstackprovider).
## Quick start
Clone this repository:
```sh
git clone https://github.com/chainstacklabs/ethers-chainstackprovider-demo-nextjs.git
```
Move into the Next app:
```sh
cd chainstackprovider-demo
```
Install dependencies:
```sh
npm ci
```
Start dev server
```sh
npm run dev
```
The DApp is now running on `http://localhost:3000`. Input an Ethereum address and click the button to fetch the balances from all the chains supported by the `ChainstackProvider`.