GitHunt
MO

monomadic/rust-web3-example

Rust Web3 WebAssembly EIP-1193 (metamask, etc) example

Web3-WebAssembly Rust EIP-1193 (Metamask) Example

This code demonstrates with fewest dependencies how to connect metamask and other eip-1193
compatible wallets in webassembly with rust (no javascript). Currently the web3 helper library
(which performs tasks such as call bytecode serialisation etc) is
rust-web3, as ethers-rs lacks support for an eip-1193
transport, but I have manually written a transport in other examples, so I could PR this
functionality if there is a demand.

Usage

# enter a nix flake shell (if you're using nixos, else install rust manually)
nix develop

# run trunk
trunk serve

Languages

Rust51.1%Nix46.3%HTML2.6%
Created May 5, 2022
Updated April 10, 2025
monomadic/rust-web3-example | GitHunt