I'm trying to integrate liquid network with my node.js application. Such that i want to create liquid wallet address, send a transaction from 1:1 on liquid network and check balance for that wallet address.

The only useful thing i found was to use bitfnex or other exchanges but they don't allow to create wallet addresses just deposit addresses.

So anyone can guide me regarding this, Do i need my own node for this and how to achieve this.


You need to run elementsd with below elements.conf:


rpcport = 18884
rpcuser = user1
rpcpassword = password1

Use the example mentioned in Elements code tutorial:

const request = require('request');

let username = "user1";
let password = "password1";

let options = {
    url: "http://localhost:18884",
    method: "post",
     "content-type": "text/plain"
    auth: {
        user: username,
        pass: password
    body: JSON.stringify( {"jsonrpc": "2.0", "id": "rpctest", "method": "getwalletinfo", "params": [] })

request(options, (error, response, body) => {
    if (error) {
        console.error('An error occurred: ', error);
    } else {
        json = JSON.parse(body);

The output will show the bitcoin balance returned by getwalletinfo.

Other RPCs: https://elementsproject.org/en/doc/


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.