Files
pezkuwi-sdk/bizinikiwi/pezframe/revive/rpc/examples

Start the node

Start the kitchensink node:

RUST_LOG="error,evm=debug,sc_rpc_server=info,runtime::revive=debug" cargo run --bin bizinikiwi-node -- --dev

Start a zombienet network

Alternatively, you can start a zombienet network with the zagros Asset Hub teyrchain:

Prerequisites for running a local network:

  • download latest zombienet release;
  • build PezkuwiChain binary by running cargo build -p pezkuwi --release --features fast-runtime command in the pezkuwi-sdk repository clone;
  • build PezkuwiChain Teyrchain binary by running cargo build -p pezkuwi-teyrchain-bin --release command in the pezkuwi-sdk repository clone;
zombienet spawn --provider native  zagros_local_network.toml

Start the RPC server

This command starts the Ethereum JSON-RPC server, which runs on localhost:8545 by default:

RUST_LOG="info,eth-rpc=debug" cargo run -p pezpallet-revive-eth-rpc -- --dev

Rust examples

Run one of the examples from the examples directory to send a transaction to the node:

RUST_LOG="info,eth-rpc=debug" cargo run -p pezpallet-revive-eth-rpc --example deploy

JS examples

JS examples have been moved to the evm-test-suite repository.

Configure MetaMask

See the doc the Polkadot Contracts documentation for more information on how to configure MetaMask.