ARC-11: Algorand Wallet Reach Browser Spec
Convention for DApps to discover Algorand wallets in browser
Author | DanBurton |
---|---|
Discussions-To | https://github.com/algorandfoundation/ARCs/issues/52 |
Status | Deprecated |
Type | Standards Track |
Category | Interface |
Created | 2021-08-09 |
Table of Contents
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
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.