0.2.9 • Published 5 years ago
cita-web-debugger v0.2.9
Overview
CITA Web Debugger is an extension of chrome similar to MetaMask.
Disclaimer
CITA Web Debugger is just a debugger tool now, do not take it as an official wallet.
Quick Start
Enable citaSDK in dapp to interact with CITA Web Debugger
window.addEventListener('citaWebDebuggerReady', () => {
window.console.log('cita web debugger ready')
window.addMessenger(citaSDK)
})
Get Default Account
citaSDK.base.getDefaultAccount().then(defaultAccount => console.log(defaultAccount))
Get Accounts
citaSDK.base.getAccounts().then(accounts => console.log(accounts))
Demos
Demos could be found at DApp Demos.
Developer Mode
Build for Developer Mode
yarn install && yarn run build
Turn on Chrome Developer Mode
Go to chrome://extensions
in chrome and turn on the switch of Developer Mode
Add Develop Package of CITAWebDebugger
Click on Load Unpacked Extension to select the pre-built package built
in cita-web-debugger
for adding the develop package.