From fe3d0b847b4fb01e1fe754fa8c1883e8aca700f4 Mon Sep 17 00:00:00 2001 From: smudgil <38195323+smudgil@users.noreply.github.com> Date: Tue, 9 Mar 2021 19:37:12 -0500 Subject: [PATCH] Added documentation for using an external node provider --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 9361960..163b0ae 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,9 @@ const DappAuth = require('@dapperlabs/dappauth'); const dappAuth = new DappAuth(new Web3.providers.HttpProvider('http://localhost:8545')); + + //To use a node provider, like Alchemy (www.alchemyapi.io), do the following: + //const dappAuth = new DappAuth(new Web3("https://eth-mainnet.alchemyapi.io/v2/your-api-key")); async function debug() { const challenge = 'foo';