LTC-Testnet Blockbook WSS

Get Info

wss://ltcbook-testnet.nownodes.io/wss/{{api_key}}

Body

{"id":"2","method":"getInfo","params":{}}	

Response: 200

{
    "id": "2",
    "data": {
        "name": "Litecoin",
        "shortcut": "LTC",
        "decimals": 8,
        "version": "devel",
        "bestHeight": 2670062,
        "bestHash": "935910046240ec4af48d6d3fa7faa3f93a1237d544f83a309a36fab33ea47447",
        "block0Hash": "12a765e31ffd4059bada1e25190f6e98c99d9714d334efa41a195a7e7e04bfe2",
        "testnet": false,
        "backend": {
            "version": "210300",
            "subversion": "/LitecoinCore:0.21.3/"
        }
    }
}

Ping

wss://ltcbook-testnet.nownodes.io/wss/{{api_key}}

Body

{"id":"3","method":"ping","params":{}}	

Response: 200

{
    "id": "3",
    "data": {}
}

Get block hash

wss://ltcbook-testnet.nownodes.io/wss/{{api_key}}

Body

{"id":"4","method":"getBlockHash","params":{"height":100000}}

Response: 200

{
    "id": "4",
    "data": {
        "hash": "e11049dfa5858be3809f285685e12a5d6f84b936b0f8e8272b5363bf3946ce60"
    }
}

Get account info

wss://ltcbook-testnet.nownodes.io/wss/{{api_key}}

Body

{
  "id": "5",
  "method": "getAccountInfo",
  "params": {
    "descriptor": "bc1qrhsext2jjaczc26etu58fry28ycatznn2zv706",
    "details": "basic",
    "tokens": "derived",
    "page": null,
    "pageSize": 10,
    "from": null,
    "to": null,
    "contractFilter": ""
  }
}	

Response: 200

{
    "id": "5",
    "data": {
        "address": "ltc1qrhsext2jjaczc26etu58fry28ycatznnw7k6h2",
        "balance": "0",
        "totalReceived": "0",
        "totalSent": "0",
        "unconfirmedBalance": "0",
        "unconfirmedTxs": 0,
        "txs": 0
    }
}

Get balance history

wss://ltcbook-testnet.nownodes.io/wss/{{api_key}}

Body

{
  "id": "7",
  "method": "getBalanceHistory",
  "params": {
    "descriptor": "ltc1qnhc6vhmharlxrldavl272efruvre7z7d0zfkqv",
    "from": null,
    "to": null,
    "currencies": [
      ""
    ],
    "groupBy": null
  }
}

Response: 200

{
    "id": "7",
    "data": [
        {
            "time": 1713430800,
            "txs": 1,
            "received": "169994800",
            "sent": "0",
            "sentToSelf": "0"
        },
        {
            "time": 1713441600,
            "txs": 1,
            "received": "0",
            "sent": "169994800",
            "sentToSelf": "0"
        }
    ]
}

Get transaction

wss://ltcbook-testnet.nownodes.io/wss/{{api_key}}

Body

{"id":"9","method":"getTransaction","params":{"txid":"52b8725740302ff7d44e645f378ed6e42e63ccc71bb430001d942064d73219e5"}}	

Response: 200

{
    "id": "9",
    "data": {
        "txid": "52b8725740302ff7d44e645f378ed6e42e63ccc71bb430001d942064d73219e5",
        "version": 2,
        "lockTime": 2670061,
        "vin": [
            {
                "txid": "426b76cbcb6d9701abf19b8899bdaa36be952049cda762b8b40f994aea9f0df2",
                "vout": 1,
                "sequence": 4294967294,
                "n": 0,
                "addresses": [
                    "ltc1qnhc6vhmharlxrldavl272efruvre7z7d0zfkqv"
                ],
                "isAddress": true,
                "value": "169994800"
            }
        ],
        "vout": [
            {
                "value": "24713303",
                "n": 0,
                "hex": "a914752e841bd9d0bb420765d9db5e094646ac0d220c87",
                "addresses": [
                    "MJam1sC1oNvTWejvtNYwjN9jv4p1WT9Mou"
                ],
                "isAddress": true
            },
            {
                "value": "145238897",
                "n": 1,
                "hex": "0014dad87e018e78a7a9078a04b569b87cd6e97aca6e",
                "addresses": [
                    "ltc1qmtv8uqvw0zn6jpu2qj6knwru6m5h4jnw03sj6y"
                ],
                "isAddress": true
            }
        ],
        "blockHash": "935910046240ec4af48d6d3fa7faa3f93a1237d544f83a309a36fab33ea47447",
        "blockHeight": 2670062,
        "confirmations": 3,
        "blockTime": 1713444376,
        "value": "169952200",
        "valueIn": "169994800",
        "fees": "42600",
        "hex": "02000000000101f20d9fea4a990fb4b862a7cd492095be36aabd99889bf1ab01976dcbcb766b420100000000feffffff02571879010000000017a914752e841bd9d0bb420765d9db5e094646ac0d220c87712ba80800000000160014dad87e018e78a7a9078a04b569b87cd6e97aca6e0247304402206902e4a39787f2c656015eb72efb1b24dbc278d30e5a5381f7afaba6fe287605022032f7a4cc91c60eed90e04fb45170f374811eedc7c761734baf356d6b122a22450121031565b1094b279fff8f3a92bf6e9056c0c10a1829050cddfc5085468c9f882f79edbd2800"
    }
}

