• Hi All! – Firstly, thanks for an excellent plug-in, Lynn!…

    I only have one question, and I’m hoping it’s an easy one / answerable positively! ??

    If I have a user connect a wallet successfully during a session, to allow access to the site, etc, could you please possibly confirm if this wallet ID / AC is made available to the client machine to be ‘picked up’ locally and used for display etc, or not?

    i.e. I know that the plug-in creates or retrieves a unique account ID on the SERVER, and stores the connected wallet number in the WPDB, but in terms of accessing those details from the browser session, and knowing (on the client side – in this case, an embedded HTML5 app) WHICH wallet/User ID is connected, I’m guessing I’d need to access / retrieve some form of temporary locally-set session or browser stored data?

    If the plug-in DOES store *just* the Wallet ID even (and ideally, the unique WPDB user ID too), during the session, locally on the client, or could be set to store this, it would be perfect! – and a really useful feature I think!

    Even more amazing would be if the pro plug-in that checks if ‘X’ tokens are held, stores (or could also store) that detail, or at least clear the session’s wallet details if not enough tokens held… ??

    Best regards, and thanks again!

    Den.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author lynn999

    (@lynn999)

    Hi, sorry for the delay,

    The plugin stores, in its table, the WP user id and the eth address, and it uses the eth address to then log in the matching user. The ID you’re thinking of, I believe, is, in fact, the Eth address.

    So, by wallet ID, do you mean the wallet address?

    You can access the wallet address through the ethereum object on the window window.ethereum for MetaMask, or (I think) from the “walletconnect” item in localStorage for WalletConnect.

    But yeah, making it available on a window object could be useful.

    Even more amazing would be if the pro plug-in that checks if ‘X’ tokens are held, stores (or could also store) that detail, or at least clear the session’s wallet details if not enough tokens held… ??

    Thank you for the suggestion!

    Thread Starter japster2021

    (@japster2021)

    Hi Lynn! – Thanks so much for getting back to me… ??

    Yes, sorry, the eth/wallet address then… ??

    Thanks for the advice, and will try that, thanks!

    Take care…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Reading connected Wallet ID from local session?’ is closed to new replies.