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
![Connect to the Portal](/ja/assets/images/01-89699625dc11093f8b71d5061b5f0711.png)
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 3rd-Party Software Notice](/ja/assets/images/02-2a6a8b08da943b3c3518c0a97f73e5f5.png)
![Accept 3rd-Party Software Notice](/ja/assets/images/03-2582fd8d91898053159d7b23d3e5046f.png)
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.
![Connection Request](/ja/assets/images/04-d8f48294b68bde379f4a537227068f56.png)
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.
![Review Permissions](/ja/assets/images/05-1cb0901ae8b6e591a9ba5a38c804391d.png)
![Begin Installation](/ja/assets/images/06-5ef3bbed0c4773b6425ed799b7f409d3.png)
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.
![Confirm Elevated Permissions](/ja/assets/images/08-7a336b75eebc1de668a70823fea04f9f.png)
![Installation is Complete](/ja/assets/images/09-fbf6c9fd2d56edc1536587e3c7315713.png)
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.
![Connect](/ja/assets/images/10-36f81da470f60b3b4b58f3204ca77472.png)
![Account Details](/ja/assets/images/13-49f34b3f76578050fa11ffc7e0ad6018.png)
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.
![Remove Astar Wallet](/ja/assets/images/11-dc971fd21cf7b0bbdaf82845f4b9ebb6.png)
![Remove Snap](/ja/assets/images/12-0609fe8edee04786e9a3be95564c3340.png)
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.