MetaMask Astar Wallet Snap
はじめに
Astar Wallet Snapは、MetaMaskの機能を拡張し、特にPolkadot上で動作するAstar Substrateで構築されたブロックチェーン向けに提供されます。Astar Wallet Snapを使用すると、MetaMaskを使用してSubstrateウォレットを迅速に生成し、トランザクションの署名や@polkadot/extension-dappパッケージを利用する分散型アプリケーション(dApps)とのやり取りが可能になります。MetaMaskを介してAstarエコシステム内のすべてのdAppsとシームレスにやり取りできるため、MetaMaskの有用性がEthereumやEVM互換のネットワークを超えてSubstrateにまで拡大します。
インストール方法
Astar Wallet Snap の運用を進めるには以下のステップに従ってください。(Portal) 例として用いる dapp のソースコード はレポジトリの一部分としてご利用いただけます。このガイドは Metamask が インストールされていて、適切に設定されていることを想定しています。
Connect to the Portal
Click the webpage button labeled "Astar Snap" with the MetaMask logo
Review & Accept Third-Party Software Notice
Click the arrow to view the entire third-party software notice and, if you accept it, click the MetaMask "Third-party software notice" button labeled "Accept" to accept the MetaMask third-party software notice.
Review & Accept Connection Request
Review the connection request and, if you accept it, click the MetaMask "Connection request" button labeled "Connect" to accept the Astar Wallet snap connection request.
Review Snap Permissions & Begin Installation
Click the arrow to view the entire list of permissions required by the Astar Wallet snap and, if you accept them, click the MetaMask "Install snap" button labeled "Install" to begin installing the Astar Wallet snap.
Confirm Elevated Permissions & Complete Installation
Because the Astar Wallet snap has permission to control accounts for the Astar & Shiden Networks (whose tokens carry real economic value), it's necessary to review and confirm this elevated level of access. If you accept this elevated level of access, check the boxes and click the MetaMask "Proceed with caution" button labeled "Confirm" to confirm the elevated level of access and install the Astar Wallet snap. Click the MetaMask "Installation complete" button labeled "OK" to continue to the example dApp.
Connect the Snap Wallet
The Astar Snap Wallet is now configured. Notice the address was derived using the entropy from your MetaMask seed phrase and the snapId. The public key does not depend on the network and will always be the same.
How to Remove
In MetaMask, click on the tripple dot icon on the top right of the extention, then Snap, lastly click on Astar Wallet, scroll to the bottom and click Remove Astar Wallet
This action will not destroy your account or your funds. But deleting your MetaMask account and/or seed could.
How to Restore
Simply reconnect to the Portal and choose the Astar Snap Wallet again. You will obtain the same address as before with all the funds attached.
Disclaimer
XCM is not recommended
Conclusion
That concludes the Astar Wallet snap Portal install instructions. If you have any questions or believe you have found an error or bug, please open an Issue.