cBridge Transfer Web Widget
To make widget integration simple, we provide complete source files which support cBridge transfer.
Compare package.json with your own package.json and inject all needed dependencies
Put files from public, scripts and src folder inside your project where is easy to manage.
Inside the src folder, there is a cBridgeTransferWidget.tsx file. You may import it wherever you want to put and use CBridgeTransferWidget as an element inside your web project.
Copy .env.test to .env. cBridge transfer widget uses values inside .env. If .env is missing or mis-configured, interface error alert will appear.
Run Sample
To give a quick experience about cBridge transfer widget, we create a sample index.js and App.js inside the src file folder.
run
npm install
oryarn install
inside cBridget transfer widget root folder on consolerun
cp .env.test .env
on console (Don't skip, otherwise you will see interface error)run
npm start
oryarn start
Import cBridgeTransferWidget
Launch Production Environment
Last updated 2 years ago