near-api-js icon indicating copy to clipboard operation
near-api-js copied to clipboard

Wallet injection API

Open ilblackdragon opened this issue 6 years ago • 2 comments

We need a wallet injection API that existing wallets that have dApp browser can leverage to integrate with apps.

For example:

ilblackdragon avatar Nov 07 '19 18:11 ilblackdragon

We need APIs to:

  1. Request login (without knowing account name yet). At this step user potentially might want to only let app know account (but not give access), so cannot be exactly like Sign Transaction. Alternatively can just be special "error" result for Sign Transaction.
  2. Sign transaction (potentially for specific account). Needs to support multiple transactions in one request.
  3. Get NEAR connection config.

I'll do more specific spec soon, after I implement individual transaction signing for our wallet.

vgrichina avatar Nov 07 '19 19:11 vgrichina

@vgrichina are you now able to add a more specific spec?

chadoh avatar May 26 '20 18:05 chadoh