Mirena logo MIRENA

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 [api server] source to the download and install the related module.

$ wget http://developer.mirena.com/download/mirena_api.tar
$ tar -xvf mirena_api.tar
$ cd mirena_api
$ 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     : 3045,
    api_url : "ws://127.0.0.1:24530",
    address_prefix : "PUB",
    fee_string : "MIRENA",
    fee_string_rpad : 8,
    creator : "",
    creator_wif : "",
    chain_id: "15e5ee033ee7923c6050ee42dae6a7a872134f8cdc9cad3981e9fe814d824322",
 };

© 2025 MIRENA. 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.