Home

WSS 0.6.0

Get Info

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

Body

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

Response: 200

Copied!
{
    "id": "1",
    "data": {
        "name": "Litecoin Testnet",
        "shortcut": "tLTC",
        "network": "tLTC",
        "decimals": 8,
        "version": "0.6.0",
        "bestHeight": 4853876,
        "bestHash": "9f8d672817d7b0466ee41aa881ab40c1b8e72ce1ee571d895de3b91e23b550ad",
        "block0Hash": "4966625a4b2851d9fdee139e56211a0d88575f59ed816ff5e6a63deb4e3e29a0",
        "testnet": true,
        "backend": {
            "version": "210506",
            "subversion": "/LitecoinCore:0.21.5.6/"
        }
    }
}

Ping

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

Body

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

Response: 200

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

Get block hash

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

Body

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

Response: 200

Copied!
{
    "id": "3",
    "data": {
        "hash": "06dcccae9764d208e9f1200306caab3e4d8b0e3d3e5aec6a251a8b07d4e6301f"
    }
}

Get account info

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

Body

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

Response: 200

Copied!
{
    "id": "4",
    "data": {
        "address": "tltc1q9mh0c029ck0c62r8q2a983c30lzh9pqsdzwqwm",
        "balance": "40551516",
        "totalReceived": "634424814",
        "totalSent": "593873298",
        "unconfirmedTxs": 0,
        "txs": 375
    }
}

Get account UTXO

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

Body

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

Response: 200

Copied!
{
    "id": "5",
    "data": [
        {
            "txid": "bca0c3c8b5a0ebf48c605f78ab3457d7d06435fa635c1adbf28aa689e236c440",
            "vout": 0,
            "value": "1000000",
            "height": 4853864,
            "confirmations": 13
        },
        {
            "txid": "ae48d5eccfe9640e06bb9bf86da103f1756b12a39bf3e457622e25cace7d1251",
            "vout": 0,
            "value": "1000000",
            "height": 4853629,
            "confirmations": 248
        }
    ]
}

Get balance history

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

Body

Copied!
{
  "id": "6",
  "method": "getBalanceHistory",
  "params": {
    "descriptor": "tltc1q9mh0c029ck0c62r8q2a983c30lzh9pqsdzwqwm",
    "from": 1785826800,
    "to": 1785834000
  }
}

Response: 200

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

Get transaction

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

Body

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

Response: 200

Copied!
{
    "id": "7",
    "data": {
        "txid": "c6351bdb042153d4a817da2a3d9b2c9a3f601e80426ef851a7f4bfdbd697fd8c",
        "version": 2,
        "vin": [
            {
                "txid": "6934cee3941cf3826e0df3e421d62b7d708af508c509bd613b2853658ec4d4b7",
                "sequence": 4294967295,
                "n": 0,
                "addresses": [
                    "mmfG5PQ3CqkkvPoq2DoeW6VXMiiL9uhM2H"
                ],
                "isAddress": true,
                "value": "3000000",
                "hex": "47304402205948d845c6027e5ce49a182aeb19d07e54034e7e920025761cf71604f350fc790220015c57d8008a558cb2ebe90e0c182dfef203d0a8896b9609b5da620c7ef7571b01210246d3efb666e39f43242f50048df9baf47326e6e918ae20fa79f8ff0491a415aa"
            }
        ],
        "vout": [
            {
                "value": "2998327",
                "n": 0,
                "hex": "00142eeefc3d45c59f8d286702ba53c7117fc5728410",
                "addresses": [
                    "tltc1q9mh0c029ck0c62r8q2a983c30lzh9pqsdzwqwm"
                ],
                "isAddress": true
            }
        ],
        "blockHash": "8ab01f1c1dccc91ded442518f34e8f1223dffbbcbe6a76825ad241a01ce681e9",
        "blockHeight": 4826194,
        "confirmations": 27683,
        "blockTime": 1785837601,
        "size": 188,
        "vsize": 188,
        "value": "2998327",
        "valueIn": "3000000",
        "fees": "1673",
        "hex": "0200000001b7d4c48e6553283b61bd09c508f58a707d2bd621e4f30d6e82f31c94e3ce3469000000006a47304402205948d845c6027e5ce49a182aeb19d07e54034e7e920025761cf71604f350fc790220015c57d8008a558cb2ebe90e0c182dfef203d0a8896b9609b5da620c7ef7571b01210246d3efb666e39f43242f50048df9baf47326e6e918ae20fa79f8ff0491a415aaffffffff0137c02d00000000001600142eeefc3d45c59f8d286702ba53c7117fc572841000000000"
    }
}

Get transaction specific

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

Body

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

Response: 200

