Home

WSS 0.6.0

Get Info

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{"id":"1","method":"getInfo","params":{}}

Response: 200

Copied!
{
    "id": "1",
    "data": {
        "name": "Litecoin",
        "shortcut": "LTC",
        "network": "LTC",
        "decimals": 8,
        "version": "0.6.0",
        "bestHeight": 3156544,
        "bestHash": "43657eebdad260988439c2011a7a9d7c64e8bac21072e9552b495564c25f7b72",
        "block0Hash": "12a765e31ffd4059bada1e25190f6e98c99d9714d334efa41a195a7e7e04bfe2",
        "testnet": false,
        "backend": {
            "version": "210506",
            "subversion": "/LitecoinCore:0.21.5.6/"
        }
    }
}

Ping

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{"id":"2","method":"ping","params":{}}

Response: 200

Copied!
{
    "id": "2",
    "data": {}
}

Get block hash

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{"id":"3","method":"getBlockHash","params":{"height":3155670}}

Response: 200

Copied!
{
    "id": "3",
    "data": {
        "hash": "d7ecc0dfa98b3d72b01bcec79d414bf0cad9fa75da6021f99d60eeca34503525"
    }
}

Get account info

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{
  "id": "4",
  "method": "getAccountInfo",
  "params": {
    "descriptor": "ltc1q5vad59nx3g2n3u3pkhjm82grmuxu5jgpqtat5qsh44z3dv7uwytsln4fmg",
    "details": "basic"
  }
}

Response: 200

Copied!
{
    "id": "4",
    "data": {
        "address": "ltc1q5vad59nx3g2n3u3pkhjm82grmuxu5jgpqtat5qsh44z3dv7uwytsln4fmg",
        "balance": "0",
        "totalReceived": "82210966248",
        "totalSent": "82210966248",
        "unconfirmedTxs": 0,
        "txs": 998
    }
}

Get account UTXO

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{
  "id": "5",
  "method": "getAccountUtxo",
  "params": {
    "descriptor": "ltc1q5vad59nx3g2n3u3pkhjm82grmuxu5jgpqtat5qsh44z3dv7uwytsln4fmg"
  }
}

Response: 200

Copied!
{
    "id": "5",
    "data": []
}

Get balance history

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{
  "id": "6",
  "method": "getBalanceHistory",
  "params": {
    "descriptor": "ltc1q5vad59nx3g2n3u3pkhjm82grmuxu5jgpqtat5qsh44z3dv7uwytsln4fmg",
    "from": 1785992400,
    "to": 1785999600
  }
}

Response: 200

Copied!
{
    "id": "6",
    "data": [
        {
            "time": 1785992400,
            "txs": 1,
            "received": "0",
            "sent": "308816169",
            "sentToSelf": "0"
        }
    ]
}

Get transaction

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{
  "id": "7",
  "method": "getTransaction",
  "params": {
    "txid": "97783dd7e6ceefe3590cff4dfa8d1e5910330ab792e9a80097aa730a2c8917b7"
  }
}

Response: 200

Copied!
{
    "id": "7",
    "data": {
        "txid": "97783dd7e6ceefe3590cff4dfa8d1e5910330ab792e9a80097aa730a2c8917b7",
        "version": 1,
        "vin": [
            {
                "txid": "fbda6abd2344e3d5bc59f3d24edf3b2bcc47a1b2a7fac48e1fb30d9ddae9501d",
                "sequence": 4294967295,
                "n": 0,
                "addresses": [
                    "ltc1qqkwa6m83r2nm98eeuu0tsyrlw6mde4mtcxsjwq"
                ],
                "isAddress": true,
                "value": "254748012"
            }
        ],
        "vout": [
            {
                "value": "254735811",
                "n": 0,
                "spent": true,
                "hex": "0020a33ada16668a1538f221b5e5b3a903df0dca490102faba0217ad4516b3dc7117",
                "addresses": [
                    "ltc1q5vad59nx3g2n3u3pkhjm82grmuxu5jgpqtat5qsh44z3dv7uwytsln4fmg"
                ],
                "isAddress": true
            }
        ],
        "blockHash": "4f6100f35fdb1c962c99333f2faa1aa0cb6cd1be1961042c9901b69d4e90372d",
        "blockHeight": 3155663,
        "confirmations": 882,
        "blockTime": 1786080536,
        "size": 203,
        "vsize": 122,
        "value": "254735811",
        "valueIn": "254748012",
        "fees": "12201",
        "hex": "010000000001011d50e9da9d0db31f8ec4faa7b2a147cc2b3bdf4ed2f359bcd5e34423bd6adafb0000000000ffffffff01c3f52e0f00000000220020a33ada16668a1538f221b5e5b3a903df0dca490102faba0217ad4516b3dc71170247304402204c2ee985ed230cfc53ef87d07b48e1c300449fa561bfa18e2adc5f37e239470202206b105e2fb7dd7e87cc0d60df3396f8b045a92f20d3ab9d6523678e8ec6f2dec3012103188b28b6c964576a1c67c4ee4a82051baf1d88749b866713d3ddcacc961b223600000000"
    }
}

