NodeJS API Server

Access the RPC port of the blockchain through a server created based on nodejs to record the information and transaction of the blockchain.

Setting

Download the [nodejs server] source to the [git clone] and install the related module.

$ git clone https://github.com/aladdinchain/adc_nodejs_testnet.git
$ cd adc_nodejs_testnet
$ npm install
$ node src/app.js

config.ini

Set the blockchain interworking information in the [src/config/config.ini] file.

  • port : The port that the [nodejs] server will open
  • api_url : Rpc information of blockchain to be linked
  • creator : The existing wallet address used to create a wallet
  • creator_wif : private key of existing wallet address
module.exports = {
   mode : 'development',
   version : '0',
   port     : 3034,
   api_url : "ws://192.168.100.34:7002",
   address_prefix : "ADC",
   fee_string : "ADC",
   fee_string_rpad : 6,
   creator : "",
   creator_wif : "",
   chain_id: "6220ab76142634aa0a2e54ede36c75d35900c35d30c8989196bef90673443a0a",		// testnet
};

©2021 ADC. All rights reserved.

Close

Create Post

Close

Edit Post

Close

Post Password

Please enter the password
you entered when writing the post to edit the post.

Close

Post Password

Please enter the password
you entered when creating the post to delete the post.

Close

Please enter a nickname.

Your post has been completed.