Get transaction specific

wss://ltcbook-testnet.nownodes.io/wss/{{api_key}}

Body

{"id":"10","method":"getTransactionSpecific","params":{"txid":"52b8725740302ff7d44e645f378ed6e42e63ccc71bb430001d942064d73219e5"}}	

Response: 200

{
    "id": "10",
    "data": {
        "txid": "52b8725740302ff7d44e645f378ed6e42e63ccc71bb430001d942064d73219e5",
        "hash": "942ff4c7d67f9e4d2774b02ee102f711256e737dd12bb83f0564debf5af0c960",
        "version": 2,
        "size": 223,
        "vsize": 142,
        "weight": 565,
        "locktime": 2670061,
        "vin": [
            {
                "ismweb": false,
                "txid": "426b76cbcb6d9701abf19b8899bdaa36be952049cda762b8b40f994aea9f0df2",
                "vout": 1,
                "scriptSig": {
                    "asm": "",
                    "hex": ""
                },
                "txinwitness": [
                    "304402206902e4a39787f2c656015eb72efb1b24dbc278d30e5a5381f7afaba6fe287605022032f7a4cc91c60eed90e04fb45170f374811eedc7c761734baf356d6b122a224501",
                    "031565b1094b279fff8f3a92bf6e9056c0c10a1829050cddfc5085468c9f882f79"
                ],
                "sequence": 4294967294
            }
        ],
        "vout": [
            {
                "ismweb": false,
                "value": 0.24713303,
                "n": 0,
                "scriptPubKey": {
                    "asm": "OP_HASH160 752e841bd9d0bb420765d9db5e094646ac0d220c OP_EQUAL",
                    "hex": "a914752e841bd9d0bb420765d9db5e094646ac0d220c87",
                    "reqSigs": 1,
                    "type": "scripthash",
                    "addresses": [
                        "MJam1sC1oNvTWejvtNYwjN9jv4p1WT9Mou"
                    ]
                }
            },
            {
                "ismweb": false,
                "value": 1.45238897,
                "n": 1,
                "scriptPubKey": {
                    "asm": "0 dad87e018e78a7a9078a04b569b87cd6e97aca6e",
                    "hex": "0014dad87e018e78a7a9078a04b569b87cd6e97aca6e",
                    "reqSigs": 1,
                    "type": "witness_v0_keyhash",
                    "addresses": [
                        "ltc1qmtv8uqvw0zn6jpu2qj6knwru6m5h4jnw03sj6y"
                    ]
                }
            }
        ],
        "hex": "02000000000101f20d9fea4a990fb4b862a7cd492095be36aabd99889bf1ab01976dcbcb766b420100000000feffffff02571879010000000017a914752e841bd9d0bb420765d9db5e094646ac0d220c87712ba80800000000160014dad87e018e78a7a9078a04b569b87cd6e97aca6e0247304402206902e4a39787f2c656015eb72efb1b24dbc278d30e5a5381f7afaba6fe287605022032f7a4cc91c60eed90e04fb45170f374811eedc7c761734baf356d6b122a22450121031565b1094b279fff8f3a92bf6e9056c0c10a1829050cddfc5085468c9f882f79edbd2800",
        "blockhash": "935910046240ec4af48d6d3fa7faa3f93a1237d544f83a309a36fab33ea47447",
        "confirmations": 3,
        "time": 1713444376,
        "blocktime": 1713444376
    }
}

Estimate fee

wss://ltcbook-testnet.nownodes.io/wss/{{api_key}}

Body

{"id":"11","method":"estimateFee","params":{"blocks":[2,5,10,20]}}	

Response: 200

{
    "id": "11",
    "data": [
        {
            "feePerUnit": "2010"
        },
        {
            "feePerUnit": "996"
        },
        {
            "feePerUnit": "996"
        },
        {
            "feePerUnit": "996"
        }
    ]
}

Send transaction

wss://ltcbook-testnet.nownodes.io/wss/{{api_key}}

Body

