dAPIhas been created to specifically facilitate
dAppdevelopment. It supports browser (currently limited to Google Chrome) and mobile based
dAppdevelopment (implemented using
Cyanowallet that employs
dAPIprovides 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
explorerAPI interface. The
dAPIinterface set of the
chromeplug-in is overall more comprehensive.
dAPIto 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
access tokensto the user. This depends on the business logic of the
APImay choose not to submit the
dAppinformation and leave the fields empty.
dAPIworks and a few ways in which it can used in a
dAPIwould function when integrated with a
dApp, both the browser and mobile versions.
dAppis demonstrated below. The developers working with the Chrome plugin version may refer to the original code here.
Cyanowallet Chrome extension is activated and running when the above page is opened.
Cyanoyou have installed.
Cyanowallet's confirmation window will automatically pop up. Confirm the transaction, and then once the transaction completes, it can be confirmed using Ontology's
Explorerby using your public address or the transaction hash the Chrome prompt will display.
explorer. The explorer can be accessed from here.