Skip to content

Commit a4199f2

Browse files
committed
Update local development node documentation and configuration to revive-dev-node
1 parent c16a9e6 commit a4199f2

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

.snippets/code/develop/smart-contracts/local-development-node/local-development-node-1.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div id="termynal" data-termynal>
2-
<span data-ty="input"><span class="file-path"></span>./target/release/substrate-node --dev</span>
2+
<span data-ty="input"><span class="file-path"></span>./target/release/revive-dev-node --dev</span>
33
<br />
44
<span data-ty>2025-05-29 10:42:35 Substrate Node</span>
55
<span data-ty>2025-05-29 10:42:35 ✌️ version 3.0.0-dev-38b7581fc04</span>

develop/smart-contracts/local-development-node.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Local Development Node
3-
description: Follow this step-by-step guide to install a Substrate node and ETH-RPC adapter for smart contract development in a local environment.
3+
description: Follow this step-by-step guide to install a Revive Dev node and ETH-RPC adapter for smart contract development in a local environment.
44
categories: Smart Contracts
55
---
66

@@ -14,7 +14,7 @@ A local development node provides an isolated blockchain environment where you c
1414

1515
By the end of this guide, you'll have:
1616

17-
- A running Substrate node with smart contract support.
17+
- A runnin node with smart contract support.
1818
- An ETH-RPC adapter for Ethereum-compatible tooling integration accessible at `http://localhost:8545`.
1919

2020
## Prerequisites
@@ -23,35 +23,36 @@ Before getting started, ensure you have done the following:
2323

