Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/examples/hello-dapp2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Hello DApp Example

This is a simple example showing how to connect to the **Base Testnet** using `ethers.js`.

```js
import { ethers } from "ethers";

const provider = new ethers.JsonRpcProvider("https://sepolia.base.org");

async function main() {
const blockNumber = await provider.getBlockNumber();
console.log("Current block number on Base Testnet:", blockNumber);
}

main();