Get transaction specific

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{
  "id": "8",
  "method": "getTransactionSpecific",
  "params": {
    "txid": "97783dd7e6ceefe3590cff4dfa8d1e5910330ab792e9a80097aa730a2c8917b7"
  }
}

Response: 200

Copied!
{
    "id": "8",
    "data": {
        "txid": "97783dd7e6ceefe3590cff4dfa8d1e5910330ab792e9a80097aa730a2c8917b7",
        "hash": "ecd216e7be4f3534402115e2dfc023a5835d60ab788b3e82e03e295f2e398f98",
        "version": 1,
        "size": 203,
        "vsize": 122,
        "weight": 485,
        "locktime": 0,
        "vin": [
            {
                "ismweb": false,
                "txid": "fbda6abd2344e3d5bc59f3d24edf3b2bcc47a1b2a7fac48e1fb30d9ddae9501d",
                "vout": 0,
                "scriptSig": {
                    "asm": "",
                    "hex": ""
                },
                "txinwitness": [
                    "304402204c2ee985ed230cfc53ef87d07b48e1c300449fa561bfa18e2adc5f37e239470202206b105e2fb7dd7e87cc0d60df3396f8b045a92f20d3ab9d6523678e8ec6f2dec301",
                    "03188b28b6c964576a1c67c4ee4a82051baf1d88749b866713d3ddcacc961b2236"
                ],
                "sequence": 4294967295
            }
        ],
        "vout": [
            {
                "ismweb": false,
                "value": 2.54735811,
                "n": 0,
                "scriptPubKey": {
                    "asm": "0 a33ada16668a1538f221b5e5b3a903df0dca490102faba0217ad4516b3dc7117",
                    "hex": "0020a33ada16668a1538f221b5e5b3a903df0dca490102faba0217ad4516b3dc7117",
                    "reqSigs": 1,
                    "type": "witness_v0_scripthash",
                    "addresses": [
                        "ltc1q5vad59nx3g2n3u3pkhjm82grmuxu5jgpqtat5qsh44z3dv7uwytsln4fmg"
                    ]
                }
            }
        ],
        "hex": "010000000001011d50e9da9d0db31f8ec4faa7b2a147cc2b3bdf4ed2f359bcd5e34423bd6adafb0000000000ffffffff01c3f52e0f00000000220020a33ada16668a1538f221b5e5b3a903df0dca490102faba0217ad4516b3dc71170247304402204c2ee985ed230cfc53ef87d07b48e1c300449fa561bfa18e2adc5f37e239470202206b105e2fb7dd7e87cc0d60df3396f8b045a92f20d3ab9d6523678e8ec6f2dec3012103188b28b6c964576a1c67c4ee4a82051baf1d88749b866713d3ddcacc961b223600000000",
        "blockhash": "4f6100f35fdb1c962c99333f2faa1aa0cb6cd1be1961042c9901b69d4e90372d",
        "confirmations": 882,
        "time": 1786080536,
        "blocktime": 1786080536
    }
}

Estimate fee

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{"id":"9","method":"estimateFee","params":{"blocks":[2,6]}}

Response: 200

Copied!
{
    "id": "9",
    "data": [
        {
            "feePerUnit": "998"
        },
        {
            "feePerUnit": "998"
        }
    ]
}

Get long term fee rate

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{"id":"10","method":"longTermFeeRate","params":{}}

Response: 200

Copied!
{
    "id": "10",
    "data": {
        "feePerUnit": "997",
        "blocks": 1008
    }
}

Get block filter

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{
  "id": "11",
  "method": "getBlockFilter",
  "params": {
    "scriptType": "",
    "blockHash": "d7ecc0dfa98b3d72b01bcec79d414bf0cad9fa75da6021f99d60eeca34503525"
  }
}

Response: 200

Copied!
{
    "id": "11",
    "data": {
        "P": 0,
        "M": 1,
        "zeroedKey": false,
        "blockFilter": ""
    }
}

Compact block filters are not built on this endpoint, so blockFilter comes back empty and P is 0. Send scriptType empty, as no script type is configured.

Get mempool filters

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{"id":"12","method":"getMempoolFilters","params":{"scriptType":"","mempool":true}}

Response: 200

Copied!
{
    "id": "12",
    "data": {
        "P": 0,
        "M": 1,
        "zeroedKey": false,
        "entries": {}
    }
}

Mempool filters are not built on this endpoint, so entries comes back empty.

Send transaction

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{"id":"13","method":"sendTransaction","params":{"hex":"<signed raw transaction hex>"}}

Response: 200

Copied!
{
    "id": "13",
    "data": {
        "result": "97783dd7e6ceefe3590cff4dfa8d1e5910330ab792e9a80097aa730a2c8917b7"
    }
}

