You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WASM (WebAssembly) is a binary instruction format that can be executed by web browsers and other environments. In the context of blockchain development, WASM is often used as a way to write smart contracts or decentralized applications (dApps) that can run on a variety of blockchain platforms.
When a WASM dApp is connected to a Substrate wallet, it can use the Substrate API to interact with the blockchain and query the account list. The Substrate API provides a standardized way to interact with a Substrate node and access blockchain data such as the account list, block information, and transaction data.
To use the signer object published by the wallet, the WASM dApp can call the appropriate API methods to sign transactions and send them to the blockchain. The signer object contains the user's private key, which is used to sign transactions and prove ownership of the account.
Traditional dApps:
Traditional dApps typically use the Ethereum Virtual Machine (EVM) as their runtime environment, and often use the web3.js library to interact with the blockchain and wallet. The web3.js library provides a standardized way to interact with a Ethereum node and access blockchain data such as the account list, block information, and transaction data.
When a traditional dApp is connected to an EVM wallet, it can use the web3.js library to interact with the blockchain and query the account list. The dApp can also use the library to sign transactions and send them to the blockchain.
The signer object published by the wallet is used to sign transactions and prove ownership of the account. This object contains the user's private key and is typically accessed through the web3.js library.
In summary, both types of dApps use different runtime environments and libraries to interact with the blockchain and wallet. WASM dApps typically use the Substrate API and signer objects published by the wallet, while traditional dApps typically use the Ethereum Virtual Machine and the web3.js library. However, the end result is similar: both types of dApps can interact with the account list and use signer objects to sign transactions and send them to the blockchain.
Overview
The goal is to add support for WebAssembly (WASM) dApps to SubConnect. An example of a WASM dApp is available at https://github.com/AstarNetwork/wasm-showcase-dapps.
Tasks
examples
folder of SubConnect.packages/wallet-connect
.The text was updated successfully, but these errors were encountered: