Home

WSS 0.6.0

Get Info

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

Body

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

Response: 200

Copied!
{
    "id": "1",
    "data": {
        "name": "Dash",
        "shortcut": "DASH",
        "network": "DASH",
        "decimals": 8,
        "version": "0.6.0",
        "bestHeight": 2518313,
        "bestHash": "000000000000001a43a8e6ff405582ff3312674f225bdd6df6648a16d268262b",
        "block0Hash": "00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6",
        "testnet": false,
        "backend": {
            "version": "230107",
            "subversion": "/Dash Core:23.1.7(dashcore)/"
        }
    }
}

Ping

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

Body

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

Response: 200

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

Get block hash

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

Body

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

Response: 200

Copied!
{
    "id": "3",
    "data": {
        "hash": "0000000000000002f4e4070599fbc5dd6d0ed985f5e40a76526f977d7455f3c6"
    }
}

Get account info

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

Body

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

Response: 200

Copied!
{
    "id": "4",
    "data": {
        "address": "XdoaXjsFLnp2mcGVVWQR6PEEQPKKhk4aEV",
        "balance": "1010",
        "totalReceived": "6011672543",
        "totalSent": "6011671533",
        "unconfirmedTxs": 0,
        "txs": 900
    }
}

Get account UTXO

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

Body

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

Response: 200

Copied!
{
    "id": "5",
    "data": [
        {
            "txid": "398ef07a84c5267aae3bd0d0d7535fda9b4c67efe6981b5635bce74ae3a813d6",
            "vout": 0,
            "value": "1010",
            "height": 2515533,
            "confirmations": 2781
        }
    ]
}

Get balance history

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

Body

Copied!
{
  "id": "6",
  "method": "getBalanceHistory",
  "params": {
    "descriptor": "XdoaXjsFLnp2mcGVVWQR6PEEQPKKhk4aEV",
    "from": 1786082400,
    "to": 1786089600
  }
}

Response: 200

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

Get transaction

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

Body

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

Response: 200

Copied!
{
    "id": "7",
    "data": {
        "txid": "65f4d6e8e6a87a0c67a17a908731dd23c7ae9a38229cdcf5fb7b67f0aab7f665",
        "version": 1,
        "vin": [
            {
                "txid": "e66ff9b567bb8176ed65f5eea2c83801d09bbefba57336cb47311acc6615b19e",
                "vout": 21,
                "sequence": 4294967295,
                "n": 0,
                "addresses": [
                    "XdoaXjsFLnp2mcGVVWQR6PEEQPKKhk4aEV"
                ],
                "isAddress": true,
                "value": "14495349",
                "hex": "4730440220203a653d6295af1c06bcb52574acc96fd30ea1ffa9637ece7f269f9325fb0e50022053c3e21378b4924a80113088b13a5f775cb0bc74e8e36090675004d74797eee0012102ce387685d901544a9f0f0f3a492152196f9c1b086646343e1d80938ada3a7d67"
            }
        ],
        "vout": [
            {
                "value": "14495123",
                "n": 0,
                "spent": true,
                "spentTxId": "b98944658124a1b92ef6563fba4fd35022d8c0c0f28cdae190adf15f243a8b9f",
                "spentHeight": 2516775,
                "hex": "76a91496f349dc5ecacc35043c317053cdc8a15d92fbb588ac",
                "addresses": [
                    "XpSze1a7RSuVGr3ASeT6h3YwYm9SDMYTsh"
                ],
                "isAddress": true
            }
        ],
        "blockHash": "00000000000000043e7e373acf89a09c74e7b9e736468cbc47f6ef05bd5b4e5a",
        "blockHeight": 2516629,
        "confirmations": 1685,
        "blockTime": 1785910052,
        "size": 191,
        "value": "14495123",
        "valueIn": "14495349",
        "fees": "226",
        "hex": "01000000019eb11566cc1a3147cb3673a5fbbe9bd00138c8a2eef565ed7681bb67b5f96fe6150000006a4730440220203a653d6295af1c06bcb52574acc96fd30ea1ffa9637ece7f269f9325fb0e50022053c3e21378b4924a80113088b13a5f775cb0bc74e8e36090675004d74797eee0012102ce387685d901544a9f0f0f3a492152196f9c1b086646343e1d80938ada3a7d67ffffffff01932ddd00000000001976a91496f349dc5ecacc35043c317053cdc8a15d92fbb588ac00000000"
    }
}

Get transaction specific

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

Body

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

Response: 200

