Chrome Plugin
Integrating the Google Chrome Cyano wallet plugin
1. Development environment set-up and installation
npm install ontology-dapi2. Creating a dAPI instance
import { client } from 'ontology-dapi';
client.registerClient({});3. Deploying dAPI methods
Fetching account or identity information
Smart contract methods
Communication methods that assist interaction with the chain
Account transfer method
Data signature methods
4. dAPI demonstration
Using the dAPIHow to set the gaslimit and gasprice
How to handle addresses
Last updated