Copied!
{
    "id": "8",
    "data": {
        "txid": "c6351bdb042153d4a817da2a3d9b2c9a3f601e80426ef851a7f4bfdbd697fd8c",
        "hash": "c6351bdb042153d4a817da2a3d9b2c9a3f601e80426ef851a7f4bfdbd697fd8c",
        "version": 2,
        "size": 188,
        "vsize": 188,
        "weight": 752,
        "locktime": 0,
        "vin": [
            {
                "ismweb": false,
                "txid": "6934cee3941cf3826e0df3e421d62b7d708af508c509bd613b2853658ec4d4b7",
                "vout": 0,
                "scriptSig": {
                    "asm": "304402205948d845c6027e5ce49a182aeb19d07e54034e7e920025761cf71604f350fc790220015c57d8008a558cb2ebe90e0c182dfef203d0a8896b9609b5da620c7ef7571b[ALL] 0246d3efb666e39f43242f50048df9baf47326e6e918ae20fa79f8ff0491a415aa",
                    "hex": "47304402205948d845c6027e5ce49a182aeb19d07e54034e7e920025761cf71604f350fc790220015c57d8008a558cb2ebe90e0c182dfef203d0a8896b9609b5da620c7ef7571b01210246d3efb666e39f43242f50048df9baf47326e6e918ae20fa79f8ff0491a415aa"
                },
                "sequence": 4294967295
            }
        ],
        "vout": [
            {
                "ismweb": false,
                "value": 0.02998327,
                "n": 0,
                "scriptPubKey": {
                    "asm": "0 2eeefc3d45c59f8d286702ba53c7117fc5728410",
                    "hex": "00142eeefc3d45c59f8d286702ba53c7117fc5728410",
                    "reqSigs": 1,
                    "type": "witness_v0_keyhash",
                    "addresses": [
                        "tltc1q9mh0c029ck0c62r8q2a983c30lzh9pqsdzwqwm"
                    ]
                }
            }
        ],
        "hex": "0200000001b7d4c48e6553283b61bd09c508f58a707d2bd621e4f30d6e82f31c94e3ce3469000000006a47304402205948d845c6027e5ce49a182aeb19d07e54034e7e920025761cf71604f350fc790220015c57d8008a558cb2ebe90e0c182dfef203d0a8896b9609b5da620c7ef7571b01210246d3efb666e39f43242f50048df9baf47326e6e918ae20fa79f8ff0491a415aaffffffff0137c02d00000000001600142eeefc3d45c59f8d286702ba53c7117fc572841000000000",
        "blockhash": "8ab01f1c1dccc91ded442518f34e8f1223dffbbcbe6a76825ad241a01ce681e9",
        "confirmations": 27684,
        "time": 1785837601,
        "blocktime": 1785837601
    }
}

Estimate fee

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

Body

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

Response: 200

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

Get long term fee rate

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

Body

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

Response: 200

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

Get block filter

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

Body

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

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-testnet.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-testnet.nownodes.io/wss/{{api_key}}

Body

Copied!
{
  "id": "13",
  "method": "sendTransaction",
  "params": {
    "hex": "0200000001b7d4c48e6553283b61bd09c508f58a707d2bd621e4f30d6e82f31c94e3ce3469000000006a47304402205948d845c6027e5ce49a182aeb19d07e54034e7e920025761cf71604f350fc790220015c57d8008a558cb2ebe90e0c182dfef203d0a8896b9609b5da620c7ef7571b01210246d3efb666e39f43242f50048df9baf47326e6e918ae20fa79f8ff0491a415aaffffffff0137c02d00000000001600142eeefc3d45c59f8d286702ba53c7117fc572841000000000"
  }
}

Response: 200

Copied!
{
    "id": "13",
    "data": {
        "result": "c6351bdb042153d4a817da2a3d9b2c9a3f601e80426ef851a7f4bfdbd697fd8c"
    }
}

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-testnet.nownodes.io/wss/{{api_key}}

Body

Copied!
{
  "id": "14",
  "method": "getFiatRatesForTimestamps",
  "params": {
    "timestamps": [
      1785826800
    ],
    "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-testnet.nownodes.io/wss/{{api_key}}

Body

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

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-testnet.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-testnet.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-testnet.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-testnet.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-testnet.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-testnet.nownodes.io/wss/{{api_key}}

Body

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

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-testnet.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-testnet.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-testnet.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-testnet.nownodes.io/wss/{{api_key}}

Body

Copied!
{"id":"25","method":"getBlock","params":{"id":"4853866","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-testnet.nownodes.io/wss/{{api_key}}

Body

Copied!
{
  "id": "26",
  "method": "getBlockFiltersBatch",
  "params": {
    "scriptType": "",
    "bestKnownBlockHash": "06dcccae9764d208e9f1200306caab3e4d8b0e3d3e5aec6a251a8b07d4e6301f",
    "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-testnet.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-testnet.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.