From 2992806cd79b9f102d7fa1558a9d64cab7849e15 Mon Sep 17 00:00:00 2001 From: Mohammad Shahbaz Alam Date: Mon, 16 Oct 2023 18:45:31 +0530 Subject: [PATCH] Update index.js --- node-sdk/node-backend-example/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node-sdk/node-backend-example/index.js b/node-sdk/node-backend-example/index.js index 6d13dff1..6d5fe15b 100644 --- a/node-sdk/node-backend-example/index.js +++ b/node-sdk/node-backend-example/index.js @@ -44,6 +44,8 @@ const connect = async () => { idToken: token, // replace with your newly created unused JWT Token. }); const eth_private_key = await provider.request({ method: "eth_private_key" }); - console.log("ETH Private Key: ", eth_private_key); + console.log("ETH PrivateKey: ", eth_private_key); + const eth_address = await provider.request({ method: "eth_accounts" }); + console.log("ETH Address: ", eth_address[0]); }; connect();