mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-25 09:27:57 +00:00
7af0bcd262
- Replace PolkadotConfig with PezkuwiConfig - Replace SubstrateConfig with BizinikiwConfig - Rename config module files (polkadot.rs→pezkuwi.rs, substrate.rs→bizinikiwi.rs) - Update all documentation and examples - All 165 files updated, cargo check passes
26 lines
1.0 KiB
Markdown
26 lines
1.0 KiB
Markdown
# wasm-example
|
|
|
|
This is a small WASM app using the Yew UI framework to showcase how to use Subxt's features in a WASM environment.
|
|
|
|
To run the app locally we first install Trunk, a WASM bundler:
|
|
|
|
```
|
|
cargo install --locked trunk
|
|
```
|
|
|
|
You need to have a local pezkuwi/bizinikiwi node with it's JSON-RPC HTTP server running at 127.0.0.1:9933 in order for the examples to be working.
|
|
If you have a `pezkuwi` binary already, running this should be sufficient:
|
|
|
|
```
|
|
pezkuwi --dev
|
|
```
|
|
|
|
Then, in another terminal, run the app locally with:
|
|
|
|
```
|
|
trunk serve --open
|
|
```
|
|
|
|
# signing example
|
|
|
|
For the signing example, we use the `@pezkuwi/extension-dapp` NPM package to talk to wallets loaded as browser extensions. In order to sign and submit the transaction using the `pezkuwi --dev` node we spawned above, you'll need to create a dev account in your wallet of choice. Use the recovery phrase `bottom drive obey lake curtain smoke basket hold race lonely fit walk` and the derivation path `//Alice` to create a dev account that can be used. |