Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 6d0a0ae

Browse files
sarthak1devjdevcs
andauthored
interactive code moved to the top (#6867)
Co-authored-by: Junaid <[email protected]>
1 parent 43e70c1 commit 6d0a0ae

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

docs/docs/guides/getting_started/getting_started.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ sidebar_label: Quickstart
66

77
# Quickstart
88

9+
10+
## Live code editor
11+
12+
<iframe width="100%" height="700px" src="https://stackblitz.com/edit/vitejs-vite-aksddx?embed=1&file=main.js&showSidebar=1"></iframe>
13+
914
## Installation
1015

1116
If NPM is being used as package manager, use the following for installing the web3.js library.
@@ -247,7 +252,3 @@ const subscription = uniswapToken.events.Transfer();
247252
subscription.on('data',console.log);
248253
// ↳ [{...},{...}, ...] live events will be printed in the console
249254
```
250-
251-
## Live code editor
252-
253-
<iframe width="100%" height="700px" src="https://stackblitz.com/edit/vitejs-vite-aksddx?embed=1&file=main.js&showSidebar=1"></iframe>

docs/docs/guides/wallet/index.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ sidebar_label: 'Mastering Wallets & Accounts'
55

66
# Wallets and Accounts Overview
77

8+
9+
## Live code editor
10+
11+
<iframe width="100%" height="700px" src="https://stackblitz.com/edit/vitejs-vite-mhuwrk?embed=1&file=main.js&showSidebar=1"></iframe>
12+
813
## Introduction
914

1015
A Web3.js `Wallet` is your main entry point if you want to use a private key directly to do any blockchain operations (transactions), also called `Signer` in other libraries.
@@ -220,7 +225,3 @@ The following is a list of `Accounts` [methods](/libdocs/Wallet) in the `web3.et
220225
- [sign](/libdocs/Accounts#sign)
221226
- [signTransaction](/libdocs/Accounts#signtransaction)
222227

223-
224-
## Live code editor
225-
226-
<iframe width="100%" height="700px" src="https://stackblitz.com/edit/vitejs-vite-mhuwrk?embed=1&file=main.js&showSidebar=1"></iframe>

docs/docs/guides/web3_providers_guide/index.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ sidebar_label: 'Mastering Providers'
55

66
# Web3js providers overview
77

8+
9+
## Live code editor
10+
11+
<iframe width="100%" height="700px" src="https://stackblitz.com/edit/vitejs-vite-zfusfd?embed=1&file=main.js&showSidebar=1"></iframe>
12+
813
## Introduction
914

1015
web3.js providers are objects responsible for enabling connectivity with the Ethereum network in various ways. Connecting your web application to an Ethereum node is necessary for sending transactions, querying data, and interacting with smart contracts on the network. In this guide, we will explore the different types of providers available in web3.js, how to set them up, and how to use them in your code.
@@ -375,7 +380,3 @@ provider.on('error', (error) => {
375380
```
376381

377382

378-
379-
## Live code editor
380-
381-
<iframe width="100%" height="700px" src="https://stackblitz.com/edit/vitejs-vite-zfusfd?embed=1&file=main.js&showSidebar=1"></iframe>

0 commit comments

Comments
 (0)