Skip to content

Commit

Permalink
Minor fixes to the doc for tx insights snap. (MetaMask#835)
Browse files Browse the repository at this point in the history
* Minor fixes to the doc for tx insights snap.

* Update snaps/tutorials/transaction-insights.md

Co-authored-by: Alexandra Tran Carrillo <[email protected]>

---------

Co-authored-by: Alexandra Tran Carrillo <[email protected]>
  • Loading branch information
Raj Karamchedu and alexandratran authored Jun 26, 2023
1 parent dd66096 commit 5aba24a
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions snaps/tutorials/transaction-insights.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,29 @@ The snap provides transaction insights in the MetaMask transaction window.

### 1. Set up the project

Create a new snap project using the Create Snap CLI by running the following command:
Create a new snap project using the [`@metamask/create-snap` CLI](https://github.com/MetaMask/snaps/tree/main/packages/create-snap) by running:

```bash
yarn create @metamask/snap transaction-insights-snap
# or...
```

or

```bash
npm create @metamask/snap transaction-insights-snap
```

To initialize your development environment with the required dependencies, in your project
directory, enter the command `yarn`.
Next, `cd` into the `transaction-insights-snap` project directory and run:

```bash
yarn install
```

This initializes your development environment with the required dependencies.

### 2. Enable transaction insights and the Ethereum provider

The template snap is set up to expose a JSON-RPC API with a simple hello command, which brings up a
The default template snap, such as the one in [Create a gas estimation snap](./gas-estimation.md#5-build-and-test-the-snap), is set up to expose a JSON-RPC API with a simple hello command, which brings up a
dialog box.
In contrast, the snap you're creating in this tutorial doesn't expose any API.
Instead, it provides transaction insights directly in the MetaMask transaction window.
Expand Down

0 comments on commit 5aba24a

Please sign in to comment.