2424
- Completed the [Install Polkadot SDK Dependencies](/develop/parachains/install-polkadot-sdk/){target=\_blank} guide and successfully installed [Rust](https://www.rust-lang.org/){target=\_blank} and the required packages to set up your development environment.
2525

26-
## Install the Substrate Node and ETH-RPC Adapter
26+
## Install the Revive Dev Node and ETH-RPC Adapter
2727

28-
The Polkadot SDK repository contains both the [Substrate node](https://github.com/paritytech/polkadot-sdk/tree/master/substrate/bin/node){target=\_blank} implementation and the [ETH-RPC adapter](https://github.com/paritytech/polkadot-sdk/tree/master/substrate/frame/revive/rpc){target=\_blank} required for Ethereum compatibility. Start by cloning the repository and navigating to the project directory:
28+
The Polkadot SDK repository contains both the [Revive Dev node](https://github.com/paritytech/polkadot-sdk/tree/{{dependencies.repositories.polkadot_sdk_contracts_node.commit_dev_node}}/substrate/frame/revive/dev-node){target=\_blank} implementation and the [ETH-RPC adapter](https://github.com/paritytech/polkadot-sdk/tree/{{dependencies.repositories.polkadot_sdk_contracts_node.commit_dev_node}}/substrate/frame/revive/rpc){target=\_blank} required for Ethereum compatibility. Start by cloning the repository and navigating to the project directory:
2929

3030
```bash
31-
git clone -b {{dependencies.repositories.polkadot_sdk_contracts_node.version}} https://github.com/paritytech/polkadot-sdk.git
31+
git clone https://github.com/paritytech/polkadot-sdk.git
3232
cd polkadot-sdk
33+
git checkout {{dependencies.repositories.polkadot_sdk_contracts_node.commit_dev_node}}
3334
```
3435

3536
Next, you need to compile the two essential components for your development environment. The Substrate node provides the core blockchain runtime with smart contract support, while the ETH-RPC adapter enables Ethereum JSON-RPC compatibility for existing tooling:
3637

3738
```bash
38-
cargo build --bin substrate-node --release
39+
cargo build -p revive-dev-node --bin revive-dev-node --release
3940
cargo build -p pallet-revive-eth-rpc --bin eth-rpc --release
4041
```
4142

4243
The compilation process may take some time depending on your system specifications, potentially up to 30 minutes. Release builds are optimized for performance but take longer to compile than debug builds. After successful compilation, you can verify the binaries are available in the `target/release` directory:
4344

44-
- **Substrate node path**: `polkadot-sdk/target/release/substrate-node`
45+
- **Revive Dev node path**: `polkadot-sdk/target/release/revive-dev-node`
4546
- **ETH-RPC adapter path**: `polkadot-sdk/target/release/eth-rpc`
4647

4748
## Run the Local Node
4849

4950
With the binaries compiled, you can now start your local development environment. The setup requires running two processes.
5051

51-
Start the Substrate node first, which will initialize a local blockchain with the `dev` chain specification. This configuration includes `pallet-revive` for smart contract functionality and uses pre-funded development accounts for testing:
52+
Start node first, which will initialize a local blockchain with the `dev` chain specification. This configuration includes `pallet-revive` for smart contract functionality and uses pre-funded development accounts for testing:
5253

5354
```bash
54-
./target/release/substrate-node --dev
55+
./target/release/revive-dev-node --dev
5556
```
5657

5758
The node will begin producing blocks immediately and display initialization logs:
@@ -61,10 +62,10 @@ The node will begin producing blocks immediately and display initialization logs
6162
For debugging purposes or to monitor low-level operations, you can enable detailed logging by setting environment variables before running the command:
6263

6364
```bash
64-
RUST_LOG="error,evm=debug,sc_rpc_server=info,runtime::revive=debug" ./target/release/substrate-node --dev
65+
RUST_LOG="error,evm=debug,sc_rpc_server=info,runtime::revive=debug" ./target/release/revive-dev-node --dev
6566
```
6667

67-
Once the Substrate node is running, open a new terminal window and start the ETH-RPC adapter. This component translates Ethereum JSON-RPC calls into Substrate-compatible requests, allowing you to use familiar Ethereum tools like MetaMask, Hardhat, or Ethers.js:
68+
Once the node is running, open a new terminal window and start the ETH-RPC adapter. This component translates Ethereum JSON-RPC calls trate-compatible requests, allowing you to use familiar Ethereum tools like MetaMask, Hardhat, or Ethers.js:
6869

6970
```bash
7071
./target/release/eth-rpc --dev
@@ -74,7 +75,7 @@ You should see logs indicating that the adapter is ready to accept connections:
7475

7576
--8<-- 'code/develop/smart-contracts/local-development-node/local-development-node-2.html'
7677

77-
Similar to the Substrate node, you can enable detailed logging for the ETH-RPC adapter to troubleshoot issues:
78+
Similar to the Revive Dev node, you can enable detailed logging for the ETH-RPC adapter to troubleshoot issues:
7879

7980
```bash
8081
RUST_LOG="info,eth-rpc=debug" ./target/release/eth-rpc --dev

llms.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
- [Wagmi for Polkadot Hub Smart Contracts](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/smart-contracts/libraries/wagmi.md): Learn how to use Wagmi React Hooks to fetch and interact with smart contracts on Polkadot Hub for seamless dApp integration.
6969
- [Web3.js](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/smart-contracts/libraries/web3-js.md): Learn how to interact with Polkadot Hub using Web3.js, deploying Solidity contracts, and interacting with deployed smart contracts.
7070
- [Web3.py](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/smart-contracts/libraries/web3-py.md): Learn how to interact with Polkadot Hub using the Web3 python library, deploying Solidity contracts, and interacting with deployed smart contracts.
71-
- [Local Development Node](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/smart-contracts/local-development-node.md): Follow this step-by-step guide to install a Substrate node and ETH-RPC adapter for smart contract development in a local environment.
71+
- [Local Development Node](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/smart-contracts/local-development-node.md): Follow this step-by-step guide to install a Revive Dev node and ETH-RPC adapter for smart contract development in a local environment.
7272
- [Smart Contracts Overview](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/smart-contracts/overview.md): Learn about smart contract development capabilities in the Polkadot ecosystem, either by leveraging Polkadot Hub or other alternatives.
7373
- [Advanced Functionalities via Precompiles](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/smart-contracts/precompiles/index.md): Explores how Polkadot integrates precompiles to run essential functions natively, improving the speed and efficiency of smart contracts on the Hub.
7474
- [Interact with Precompiles](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/smart-contracts/precompiles/interact-with-precompiles.md): Learn how to interact with Polkadot Hub’s precompiles from Solidity to access native, low-level functions like hashing, pairing, EC ops, etc.

variables.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ dependencies:
2626
polkadot_sdk_contracts_node:
2727
repository_url: https://github.com/paritytech/polkadot-sdk
2828
version: polkadot-stable2503-6
29+
commit_dev_node: 8e2b6f742a38bb13688e12abacded0aab2dbbb23
2930
ignore_updates: true
3031
polkadot_sdk_parachain_template:
3132
repository_url: https://github.com/paritytech/polkadot-sdk-parachain-template

0 commit comments

Comments
 (0)