{"id":"1","method":"sendTransaction","params":{"hex":"010000000001019d64f0c72a0d206001decbffaa722eb1044534c74eee7a5df8318e42a4323ec10000000017160014550da1f5d25a9dae2eafd6902b4194c4c6500af6ffffffff02809698000000000017a914cd668d781ece600efa4b2404dc91fd26b8b8aed8870553d7360000000017a914246655bdbd54c7e477d0ea2375e86e0db2b8f80a8702473044022076aba4ad559616905fa51d4ddd357fc1fdb428d40cb388e042cdd1da4a1b7357022011916f90c712ead9a66d5f058252efd280439ad8956a967e95d437d246710bc9012102a80a5964c5612bb769ef73147b2cf3c149bc0fd4ecb02f8097629c94ab013ffd00000000"}}		

Response: 200

{
    "id": "1",
    "data": {
        "result": "622ed4e93b25fdb699115ed5a698f410ddeddd7aa7d5e835762905425d2a6de3"
    }
}

Get fiat rates for timestamps

wss://ltcbook-testnet.nownodes.io/wss/{{api_key}}

Body

{"id":"13","method":"getFiatRatesForTimestamps","params":{"timestamps":[1575288000,1575550800],"currencies":[""]}}	

Response: 200

{
    "id": "13",
    "data": {
        "tickers": [
            {
                "ts": 1575331200,
                "rates": {
                    "aed": 26847.354,
                    "ars": 437688.9,
                    "aud": 10720.282,
                    "bdt": 620651.06,
                    "bhd": 2755.8298,
                    "bmd": 7308.9824,
                    "brl": 30870.219,
                    "btc": 0.002072684,
                    "cad": 9725.683,
                    "chf": 7246.6074,
                    "clp": 5874949.5,
                    "cny": 51450.12,
                    "czk": 168583.5,
                    "dkk": 49300.82,
                    "eth": 0.10173308,
                    "eur": 6598.5054,
                    "gbp": 5648.659,
                    "hkd": 57218.734,
                    "huf": 2192127.2,
                    "idr": 103259750,
                    "ils": 25384.826,
                    "inr": 523579.7,
                    "jpy": 796873.3,
                    "krw": 8659682,
                    "kwd": 2222.5447,
                    "lkr": 1325450.1,
                    "mmk": 11013702,
                    "mxn": 143120.11,
                    "myr": 30542.775,
                    "ngn": 2650395,
                    "nok": 67026.26,
                    "nzd": 11248.225,
                    "php": 372977.38,
                    "pkr": 1134879.8,
                    "pln": 28290.484,
                    "rub": 469282.72,
                    "sar": 27408.604,
                    "sek": 69754.52,
                    "sgd": 9989.135,
                    "thb": 221205.83,
                    "try": 41971.1,
                    "twd": 222543.89,
                    "uah": 175139.44,
                    "usd": 15.143119,
                    "vef": 1816191900,
                    "vnd": 168348930,
                    "zar": 106333.266
                }
            },
            {
                "ts": 1575590400,
                "rates": {
                    "aed": 27085.377,
                    "ars": 442168.88,
                    "aud": 10791.464,
                    "bdt": 625776.9,
                    "bhd": 2780.3438,
                    "bmd": 7373.7827,
                    "brl": 30865.916,
                    "btc": 0.002118513,
                    "cad": 9716.802,
                    "chf": 7279.1255,
                    "clp": 5775146.5,
                    "cny": 51946.824,
                    "czk": 169634.61,
                    "dkk": 49610.07,
                    "eth": 0.10593553,
                    "eur": 6640.0913,
                    "gbp": 5603.2856,
                    "hkd": 57728.582,
                    "huf": 2196354.8,
                    "idr": 103020920,
                    "ils": 25550.23,
                    "inr": 525308.25,
                    "jpy": 801761.2,
                    "krw": 8760865,
                    "kwd": 2239.248,
                    "lkr": 1337502.5,
                    "mmk": 11056767,
                    "mxn": 142815.23,
                    "myr": 30770.795,
                    "ngn": 2672996.2,
                    "nok": 67363.266,
                    "nzd": 11266.284,
                    "php": 374521.56,
                    "pkr": 1143235,
                    "pln": 28392.588,
                    "rub": 469697.4,
                    "sar": 27651.521,
                    "sek": 69972.03,
                    "sgd": 10033.159,
                    "thb": 224015.52,
                    "try": 42391.875,
                    "twd": 224384.2,
                    "uah": 175796.9,
                    "usd": 15.646635,
                    "vef": 1832293900,
                    "vnd": 170593170,
                    "zar": 107953.65
                }
            }
        ]
    }
}

Get fiat rates for tickers list

wss://ltcbook-testnet.nownodes.io/wss/{{api_key}}

Body

