Use MetaMask Integration
Last updated
Was this helpful?
Last updated
Was this helpful?
The VSL MetaMask Snap brings VSL accounts and assets right into your browser, allowing you to interact with the VSL network directly from any dApp that supports MetaMask. This integration acts as a bridge between the MetaMask Snap system and your locally running VSL node, letting you manage VSL accounts, mint and transfer assets, and submit transactions, without needing a separate interface.
If you haven’t already installed the Snap, be sure to visit the Run the MetaMask Snap section of the Devnet documentation for step-by-step setup instructions.
Here’s a walkthrough of what you can achieve once the Snap is installed and running.
You can create new VSL accounts directly from MetaMask, assign them labels, and view each account’s metadata, such as its ID, address, and balances. You can also:
To create an account, follow these steps:
Click on the Create Account button
On the Metamask Pop up, click on create, add an name for the account and click on the Add Account button
You’ll see a confirmation screen for your account created.
By clicking on any of the accounts on the left side panel, you can see all the information relating to that account such as account ID, address, balance, etc.
You can mint a new token (called an “asset”) for any VSL account created via the Snap. To create an asset, follow these steps:
Select the account you want to use from the left side panel.
On the Account Actions column, click the dropdown and select Create Asset. Add a name and initial balance to the asset and click on Submit.
In the MetaMask pop-up, click on Approve, to confirm the asset creation.
After this, you’ll see an Asset ID field below the Account Actions column, confirming your asset has been created.
You’ll see a confirmation screen, and the newly created asset (along with its ID) will appear under the account’s asset list.
Assets can be transferred between accounts using the Snap. To transfer an asset:
Select the sender account from the left panel.
On the Account Actions column, click the dropdown and select the Transfer Asset button. Paste the Asset ID, Recipient's Address, and Amount you want to transfer in their respective fields.
Approve the action in the Metamask pop-up.
Once approved, you’ll receive a transaction hash. You’ll also notice that the asset balance will update accordingly for both accounts.
Other than these actions mentioned above, you can also make a payment, submit a claim and create a personal message sign all within this MetaMask Snap integration.