API Interaction Examples

Once you have your Java or JSON-RPC API set up, you can follow along this section to find code snippets illustrating the specific interaction with the API.

At the end of each section, there is a complete example that covers all the interactions for each functionality. To jump directly to the complete examples, click the links below:

πŸ“˜

API Initialization

Make sure to initialize api objects and web3 constants before running the interaction.

To run the JavaScript code examples in a terminal, navigate to the test folder and run the script using:

mocha example.js

To install Mocha follow the instructions given here.