getInfo

Your application can request information about the user's wallet with the getInfo method.

No request parameters are required:

  import { Wallet } from 'sats-connect'
  
  const handleGetInfo = async () => {
    try {
      const response = await Wallet.request("getInfo", null);
      console.log(response);
    } catch (err) {
      console.log(err);
    }
  };

The getInfo method returns a Promise that resolves to the GetInfoResult object:

PropertyDescription

version

a string representing the wallet's version number

methods

an array of strings representing the methods exposed by the provider