BitcoinAndLightningLayerSpecs / WebBTC

11 stars 1 forks source link

Feature: Service #6

Closed gr0kchain closed 2 years ago

gr0kchain commented 2 years ago

Get information from connected wallet.

Parameters

None

Returns

Example

window.wallet.getMethods() window.wallet.getVersion() window.wallet.getServices()

Response

{ 
"version" : 1,
"methods" : [
  "getAddresses",
  "getInvoices",
],
  "supports" : [
    "bip39",
    "bip32"
  ]
}

Note

Method for obtaining existing supported permissions that the user could approve when enabling the wallet. Application specific implementation details can vary based on the security preference.

Concerns

Possible finger printing of users if this method is accessible without enabling it first.