cita-web-debugger

0.2.9 • Public • Published

中文文档

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.

Dependents (0)

Package Sidebar

Install

npm i cita-web-debugger

Weekly Downloads

0

Version

0.2.9

License

MIT

Unpacked Size

1.12 MB

Total Files

47

Last publish

Collaborators

  • keith_chen