New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@chainsafe/aleo-snap

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainsafe/aleo-snap

Aleo Snap, using MetaMask Snap's architecture, enables secure and efficient interactions with the Aleo Wallet.

  • 1.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

AleoSnap - MetaMask Snap for Aleo ecosystem

Table of Contents

  1. Introduction
  2. Requirements
  3. Usage and Developing

Introduction

AleoSnap is a MetaMask Snap that enables MetaMask users to interact with Aleo blockchain.
This package provides the functionality to integrate the Aleo blockchain into MetaMask using the Snaps system.

Requirements

Ensure you are set up and ready to go with the AleoSnap Monorepo.
To use the AleoSnap package, you need to have the MetaMask browser extension installed and set up, and be familiar with developing Snaps.

Usage and Developing

To use and develop AleoSnap, you will need to interact with the MetaMask extension using the JSON-RPC API.

Run Local Development Environment

Notice: Using snap that is running in local enviroment is only available with MetaMask Flask (https://metamask.io/flask), regular MetaMask must not be installed simultaneously.

Run the Snap local development environment:

yarn serve

Initialize Snap

Open a browser with any website (e.g., http://example.com/), with the Developer Tools open.
Run this command in the console to initialize the Snap from local source:

window.ethereum.request({
  method: "wallet_requestSnaps",
  params: {
    "local:http://localhost:8081": {},
  },
});

or initialize from npm:

window.ethereum.request({
  method: "wallet_requestSnaps",
  params: {
    "npm:@chainsafe/aleo-snap": {},
  },
});

Invoke Snap Methods

Now you are ready to run any of the Snap commands:

window.ethereum.request({
  method: "wallet_invokeSnap",
  params: {
    snapId: "local:http://localhost:8081",
    request: {
      method: "aleo_getAccountt",
      params: {},
    },
  },
}).then(console.log);

Keywords

FAQs

Package last updated on 19 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc