ARC-11: Algorand Wallet Reach Browser Spec Source

Convention for DApps to discover Algorand wallets in browser

AuthorDanBurton
Discussions-Tohttps://github.com/algorandfoundation/ARCs/issues/52
StatusDeprecated
TypeStandards Track
CategoryInterface
Created2021-08-09

Algorand Wallet Reach Browser Spec

Abstract

A common convention for DApps to discover Algorand wallets in browser code: window.algorand. A property algorand attached to the window browser object, with all the features defined in ARC-0010.

Specification

interface WindowAlgorand {
  enable: EnableFunction;
  enableNetwork?: EnableNetworkFunction;
  enableAccounts?: EnableAccountsFunction;
  signAndPostTxns: SignAndPostTxnsFunction;
  getAlgodv2Client: GetAlgodv2ClientFunction;
  getIndexerClient: GetIndexerClientFunction;
  signTxns?: SignTxnsFunction;
  postTxns?: SignTxnsFunction;
}

With the specifications and semantics for each function as stated in ARC-0010.

Rationale

DApps should be unopinionated about which wallet they are used with. End users should be able to inject their wallet of choice into the DApp. Therefore, in browser contexts, we reserve window.algorand for this purpose.

Security Considerations

None.

Copyright and related rights waived via CCO.

Citation

Please cite this document as:

DanBurton, "ARC-11: Algorand Wallet Reach Browser Spec," Algorand Requests for Comments, no. 11, August 2021. [Online serial]. Available: https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0011.md.