Skip to content
by Unity Nodes
Engineering Updates

Not working verifyOwner function

4 posts258 views6 likesLast activity May 2023

  1. myunggyunsOP 1

    Hi,
    To log in Near protocol, I use wallet selector. I get the account ID and public Key from near-wallet
    And then I want to get the signature from wallet.verifyOwner() but I can’t.
    When i call it, it move to 404 near page.

    const wallet = await selector.wallet();
          const accounts = await wallet.signIn({ contractId: 'peters2.testnet', accounts: [] });
          console.log('!!!', wallet, accounts);
          const account = await wallet.getAccounts();
          console.log('@@@@', account);
          const owner = await wallet.verifyOwner({
            message: 'test message for verification',
          });
    
          if (owner) {
            alert(`Signature for verification: ${JSON.stringify(owner)}`);
          }
    

    Did i miss something?

  2. chi.ha 2

    Hi there, you might want to try the dev-support channel in Near Discord for this question since the devs are more active there. There will be members here to chime in as well but it might take longer.

  3. myunggyuns 1

    Hi
    How to access Near Discord?
    I can’t find Near the Bos server

  4. chi.ha 2

    You can use this link: Discord then head to dev-support channel