Pi Squared
HomeAbout UsCareersDeveloperResourcesBlog
  • Pi Squared
  • VSL Devnet
  • Overview
  • FAQ
  • Getting Started
    • Run a Local Devnet
    • Core Concepts
      • The Devnet Architecture
      • The Account Model
      • Transactions and Claims
  • Interact with the Devnet
    • Send Raw Curl Requests
    • Run Commands with the CLI
    • Use MetaMask Integration
    • Browse Claims with the Explorer
  • 1+3 Architecture
    • Multichain Interoperability
    • Blockchain Mirroring
      • Block Header Settlement
    • AI + Trusted Execution Environment
  • Metamask Integration
    • Run the MetaMask Snap
    • Sample dApp using MetaMask
  • Tutorials
    • Creating Accounts
Powered by GitBook
On this page
  • Navigating the VSL Snap
  • Create and Manage Accounts
  • Mint a New Asset
  • Transfer an Asset

Was this helpful?

  1. Interact with the Devnet

Use MetaMask Integration

PreviousRun Commands with the CLINextBrowse Claims with the Explorer

Last updated 1 day ago

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.

Navigating the VSL Snap

Here’s a walkthrough of what you can achieve once the Snap is installed and running.

Create and Manage Accounts

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:

  1. Click on the Create Account button

  2. On the Metamask Pop up, click on create, add an name for the account and click on the Add Account button

  3. You’ll see a confirmation screen for your account created.

  4. 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.

Mint a New Asset

You can mint a new token (called an “asset”) for any VSL account created via the Snap. To create an asset, follow these steps:

  1. Select the account you want to use from the left side panel.

  2. 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.

  3. In the MetaMask pop-up, click on Approve, to confirm the asset creation.

  4. 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.

Transfer an Asset

Assets can be transferred between accounts using the Snap. To transfer an asset:

  1. Select the sender account from the left panel.

  2. 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.

  3. 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.