{"id":"15","method":"getFiatRatesTickersList","params":{"timestamp":1676591569}}

Response: 200

{
    "id": "15",
    "data": {
        "ts": 1676592000,
        "available_currencies": [
            "aed",
            "ars",
            "aud",
            "bdt",
            "bhd",
            "bmd",
            "brl",
            "btc",
            "cad",
            "chf",
            "clp",
            "cny",
            "czk",
            "dkk",
            "eth",
            "eur",
            "gbp",
            "hkd",
            "huf",
            "idr",
            "ils",
            "inr",
            "jpy",
            "krw",
            "kwd",
            "lkr",
            "mmk",
            "mxn",
            "myr",
            "ngn",
            "nok",
            "nzd",
            "php",
            "pkr",
            "pln",
            "rub",
            "sar",
            "sek",
            "sgd",
            "thb",
            "try",
            "twd",
            "uah",
            "usd",
            "vef",
            "vnd",
            "zar"
        ]
    }
}

Get current fiat rates

wss://ltcbook-testnet.nownodes.io/wss/{{api_key}}

Body

{"id":"6","method":"getCurrentFiatRates","params":{"currencies":[""]}}	

Response: 200

{
    "id": "6",
    "data": {
        "ts": 1712755809,
        "rates": {
            "aed": 248263,
            "ars": 58495340,
            "aud": 103415,
            "bdt": 7428079,
            "bhd": 25486,
            "bmd": 67604,
            "brl": 342135,
            "btc": 1,
            "cad": 92305,
            "chf": 61546,
            "clp": 64545852,
            "cny": 489064,
            "czk": 1594837,
            "dkk": 468399,
            "eth": 19.7215,
            "eur": 62792,
            "gbp": 53701,
            "hkd": 529593,
            "huf": 24579174,
            "idr": 1077804000,
            "ils": 252533,
            "inr": 5637349,
            "jpy": 10308056,
            "krw": 92173510,
            "kwd": 20789,
            "lkr": 20190384,
            "mmk": 141962900,
            "mxn": 1112681,
            "myr": 320982,
            "ngn": 84230660,
            "nok": 728548,
            "nzd": 112551,
            "php": 3821156,
            "pkr": 18790116,
            "pln": 267799,
            "rub": 6306302,
            "sar": 253591,
            "sek": 723243,
            "sgd": 91391,
            "thb": 2477468,
            "try": 2181006,
            "twd": 2174029,
            "uah": 2633635,
            "usd": 67604,
            "vef": 6769.14,
            "vnd": 1686505500,
            "zar": 1263524
        }
    }
}

Subscribe new block

wss://ltcbook-testnet.nownodes.io/wss/{{api_key}}

Body

{"id":"16","method":"subscribeNewBlock","params":{}}

Response: 200

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

Unsubscribe new block

wss://ltcbook-testnet.nownodes.io/wss/{{api_key}}

Body

{"id":"16","method":"unsubscribeNewBlock","params":{}}	

Response: 200

{
    "id": "16",
    "data": {
        "subscribed": false
    }
}

Subscribe new transaction

wss://ltcbook-testnet.nownodes.io/wss/{{api_key}}

Body

{"id":"17","method":"subscribeNewTransaction","params":{}}	

Response: 200

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

Unsubscribe new transaction

wss://ltcbook-testnet.nownodes.io/wss/{{api_key}}

Body

{"id":"17","method":"unsubscribeNewTransaction","params":{}}	

Response: 200

{
    "id": "17",
    "data": {
        "subscribed": false
    }
}

Subscribe address

wss://ltcbook-testnet.nownodes.io/wss/{{api_key}}

Body

{"id":"18","method":"subscribeAddresses","params":{"addresses":["bc1qrhsext2jjaczc26etu58fry28ycatznn2zv706","bc1pvan3ka9p3fqln8277hp0m9qts4h7qpcupvz3z2s0v9687tfulcfs9aydm5"]}}	

Response: 200

{
    "id": "18",
    "data": {
        "subscribed": true
    }
}

Unsubscribe address

wss://ltcbook-testnet.nownodes.io/wss/{{api_key}}

Body

{"id":"18","method":"unsubscribeAddresses","params":{}}		

Response: 200

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

Subscribe new fiat rates

wss://ltcbook-testnet.nownodes.io/wss/{{api_key}}

Body

{"id":"19","method":"subscribeFiatRates","params":{"currency":"usd"}}		

Response: 200

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

Unsubscribe new fiat rates

wss://ltcbook-testnet.nownodes.io/wss/{{api_key}}

Body

{"id":"19","method":"unsubscribeFiatRates","params":{}}		

Response: 200

{
    "id": "19",
    "data": {
        "subscribed": false
    }
}

Last updated