Copied!
{
    "id": "8",
    "data": {
        "txid": "65f4d6e8e6a87a0c67a17a908731dd23c7ae9a38229cdcf5fb7b67f0aab7f665",
        "version": 1,
        "type": 0,
        "size": 191,
        "locktime": 0,
        "vin": [
            {
                "txid": "e66ff9b567bb8176ed65f5eea2c83801d09bbefba57336cb47311acc6615b19e",
                "vout": 21,
                "scriptSig": {
                    "asm": "30440220203a653d6295af1c06bcb52574acc96fd30ea1ffa9637ece7f269f9325fb0e50022053c3e21378b4924a80113088b13a5f775cb0bc74e8e36090675004d74797eee0[ALL] 02ce387685d901544a9f0f0f3a492152196f9c1b086646343e1d80938ada3a7d67",
                    "hex": "4730440220203a653d6295af1c06bcb52574acc96fd30ea1ffa9637ece7f269f9325fb0e50022053c3e21378b4924a80113088b13a5f775cb0bc74e8e36090675004d74797eee0012102ce387685d901544a9f0f0f3a492152196f9c1b086646343e1d80938ada3a7d67"
                },
                "value": 0.14495349,
                "valueSat": 14495349,
                "address": "XdoaXjsFLnp2mcGVVWQR6PEEQPKKhk4aEV",
                "sequence": 4294967295
            }
        ],
        "vout": [
            {
                "value": 0.14495123,
                "valueSat": 14495123,
                "n": 0,
                "scriptPubKey": {
                    "asm": "OP_DUP OP_HASH160 96f349dc5ecacc35043c317053cdc8a15d92fbb5 OP_EQUALVERIFY OP_CHECKSIG",
                    "desc": "addr(XpSze1a7RSuVGr3ASeT6h3YwYm9SDMYTsh)#0n76cczm",
                    "hex": "76a91496f349dc5ecacc35043c317053cdc8a15d92fbb588ac",
                    "address": "XpSze1a7RSuVGr3ASeT6h3YwYm9SDMYTsh",
                    "type": "pubkeyhash"
                },
                "spentTxId": "b98944658124a1b92ef6563fba4fd35022d8c0c0f28cdae190adf15f243a8b9f",
                "spentIndex": 0,
                "spentHeight": 2516775
            }
        ],
        "hex": "01000000019eb11566cc1a3147cb3673a5fbbe9bd00138c8a2eef565ed7681bb67b5f96fe6150000006a4730440220203a653d6295af1c06bcb52574acc96fd30ea1ffa9637ece7f269f9325fb0e50022053c3e21378b4924a80113088b13a5f775cb0bc74e8e36090675004d74797eee0012102ce387685d901544a9f0f0f3a492152196f9c1b086646343e1d80938ada3a7d67ffffffff01932ddd00000000001976a91496f349dc5ecacc35043c317053cdc8a15d92fbb588ac00000000",
        "blockhash": "00000000000000043e7e373acf89a09c74e7b9e736468cbc47f6ef05bd5b4e5a",
        "height": 2516629,
        "confirmations": 1685,
        "time": 1785910052,
        "blocktime": 1785910052,
        "instantlock": true,
        "instantlock_internal": false,
        "chainlock": true
    }
}

Estimate fee

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

Body

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

Response: 200

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

Get long term fee rate

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

Body

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

Response: 200

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

Get block filter

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

Body

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

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

Body

Copied!
{
  "id": "13",
  "method": "sendTransaction",
  "params": {
    "hex": "01000000019eb11566cc1a3147cb3673a5fbbe9bd00138c8a2eef565ed7681bb67b5f96fe6150000006a4730440220203a653d6295af1c06bcb52574acc96fd30ea1ffa9637ece7f269f9325fb0e50022053c3e21378b4924a80113088b13a5f775cb0bc74e8e36090675004d74797eee0012102ce387685d901544a9f0f0f3a492152196f9c1b086646343e1d80938ada3a7d67ffffffff01932ddd00000000001976a91496f349dc5ecacc35043c317053cdc8a15d92fbb588ac00000000"
  }
}

Response: 200

Copied!
{
    "id": "13",
    "data": {
        "result": "65f4d6e8e6a87a0c67a17a908731dd23c7ae9a38229cdcf5fb7b67f0aab7f665"
    }
}

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

Body

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

Body

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

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

Body

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

Response: 200

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

Subscribe address

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

Body

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

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

Body

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

Response: 200

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

Get block

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

Body

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

Response: 200

