Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 1.49 KB

README.md

File metadata and controls

19 lines (16 loc) · 1.49 KB

IconBridge SDK for Javascript (Examples)

Install

Install as an npm package using the following command:

npm install git@github.com:Espanicon/icon-bridge-sdk-js.git

Examples

In this folder you can find a set of example code files showing how to use the IconBridgeSDK in different scenarios (i.e for a Node.js application or in a React web app, etc). Most of the example files need for you to add a valid public and/or private key for the ICON or the BSC chains (depending on the example file.).

  • Calling a readonly method for the ICON side of the bridge inside a Node.js application. Example file.
  • Calling a readonly method for the BSC side of the bridge inside a Node.js application. Example file.
  • Signing a transaction for a method for the ICON side of the bridge inside a Node.js application. Example file.
  • Signing a transaction for a method for the BSC side of the bridge inside a Node.js application. Example file.
  • Calling a readonly method for the ICON side of the bridge inside a React webapp. Example file.
  • Calling a readonly method for the BSC side of the bridge inside a React webapp. Example file.
  • Calling a pre-signage method for the ICON side of the bridge inside a React application. Example file.
  • Calling a pre-signage method for the BSC side of the bridge inside a React application. Example file.