A transaction the backend rejects returns an error object instead, for example {"id": "13", "data": {"error": {"message": "-22: TX decode failed. Make sure the tx has at least one input."}}}.

Get fiat rates for timestamps

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{
  "id": "14",
  "method": "getFiatRatesForTimestamps",
  "params": {
    "timestamps": [
      1785992400
    ],
    "currencies": [
      "usd"
    ]
  }
}

Response: 200

Copied!
{
    "id": "14",
    "data": {
        "error": {
            "message": "No tickers found"
        }
    }
}

Fiat rates are not configured on this endpoint, so this method returns an error.

Get fiat rates for tickers list

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{"id":"15","method":"getFiatRatesTickersList","params":{"timestamp":1785992400}}

Response: 200

Copied!
{
    "id": "15",
    "data": {
        "error": {
            "message": "No tickers found"
        }
    }
}

Fiat rates are not configured on this endpoint, so this method returns an error.

Get current fiat rates

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{"id":"16","method":"getCurrentFiatRates","params":{"currencies":["usd"]}}

Response: 200

Copied!
{
    "id": "16",
    "data": {
        "error": {
            "message": "No tickers found!"
        }
    }
}

Fiat rates are not configured on this endpoint, so this method returns an error.

Subscribe new block

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{"id":"17","method":"subscribeNewBlock","params":{}}

Response: 200

Copied!
{
    "id": "17",
    "data": {
        "subscribed": true
    }
}

Unsubscribe new block

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{"id":"18","method":"unsubscribeNewBlock","params":{}}

Response: 200

Copied!
{
    "id": "18",
    "data": {
        "subscribed": false
    }
}

Subscribe new transaction

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{"id":"19","method":"subscribeNewTransaction","params":{}}

Response: 200

Copied!
{
    "id": "19",
    "data": {
        "subscribed": true
    }
}

Unsubscribe new transaction

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{"id":"20","method":"unsubscribeNewTransaction","params":{}}

Response: 200

Copied!
{
    "id": "20",
    "data": {
        "subscribed": false
    }
}

Subscribe address

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{
  "id": "21",
  "method": "subscribeAddresses",
  "params": {
    "addresses": [
      "ltc1q5vad59nx3g2n3u3pkhjm82grmuxu5jgpqtat5qsh44z3dv7uwytsln4fmg"
    ]
  }
}

Response: 200

Copied!
{
    "id": "21",
    "data": {
        "subscribed": true
    }
}

Optional parameter newBlockTxs (boolean, default false): when true, the subscription also publishes confirmed transactions for the subscribed addresses as new blocks are connected. Without it only mempool transactions are delivered, so transactions that land straight in a block are never announced.

Unsubscribe address

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{"id":"22","method":"unsubscribeAddresses","params":{}}

Response: 200

Copied!
{
    "id": "22",
    "data": {
        "subscribed": false
    }
}

Subscribe new fiat rates

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{"id":"23","method":"subscribeFiatRates","params":{"currency":"usd"}}

Response: 200

Copied!
{
    "id": "23",
    "data": {
        "subscribed": true
    }
}

Unsubscribe new fiat rates

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{"id":"24","method":"unsubscribeFiatRates","params":{}}

Response: 200

Copied!
{
    "id": "24",
    "data": {
        "subscribed": false
    }
}

Get block

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{"id":"25","method":"getBlock","params":{"id":"3155670","page":1}}

Response: 200

Copied!
{
    "id": "25",
    "data": {
        "error": {
            "message": "Not supported"
        }
    }
}

Not supported on this endpoint. This method requires the extended index, which is not enabled.

Get block filters batch

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{
  "id": "26",
  "method": "getBlockFiltersBatch",
  "params": {
    "scriptType": "",
    "bestKnownBlockHash": "d7ecc0dfa98b3d72b01bcec79d414bf0cad9fa75da6021f99d60eeca34503525",
    "pageSize": 2
  }
}

Response: 200

Copied!
{
    "id": "26",
    "data": {
        "error": {
            "message": "Not supported"
        }
    }
}

Not supported on this endpoint. Compact block filters are not built.

Get contract info

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{
  "id": "27",
  "method": "getContractInfo",
  "params": {
    "contract": "0x0000000000000000000000000000000000000001"
  }
}

Response: 200

Copied!
{
    "id": "27",
    "data": {
        "error": {
            "message": "getContractInfo is not supported on this coin"
        }
    }
}

Available on Ethereum-type networks only. This network has no contract layer.

RPC call

Copied!
wss://ltc.nownodes.io/wss/{{api_key}}

Body

Copied!
{"id":"28","method":"rpcCall","params":{"method":"getblockcount","params":[]}}

Response: 200

Copied!
{
    "id": "28",
    "data": {
        "error": {
            "message": "not supported"
        }
    }
}

Available on Ethereum-type networks only.