Copied!
{
    "id": "25",
    "data": {
        "page": 1,
        "totalPages": 1,
        "itemsOnPage": 10000,
        "hash": "0000000000000002f4e4070599fbc5dd6d0ed985f5e40a76526f977d7455f3c6",
        "previousBlockHash": "000000000000000c8cc1fe7ee5987235e5f635aa47f3d77726a1af88d54caa36",
        "nextBlockHash": "000000000000001c2c1b881229941713741fca10c613eb43f970ec7122242da1",
        "height": 2517735,
        "confirmations": 579,
        "size": 3778,
        "time": 1786084083,
        "version": 536870912,
        "merkleRoot": "cf44561cd8dca4916db04ac2da997625ad942e489798a4c54794972eba492bfd",
        "nonce": "3442612398",
        "bits": "192580f4",
        "difficulty": "114519343.678183",
        "txCount": 6,
        "txs": [
            {
                "txid": "59f33393aa0274575a42b8fcf83ccd5349926a067e2c264cd21816b0ff41c398",
                "vin": [
                    {
                        "n": 0,
                        "isAddress": false,
                        "value": "0"
                    }
                ],
                "vout": [
                    {
                        "value": "44260627",
                        "n": 0,
                        "spent": true,
                        "spentTxId": "1b346a69d3b888cae800bf1110eaa2bf7d7f12ea4487282f7c1f28f45d13aae6",
                        "spentIndex": 79,
                        "spentHeight": 2518181,
                        "addresses": [
                            "XjszN1jZJthEoaQDhGthRkaHL9AqaG3Vzw"
                        ],
                        "isAddress": true
                    },
                    {
                        "value": "49787579",
                        "n": 1,
                        "addresses": [],
                        "isAddress": false
                    }
                ],
                "blockHash": "0000000000000002f4e4070599fbc5dd6d0ed985f5e40a76526f977d7455f3c6",
                "blockHeight": 2517735,
                "confirmations": 579,
                "blockTime": 1786084083,
                "size": 688,
                "value": "177042507",
                "valueIn": "0",
                "fees": "0"
            },
            {
                "txid": "9b5cc12b23d1446d3edb8609684140c6e31e3d2201533a2918e0af8930c531e3",
                "vin": [
                    {
                        "txid": "25d87fbe47f7937fc40fc0fcb8e404b156622882f91a1cabcb9b1aaabf848f1a",
                        "vout": 3,
                        "n": 0,
                        "addresses": [
                            "XxHakoLDrRpC4tqLE19vKvRdix9AT6yQGS"
                        ],
                        "isAddress": true,
                        "value": "1000010"
                    },
                    {
                        "txid": "56d3724f02724374f655f68192cb0d9d747fca97a2f4b1a316963353ab343bc5",
                        "vout": 4,
                        "n": 1,
                        "addresses": [
                            "XmngxATXbzdF8wdHZz1vooY41M9XsRthaW"
                        ],
                        "isAddress": true,
                        "value": "1000010"
                    }
                ],
                "vout": [
                    {
                        "value": "1000010",
                        "n": 0,
                        "spent": true,
                        "spentTxId": "763c2890a6f5eb0640807fd7a6f067dec37340ad02ddf2dd50f396468bfe64c9",
                        "spentHeight": 2517740,
                        "addresses": [
                            "XdMnuqtFxsg9ETJ8J4ZLqbNu2TLCA9j4EA"
                        ],
                        "isAddress": true
                    },
                    {
                        "value": "1000010",
                        "n": 1,
                        "spent": true,
                        "spentTxId": "8de35d120d4262ba75fb6760cdeaaf9e4754d4b7a57abd43528da39dc13d3e6a",
                        "spentIndex": 4,
                        "spentHeight": 2517736,
                        "addresses": [
                            "XkKxKCB9BKMNPbthbmwKEDf3tfBy5QUAaC"
                        ],
                        "isAddress": true
                    }
                ],
                "blockHash": "0000000000000002f4e4070599fbc5dd6d0ed985f5e40a76526f977d7455f3c6",
                "blockHeight": 2517735,
                "confirmations": 579,
                "blockTime": 1786084083,
                "size": 2192,
                "value": "6000060",
                "valueIn": "6000060",
                "fees": "0"
            }
        ]
    }
}

Get block filters batch

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

Body

Copied!
{
  "id": "26",
  "method": "getBlockFiltersBatch",
  "params": {
    "scriptType": "",
    "bestKnownBlockHash": "0000000000000002f4e4070599fbc5dd6d0ed985f5e40a76526f977d7455f3c6",
    "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://dash.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://dash.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.