dAPI
has been created to specifically facilitate dApp
development. It supports browser (currently limited to Google Chrome) and mobile based dApp
development (implemented using Cyano
wallet that employs dAPI
interface).dAPI
provides a limited number of the more significant interfaces only. The interfaces that query block transactions, or other interfaces that perform similar functions can directly invoke the explorer
API interface. The dAPI
interface set of the chrome
plug-in is overall more comprehensive.dAPI
interface is referred to as "Promise"dAPI
package.npm
commands.dApp
:dAPI
to directly fetch the user's account address or ONT ID
. If the information can be retrieved successfully, it indicates the logged in state with respect to the dApp
.access tokens
to the user. This depends on the business logic of the dApp
.API
may choose not to submit the dApp
information and leave the fields empty.dAPI
works and a few ways in which it can used in a dApp
.dAPI
would function when integrated with a dApp
, both the browser and mobile versions.dApp
http://101.132.193.149:5000/; the original code can be found here.dApp
is demonstrated below. The developers working with the Chrome plugin version may refer to the original code here.Cyano
wallet Chrome extension is activated and running when the above page is opened.Cyano
you have installed.test-net
. Please ensure that your wallet is connected to the test net so as to carry out the authorization protocol and then later on see the changes reflect in your wallet.Cyano
wallet's confirmation window will automatically pop up. Confirm the transaction, and then once the transaction completes, it can be confirmed using Ontology's Explorer
by using your public address or the transaction hash the Chrome prompt will display.explorer
. The explorer can be accessed from here.