Skip to content

Commit

Permalink
Added Metamask example to README (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMustermann2 authored Oct 10, 2022
1 parent da1d612 commit ef6588c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ Implementation of the Wallet that does not use any pk or mnemonic.
import { HttpProvider, WSProvider } from '@harmony-js/network'
import { Key, HarmonyShards, HARMONY_RPC_SHARD_0_URL, HARMONY_RPC_WS } from 'harmony-marketplace-sdk'

// Using with Metamask
const key = new Key(window.ethereum)

// Using a HttpProvider with a string url.
const key = new Key(new HttpProvider('https://api.harmony.one'))

Expand Down

0 comments on commit ef6588c

Please sign in to comment.