메타마스크와 클레이튼은 매우 유사하다
window.web3 = new Web3(ethereum);
is_metamask_unlocked = window.ethereum._metamask.isUnlocked();
console.log('is_metamask_unlocked', is_metamask_unlocked)
const klaytn = require("../lib.common/klaytn");
console.log('is_klaytn_unlocked',klaytn._kaikas.isUnlocked())
https://gitcoin.co/issue/unlock-protocol/unlock/327
Detect when Metamask is locked | unlock-protocol Funded Issue Detail | Gitcoin
Metamask is "locked" by default, we should be able to detect that and show an error to the user asking them to unlock it.
gitcoin.co
https://docs.kaikas.io/02_api_reference/01_klaytn_provider
Klaytn Provider - Kaikas Docs
Kaikas injects a global API into websites visited by its users at window.klaytn. This API allows websites to request user login, load data from blockchains, and create transactions. You can use this API to detect whether the user uses Kaikas.
docs.kaikas.io
GitHub - gitcoinco/web: Grow Open Source
Grow Open Source. Contribute to gitcoinco/web development by creating an account on GitHub.
github.com
'블록체인' 카테고리의 다른 글
web3 타입스크립트 에러 Uncaught TypeError: Class extends value undefined is not a constructor or null (0) | 2023.09.06 |
---|---|
이더리움, 클레이튼 Contract 함수 정리(ERC721, ERC20) (0) | 2023.06.08 |
dapp 메타마스크 모바일 - deeplink (0) | 2023.05.03 |
RPC에러 Internal JSON-RPC error (0) | 2023.01.11 |
solidity 기초 (0) | 2022.08.04 |