Liking cljdoc? Tell your friends :D
ClojureScript only.

district.ui.web3.utils


web3-injected?cljs

(web3-injected?)

Determines if the web3 object has been injected by an ethereum provider.

Determines if the `web3` object has been injected by an
ethereum provider.
raw docstring

web3-legacy?cljs

(web3-legacy?)

The old method of retrieving the current ethereum provider exposed it at window.web3.currentProvider..

Notes:

  • This changed in EIP-1102 to require authorization, and moved the partial provider into window.ethereum.

  • Can assume it isn't legacy when window.ethereum exists.

The old method of retrieving the current ethereum provider exposed
it at `window.web3.currentProvider`..

Notes:

- This changed in EIP-1102 to require authorization, and moved the
partial provider into `window.ethereum`.

- Can assume it isn't legacy when window.ethereum exists.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close