12.2 Explorer Extension

What is CocosPay?

CocosPay is the explorer extension for Cocos-BCX.

Configuration

Node.js 8.9.3 version or higher.

Creation

Use npm install to install local dependencies.
Run building npm run dev.
Use the building to issue npm run build.
The unpacked building shall be at ./build.

Start

As a very useful extension to dapp and web, CocosPay shall inject BcxWeb’s object into the current document after installation and login, as in the example below:

  if (window.BcxWeb && window.BcxWeb.BCX) { 
      bcx = window.BcxWeb.BCX
    }

Open Source Address:

https://github.com/Cocos-BCX/CocosPay(to be updated)

12.2 Explorer Extension


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.