Skip to content

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

Notifications You must be signed in to change notification settings

monomadic/rust-web3-example

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published