NAV
Shell HTTP JavaScript Node.JS PHP Ruby Python Java GO
  • Getting started
  • Authentication
  • REST APIs
  • WebSockets
  • Standards and Conventions
  • Errors and Rate Limits
  • Dash (DASH)

    General Information

    Get Node Information

    Sample Data

    
    curl -X GET 'https://api.cryptoapis.io/v1/bc/dash/mainnet/info' \
        -H 'ContentType: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/dash/mainnet/info HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      }
    });
    
    $.get('https://api.cryptoapis.io/v1/bc/dash/mainnet/info').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/info",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.on("data", function (data) {
        console.log(data);
      });
    });
    
    request.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/mainnet/info');
    $request->setMethod(HTTP_METH_GET);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/mainnet/info")
    http = Net::HTTP.new(url.host, url.port)
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/dash/mainnet/info'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    response = requests.get(url, headers=headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/mainnet/info")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    import (
      "gopkg.in/resty.v0"
    )
    
    func main()
    {
        resp, err := resty.R().
          SetHeader("Content-Type", "application/json").
          SetHeader("X-API-Key", "my-api-key").
          Get("https://api.cryptoapis.io/v1/bc/dash/mainnet/info")
    }
    
    

    Response Body

    {
      "payload": {
          "difficulty": 119784340.9359387,
          "headers": 1092544,
          "chain": "main",
          "chainWork": "000000000000000000000000000000000000000000001717516bec68f9f4c929",
          "mediantime": 1561386599,
          "blocks": 1092544,
          "bestBlockHash": "0000000000000008de3a23647156b1fe1a3537d6b5d336a6c6f40c32cab8d26c",
          "currency": "DASH",
          "transactions": 15028738,
          "verificationProgress": 0.9999987786482495
      }
    }
    
    Info

    General information about a blockchain is available by GET-ing the base resource.

    HTTP Request

    GET /v1/bc/dash/${NETWORK}/info

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)

    The returned object contains a litany of information about the blockchain, including its height, the time/hash of the latest block, and more.

    Get Block By Hash

    Sample Data

    
    curl -X GET 'https://api.cryptoapis.io/v1/bc/dash/mainnet/blocks/000000000000000044c74c5c7e0f9258a04eff106fb29bbbf858643a7b4977fd' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/dash/mainnet/blocks/000000000000000044c74c5c7e0f9258a04eff106fb29bbbf858643a7b4977fd HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      }
    });
    
    $.get('https://api.cryptoapis.io/v1/bc/dash/mainnet/blocks/000000000000000044c74c5c7e0f9258a04eff106fb29bbbf858643a7b4977fd').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/blocks/000000000000000044c74c5c7e0f9258a04eff106fb29bbbf858643a7b4977fd",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.on("data", function (data) {
        console.log(data);
      });
    });
    
    request.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/mainnet/blocks/000000000000000044c74c5c7e0f9258a04eff106fb29bbbf858643a7b4977fd');
    $request->setMethod(HTTP_METH_GET);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/mainnet/blocks/000000000000000044c74c5c7e0f9258a04eff106fb29bbbf858643a7b4977fd")
    http = Net::HTTP.new(url.host, url.port)
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/dash/mainnet/blocks/000000000000000044c74c5c7e0f9258a04eff106fb29bbbf858643a7b4977fd'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    response = requests.get(url, headers=headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/mainnet/blocks/000000000000000044c74c5c7e0f9258a04eff106fb29bbbf858643a7b4977fd")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    import (
      "gopkg.in/resty.v0"
    )
    
    func main()
    {
        resp, err := resty.R().
          SetHeader("Content-Type", "application/json").
          SetHeader("X-API-Key", "my-api-key").
          Get("https://api.cryptoapis.io/v1/bc/dash/mainnet/blocks/000000000000000044c74c5c7e0f9258a04eff106fb29bbbf858643a7b4977fd")
    }
    
    

    Response Body

    {
        "payload": {
            "hash": "000000000000000044c74c5c7e0f9258a04eff106fb29bbbf858643a7b4977fd",
            "strippedsize": 5635,
            "size": 35594,
            "weight": 26630,
            "height": 1089245,
            "version": 536870928,
            "versionHex": "20000010",
            "merkleroot": "4ccccc3f54e0ea0a2acff13988fa13bce7481c093cd056cec22fc169e10ab695",
            "time": "2019-06-18 14:28:18 UTC", //deprecated
            "datetime": "2019-06-18 14:28:18 UTC",
            "mediantime": "2019-06-18 14:11:20 UTC",
            "nonce": 386877063,
            "bits": "191b7fd9",
            "difficulty": 156181625.5475166,
            "chainwork": "0000000000000000000000000000000000000000000016b0ef9202fae046555d",
            "previousblockhash": "0000000000000014a2ac34dfec8fc60cb6105d90d7d8308aaf4709cd4841d95d",
            "nextblockhash": "000000000000003e72280764f9389c6563f990c8e841ee85076fb2ad0203cd94",
            "transactions": 50,
            "tx": [
                "5997f2764971e4301012ed94d46631c42be2926b532e5d73dcb5733b1325c126",
                ...
                "52c218e6cfc79dc17d39aeb42e446aee36595eab7aa9f5b744103175be0338f8"
            ],
            "confirmations": 1,
            "timestamp": 1560868098
        }
    }
    
    Info

    Block Hash endpoint gives you detail information for particular block in the blockchain

    HTTP Request

    GET /v1/bc/dash/${NETWORK}/blocks/${BLOCK_HASH}

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    BLOCK_HASH ------- Hash of the block in blockchain

    BLOCK_HASH is a string representing the hash of the block you’re interested in querying, for example:

    a470e55552f39609406518da1d1a517ccbd9d4c55d4c3996a64301fa5b72a493

    The returned object contains information about the block in JSON format, including its height, the number of transactions in it, transaction hashes listed in the canonical order in which they appear in the block, and more.

    Get Block by Height

    Sample Data

    
    curl -X GET 'https://api.cryptoapis.io/v1/bc/dash/mainnet/blocks/1089045' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/dash/mainnet/blocks/1089045 HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      }
    });
    
    $.get('https://api.cryptoapis.io/v1/bc/dash/mainnet/blocks/1089045').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/blocks/1089045",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.on("data", function (data) {
        console.log(data);
      });
    });
    
    request.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/mainnet/blocks/1089045');
    $request->setMethod(HTTP_METH_GET);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/mainnet/blocks/1089045")
    http = Net::HTTP.new(url.host, url.port)
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/dash/mainnet/blocks/1089045'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    response = requests.get(url, headers=headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/mainnet/blocks/1089045")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    import (
      "gopkg.in/resty.v0"
    )
    
    func main()
    {
        resp, err := resty.R().
          SetHeader("Content-Type", "application/json").
          SetHeader("X-API-Key", "my-api-key").
          Get("https://api.cryptoapis.io/v1/bc/dash/mainnet/blocks/1089045")
    }
    
    

    Response Body

    {
        "payload": {
            "hash": "000000000000001027cf55eae30d244dd1fa935244f0bb0f07cec1a713add207",
            "strippedsize": 5635,
            "size": 2829,
            "weight": 26630,
            "height": 1089045,
            "version": 536870912,
            "versionHex": "20000000",
            "merkleroot": "3f46c880e34a7ffc9993e8209e8a3a6514ce422c8fe2095c8d79d4815312a03a",
            "time": "2019-06-18 05:34:48 UTC", //deprecated
            "datetime": "2019-06-18 05:34:48 UTC",
            "mediantime": "2019-06-18 05:27:55 UTC",
            "nonce": 3394727962,
            "bits": "1917ffc5",
            "difficulty": 178960953.0382724,
            "chainwork": "0000000000000000000000000000000000000000000016abcea319c908148ad0",
            "previousblockhash": "000000000000000540d52f96397ac34fc529057e83921b1349b31fa782d1b651",
            "nextblockhash": "0000000000000016366d52e0262f87d7b7cce387aa7958f0aeee96a09123ba0a",
            "transactions": 3,
            "tx": [
                "286f0022074fe9b907e9b56f38cbdece4543785f0c6cdbc052f59db7ff1ca312",
                "ef49d0326ad1f0b3b139d3e5b2f1de4d0677b765a8061a6f4b27ac5bf28c495e",
                "04efe801b2446b7419c7ae97355a7f20a6436534d2d9c92b546eb8ce6a42d9fa"
            ],
            "confirmations": 200,
            "timestamp": 1560836088
        }
    }
    
    Info

    Block Height endpoint gives you detail information for particular block in the blockchain

    HTTP Request

    GET /v1/bc/dash/${NETWORK}/blocks/${BLOCK_HEIGHT}

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    BLOCK_HEIGHT ------- Height of the block in blockchain

    BLOCK_HEIGHT is a integer representing the height of the block you’re interested in querying, for example:

    1089045

    The returned object contains information about the block in JSON format, including its height, the number of transactions in it, transaction hashes listed in the canonical order in which they appear in the block, and more.

    Get Latest Block

    Sample Data

    
    curl -X GET https://api.cryptoapis.io/v1/bc/doge/testnet/blocks/latest \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/doge/testnet/blocks/latest HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/doge/testnet/blocks/latest",
      "method": "GET",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    var http = require("http");
    
    var options = {
      "method": "GET",
      "hostname": [
        "https://api.cryptoapis.io"
      ],
      "port": "8021",
      "path": [
        "v1",
        "bc",
        "doge",
        "testnet",
        "blocks",
        "latest"
      ],
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/doge/testnet/blocks/latest');
    $request->setMethod(HTTP_METH_GET);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/doge/testnet/blocks/latest")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    
    response = http.request(request)
    puts response.read_body
    
    
    
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("GET", "v1,bc,doge,testnet,blocks,latest", headers=headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/doge/testnet/blocks/latest")
      .get()
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    package main
    
    import (
      "fmt"
      "net/http"
      "io/ioutil"
    )
    
    func main() {
    
      url := "https://api.cryptoapis.io/v1/bc/doge/testnet/blocks/latest"
    
      req, _ := http.NewRequest("GET", url, nil)
    
      req.Header.Add("Content-Type", "application/json")
      req.Header.Add("X-API-Key", "my-api-key")
    
      res, _ := http.DefaultClient.Do(req)
    
      defer res.Body.Close()
      body, _ := ioutil.ReadAll(res.Body)
    
      fmt.Println(res)
      fmt.Println(string(body))
    
    }
    
    

    Response Body

    {
      "payload": {
          "hash": "0000000003d65292bd9a97f69f6fed1d1517fe4491973bdc0c28862a7ea79c66",
          "strippedsize": 43582,
          "size": 381,
          "weight": 206767,
          "height": 123952,
          "version": 536870912,
          "versionHex": "20000000",
          "merkleroot": "67eab41d993576c37ee9ce89054641660e9e61de98fa2b701d19c25cfb4ce037",
          "time": "2019-06-24 14:56:59 UTC", //deprecated
          "datetime": "2019-06-24 14:56:59 UTC",
          "mediantime": "2019-06-24 14:41:07 UTC",
          "nonce": 2542819205,
          "bits": "1c0b6b81",
          "difficulty": 22.4165939576466,
          "chainwork": "000000000000000000000000000000000000000000000000006acd1c57641808",
          "previousblockhash": "00000000052b435ceef04577c43d38ec9590972c71a35d94ade42e0be09c9283",
          "transactions": 1,
          "tx": [
              "67eab41d993576c37ee9ce89054641660e9e61de98fa2b701d19c25cfb4ce037"
          ],
          "confirmations": 1,
          "timestamp": 1561388219
      }
    }
    
    Info

    Latest Block Endpoint gives you detail information for the latest block in the blockchain

    HTTP Request

    GET /v1/bc/doge/${NETWORK}/blocks/latest

    Query Parameters
    Parameter Default Description
    NETWORK - Network name (e.g. mainnet or testnet)

    The returned object contains information about the latest block in JSON format, including its height, the number of transactions in it and more.

    Addresses

    Generate Address

    Sample Data

    
    curl -X POST 'https://api.cryptoapis.io/v1/bc/dash/mainnet/address' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    POST /v1/bc/dash/mainnet/address HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      }
    });
    
    $.post('https://api.cryptoapis.io/v1/bc/dash/mainnet/address')
      .then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/address",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.on("data", function (data) {
        console.log(data);
      });
    });
    
    request.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/mainnet/address');
    $request->setMethod(HTTP_METH_POST);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/mainnet/address")
    http = Net::HTTP.new(url.host, url.port)
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/dash/mainnet/address'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    response = requests.post(url, headers=headers, data={})
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/mainnet/address")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    import (
      "gopkg.in/resty.v0"
    )
    
    func main()
    {
        resp, err := resty.R().
          SetHeader("Content-Type", "application/json").
          SetHeader("X-API-Key", "my-api-key").
          Post("https://api.cryptoapis.io/v1/bc/dash/mainnet/address")
    }
    
    

    Response Body

    {
      "payload": {
          "privateKey": "269997786420c498a5a6b8716e47e7981cb9e9964eaba924b2f23a4d5a2da212",
          "publicKey": "022da27f35851a674179ea3bad7660139c28fc66848f16835a1f2a8fdc78c6d7dd",
          "address": "Xi1b4HrjSLQvRpPyWYjKBWkGa6EUfhtXEs",
          "wif": "XCafZvLNmKPwhmJtRxfS9EYJdzy4hjYi1jcYctzZMzX5E8SktUNq"
      }
    }
    
    Info

    The Generate Address endpoint allows you to generate private-public key-pairs along with an associated public address. No information is required with this POST request.

    HTTP Request

    POST /v1/bc/dash/${NETWORK}/address

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. mainnet or testnet)

    The returned object contains a private key in hex-encoded and wif-encoded format, a public key, and a public address.

    Crypto APIs Address API allows you to generate single-use, low-value key pairs with corresponding addresses based on the coin/chain resource you’ve selected for your endpoints.

    If you’re new to blockchains, you can think of public addresses as similar to bank account numbers in a traditional ledger. The biggest differences:

    Addresses & Transactions Data

    Crypto APIs Addresses & Transactions Data API allows you to look up information about public addresses on the blockchain as well as to look up information about unconfirmed transactions, query transactions based on hash or block.

    Get Address Details

    Sample Data

    
    curl -X GET 'https://api.cryptoapis.io/v1/bc/dash/mainnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/dash/mainnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      }
    });
    
    $.get('https://api.cryptoapis.io/v1/bc/dash/mainnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.on("data", function (data) {
        console.log(data);
      });
    });
    
    request.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/mainnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T');
    $request->setMethod(HTTP_METH_GET);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/mainnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T")
    http = Net::HTTP.new(url.host, url.port)
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/dash/mainnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    response = requests.get(url, headers=headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/mainnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    import (
      "gopkg.in/resty.v0"
    )
    
    func main()
    {
        resp, err := resty.R().
          SetHeader("Content-Type", "application/json").
          SetHeader("X-API-Key", "my-api-key").
          Get("https://api.cryptoapis.io/v1/bc/dash/mainnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T")
    }
    
    

    Response Body

    {
      "payload": {
          "address": "Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T",
          "totalSpent": "0.100001",
          "totalReceived": "0.100001",
          "balance": "0.000000",
          "txi": 1,
          "txo": 1,
          "txsCount": 2,
          "addresses": [
              "Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T"
          ]
      }
    }
    
    Info

    The default Address Endpoint strikes a general information about addresses.

    HTTP Request

    GET /v1/bc/dash/${NETWORK}/address/${ADDRESS}

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    ADDRESS ------- Address in blockchain

    ADDRESS is a string representing the public address (or wallet/HD wallet name) you’re interested in querying, for example:

    Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T

    The returned object contains information about the address, including its balance in dash and the number of transactions associated with it. The endpoint omits any detailed transaction information, but if that isn’t required by your application, then it’s the fastest and preferred way to get public address information.

    Get Multisig Address Details

    Sample Data

    
    curl -X GET 'https://api.cryptoapis.io/v1/bc/dash/testnet/address/mfX9XpSGvUSJQSL3UMgW3kqER52KWhAYM9/multisig' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/dash/testnet/address/mfX9XpSGvUSJQSL3UMgW3kqER52KWhAYM9/multisig HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      }
    });
    
    $.get('https://api.cryptoapis.io/v1/bc/dash/testnet/address/mfX9XpSGvUSJQSL3UMgW3kqER52KWhAYM9/multisig').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/testnet/address/mfX9XpSGvUSJQSL3UMgW3kqER52KWhAYM9/multisig",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.on("data", function (data) {
        console.log(data);
      });
    });
    
    request.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/address/mfX9XpSGvUSJQSL3UMgW3kqER52KWhAYM9/multisig');
    $request->setMethod(HTTP_METH_GET);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/address/mfX9XpSGvUSJQSL3UMgW3kqER52KWhAYM9/multisig")
    http = Net::HTTP.new(url.host, url.port)
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/dash/testnet/address/mfX9XpSGvUSJQSL3UMgW3kqER52KWhAYM9/multisig'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    response = requests.get(url, headers=headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/address/mfX9XpSGvUSJQSL3UMgW3kqER52KWhAYM9/multisig")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    import (
      "gopkg.in/resty.v0"
    )
    
    func main()
    {
        resp, err := resty.R().
          SetHeader("Content-Type", "application/json").
          SetHeader("X-API-Key", "my-api-key").
          Get("https://api.cryptoapis.io/v1/bc/dash/testnet/address/mfX9XpSGvUSJQSL3UMgW3kqER52KWhAYM9/multisig")
    }
    
    

    Response Body

    {
        "payload": [
            {
                "address": "mfX9XpSGvUSJQSL3UMgW3kqER52KWhAYM9,mj4Kj5VkDnVXMwjLPPFeg8VuA2GjzThctq,mrkDpF1ZQTGwrbug8eCCHACYTPe2RQSJ3B",
                "totalSpent": "0",
                "totalReceived": "0.00007799",
                "balance": "0.00007799",
                "txi": 0,
                "txo": 1,
                "txsCount": 1,
                "addresses": [
                    "mfX9XpSGvUSJQSL3UMgW3kqER52KWhAYM9",
                    "mj4Kj5VkDnVXMwjLPPFeg8VuA2GjzThctq",
                    "mrkDpF1ZQTGwrbug8eCCHACYTPe2RQSJ3B"
                ]
            }
        ],
        "meta": {
            "totalCount": 1,
            "limit": 50,
            "results": 1
        }
    }
    
    Info

    The Multisig Address Endpoint strikes a general information about a single address that is involved in multisignature addresses.

    HTTP Request

    GET /v1/bc/dash/${NETWORK}/address/${ADDRESS}/multisig

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    ADDRESS ------- Address in blockchain
    LIMIT ------- Limit results
    Meta Response
    Variable Type Description
    totalCount int Total count of the items in the listing for the given criteria
    index int Sequential index number of the items list start position (depends on the skip parameter) for the given criteria
    limit int Limit number of the items list (depends on the limit parameter) for the given criteria.
    results int Count of the items listed in the current response for the given criteria

    ADDRESS is a string representing the public address (or wallet/HD wallet name) you’re interested in querying, for example:

    nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y

    The returned object returns a list of multisignature addresses in which the queried address is involved in, including balance in DASH and the number of transactions associated with it, and more.

    Get Basic Transactions By Address

    Sample Data

    
    curl -X GET 'https://api.cryptoapis.io/v1/bc/dash/testnet/address/yQ43fVJscaYUB6e7HxkxXCXVhvUyGUtW3s/basic/transactions' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/dash/testnet/address/yQ43fVJscaYUB6e7HxkxXCXVhvUyGUtW3s/basic/transactions HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      }
    });
    
    $.get('https://api.cryptoapis.io/v1/bc/dash/testnet/address/yQ43fVJscaYUB6e7HxkxXCXVhvUyGUtW3s/basic/transactions').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/testnet/address/yQ43fVJscaYUB6e7HxkxXCXVhvUyGUtW3s/basic/transactions",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.on("data", function (data) {
        console.log(data);
      });
    });
    
    request.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/address/yQ43fVJscaYUB6e7HxkxXCXVhvUyGUtW3s/basic/transactions');
    $request->setMethod(HTTP_METH_GET);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/address/yQ43fVJscaYUB6e7HxkxXCXVhvUyGUtW3s/basic/transactions")
    http = Net::HTTP.new(url.host, url.port)
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/dash/testnet/address/yQ43fVJscaYUB6e7HxkxXCXVhvUyGUtW3s/basic/transactions'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    response = requests.get(url, headers=headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/address/yQ43fVJscaYUB6e7HxkxXCXVhvUyGUtW3s/basic/transactions")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    import (
      "gopkg.in/resty.v0"
    )
    
    func main()
    {
        resp, err := resty.R().
          SetHeader("Content-Type", "application/json").
          SetHeader("X-API-Key", "my-api-key").
          Get("https://api.cryptoapis.io/v1/bc/dash/testnet/address/yQ43fVJscaYUB6e7HxkxXCXVhvUyGUtW3s/basic/transactions")
    }
    
    

    Response Body

    {
      "payload": [
        {
          "txid": "ec003d3376c64050c3f2c2203162aff73322aa21d9d068680f076b274e1c36ca",
          "amount":  82667.01182181,
          "fee": 0.0000118,
          "unit": "dash",
          "datetime": "2020-03-06 08:55:15 UTC",
          "timestamp": 1583484915,
          "confirmations": 2,
          "sent": {
            "yQ43fVJscaYUB6e7HxkxXCXVhvUyGUtW3s": 19.1882,
            "ygfjf1WZXxn8m47pjaGXBo7Ghf4h1zeuhg": 82647.82362181
          },
          "received": {
            "ybZyFQJeisukCJk4YJA8s6RE35SxjZLwPH": 82647.82362181
          }
        },
        {
          "txid": "f1cd70e5752af29457a49fd6f7de5adbafff272dab48edcabdca32b5b8bd551a",
          "amount": 82672.97553361,
          "fee": 0.0000118,
          "unit": "dash",
          "datetime": "2020-03-06 08:54:07 UTC",
          "timestamp": 1583484847,
          "confirmations": 3,
          "sent": {
            "yjDHdtN3JHbqBDAZVCxn5Cayemo86eeFsa": 5.9637
          },
          "received": {
            "mvymY6wswVHDh9iW3bSg7zRgJgcvwPdV9F": 25.00007051,
            "yQ43fVJscaYUB6e7HxkxXCXVhvUyGUtW3s": 82667.01183361
          }
        }
      ],
      "meta": {
        "totalCount": 2,
        "index": 0,
        "limit": 50,
        "results": 2
      }
    }
    
    Info

    The Address Basic Transactions Endpoint returns basic information available about a particular address, including an array of basic transactions.

    HTTP Request

    GET /v1/bc/dash/${NETWORK}address/${ADDRESS}/basic/transactions?index=0&limit=50

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    ADDRESS ------- Address in blockchain
    index 0 First index of returned txs
    limit 50 Sets the number of returned txs
    Meta Response
    Variable Type Description
    totalCount int Total count of the items in the listing for the given criteria
    index int Sequential index number of the items list start position (depends on the skip parameter) for the given criteria
    limit int Limit number of the items list (depends on the limit parameter) for the given criteria.
    results int Count of the items listed in the current response for the given criteria

    The default values of the query parameters index and limit are as follows: 0 and 50. ADDRESS is a string representing the public address you’re interested in querying, for example:

    yQ43fVJscaYUB6e7HxkxXCXVhvUyGUtW3s

    The returned object contains an array with basic transaction records associated with this address in descending order by blocktime.

    Get Confirmed Transactions By Address

    Sample Data

    
    curl -X GET 'https://api.cryptoapis.io/v1/bc/dash/testnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T/transactions' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/dash/testnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T/transactions HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    
    $.ajaxSetup({  {
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      }
    });
    
    $.get('https://api.cryptoapis.io/v1/bc/dash/testnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T/transactions').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T/transactions",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.on("data", function (data) {
        console.log(data);
      });
    });
    
    request.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T/transactions');
    $request->setMethod(HTTP_METH_GET);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T/transactions")
    http = Net::HTTP.new(url.host, url.port)
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/dash/testnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T/transactions'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    response = requests.get(url, headers=headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T/transactions")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    import (
      "gopkg.in/resty.v0"
    )
    
    func main()
    {
        resp, err := resty.R().
          SetHeader("Content-Type", "application/json").
          SetHeader("X-API-Key", "my-api-key").
          Get("https://api.cryptoapis.io/v1/bc/dash/testnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T/transactions")
    }
    
    

    Response Body

    {
        "payload": [
            {
                "txid": "6e9b9a86fc4921898b054ac2fd260752e0983cb910b21bdd36ac4e361b2bdb16",
                "hash": "52b3e1d0d81c7b578fb63219e9f9c53235f9c0e6f75928f9147670b7565167f8",
                "index": 6,
                "version": 2,
                "size": 1642,
                "vsize": 191,
                "locktime": 0,
                "time": "2019-06-18 14:28:18 UTC", //deprecated
                "datetime": "2019-06-18 14:28:18 UTC",
                "blockhash": "000000000000000044c74c5c7e0f9258a04eff106fb29bbbf858643a7b4977fd",
                "blockheight": 1089245,
                "blocktime": "2019-06-18 14:28:18 UTC",
                "timestamp": 1560868098,
                "confirmations": 1,
                "txins": [
                    {
                        "txout": "187d6182e877bd85f32c215fc49d654679d206762cefc5af945ecb601aa7fe21",
                        "vout": 1,
                        "amount": "0.100001",
                        "addresses": [
                            "Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T"
                        ],
                        "script": {
                            "asm": "30450221008bcd2bd1af69350f0777be3afb19653f98e2d2dc5ea72e2a594a7e6175678fb2022072051cef4f5b1963d86320e51012b8c9e6664ef0871cca23564b800fc5dd5b7d[ALL|ANYONECANPAY] 02c60c40984a39bc602fa03405e907a561cd0ca43b102355669b92956cb5ce4499",
                            "hex": "4830450221008bcd2bd1af69350f0777be3afb19653f98e2d2dc5ea72e2a594a7e6175678fb2022072051cef4f5b1963d86320e51012b8c9e6664ef0871cca23564b800fc5dd5b7d812102c60c40984a39bc602fa03405e907a561cd0ca43b102355669b92956cb5ce4499"
                        },
                        "votype": "pubkeyhash"
                    },
                    ...
                    {
                        "txout": "f8955769dff973364a6c4e807fe132c52809c2d2f841485945ce668c1ec5bb4d",
                        "vout": 2,
                        "amount": "0.100001",
                        "addresses": [
                            "Xht6hLh1bN4RW1KFUnfgLbspSyU42Z1ztS"
                        ],
                        "script": {
                            "asm": "3045022100ffacea24432b07dd11b8948c7d21b62cd5d1b7af3de9649901512d0f5285b19b022038ec2864d38290ac0e969d8b88c7e58fd714b03a629bc71712fe53066a9f697b[ALL|ANYONECANPAY] 0390d960d8a5f8b8bfb33015cbe1e1e71082e706f4735db089797b43a303b02e9e",
                            "hex": "483045022100ffacea24432b07dd11b8948c7d21b62cd5d1b7af3de9649901512d0f5285b19b022038ec2864d38290ac0e969d8b88c7e58fd714b03a629bc71712fe53066a9f697b81210390d960d8a5f8b8bfb33015cbe1e1e71082e706f4735db089797b43a303b02e9e"
                        },
                        "votype": "pubkeyhash"
                    }
                ],
                "txouts": [
                    {
                        "amount": "0.100001",
                        "type": "pubkeyhash",
                        "spent": false,
                        "addresses": [
                            "Xc2ygtqYPCjmcmVhjk957BJuQrmYZxuFXH"
                        ],
                        "script": {
                            "asm": "OP_DUP OP_HASH160 0ec700b61b81dd06b240b8987814edae0e2cdbaa OP_EQUALVERIFY OP_CHECKSIG",
                            "hex": "76a9140ec700b61b81dd06b240b8987814edae0e2cdbaa88ac",
                            "reqsigs": 1
                        }
                    },
                   ...
                    {
                        "amount": "0.100001",
                        "type": "pubkeyhash",
                        "spent": false,
                        "addresses": [
                            "XyNUUjYs51BJDRhNLLbhKey1EBAjvxayUV"
                        ],
                        "script": {
                            "asm": "OP_DUP OP_HASH160 f8d1949a525b3550104ce0029d03f9aaedd5341d OP_EQUALVERIFY OP_CHECKSIG",
                            "hex": "76a914f8d1949a525b3550104ce0029d03f9aaedd5341d88ac",
                            "reqsigs": 1
                        }
                    }
                ]
            },
            {
                "txid": "187d6182e877bd85f32c215fc49d654679d206762cefc5af945ecb601aa7fe21",
                "index": 1,
                "version": 2,
                "size": 915,
                "locktime": 0,
                "time": "2019-06-18 14:01:34 UTC", //deprecated
                "datetime": "2019-06-18 14:01:34 UTC",
                "blockhash": "00000000000000204c5901d8397d571ca67ba072558e484bd198635f1e7ddac4",
                "blockheight": 1089232,
                "blocktime": "2019-06-18 14:01:34 UTC",
                "timestamp": 1560866494,
                "confirmations": 13,
                "txins": [
                    {
                        "txout": "8fe169ed68a9f1aa5f3a7434d0019e81faa61953d97af32ccd5bf3b1e449c2cb",
                        "vout": 24,
                        "amount": "0.100001",
                        "addresses": [
                            "XjN3wCj4JhTWU1hXGrTA3bu4bQHuAV17QB"
                        ],
                        "script": {
                            "asm": "30440220275162cdbfb375416e77489e5b2afe824cd734d5c91ae5895f6773bf001e9f57022049372a62d1a9b8c65bfbe9ea93242054a1545b35d051ca39b1983b628d17ee76[ALL|ANYONECANPAY] 038393543a384c4df7515e1699583e5487b7df6510dbfff434763bb6b17dc36858",
                            "hex": "4730440220275162cdbfb375416e77489e5b2afe824cd734d5c91ae5895f6773bf001e9f57022049372a62d1a9b8c65bfbe9ea93242054a1545b35d051ca39b1983b628d17ee768121038393543a384c4df7515e1699583e5487b7df6510dbfff434763bb6b17dc36858"
                        },
                        "votype": "pubkeyhash"
                    },
                   ...
                    {
                        "txout": "fbbfc7f3ace3ab1854538dca125b9ada1bfe9db8e1cf8f1f406edd2be6d0ec67",
                        "vout": 9,
                        "amount": "0.100001",
                        "addresses": [
                            "XuM5gADPs5xmSbpYp8t9EvzcFf5F3pjeeQ"
                        ],
                        "script": {
                            "asm": "304402201c9a05b8fda64ceacf3c7d4810d3638771f52fad023a8eeb81ea7794cb9219f202200ef58497b6c50e3e1218e8de11530532bbf0528e5edcf6b693ef64c7a6fc332c[ALL|ANYONECANPAY] 0391c84ad78a34cad0ddaddc56feeb1719de7ac55f317dd34569d8db09c4e1221d",
                            "hex": "47304402201c9a05b8fda64ceacf3c7d4810d3638771f52fad023a8eeb81ea7794cb9219f202200ef58497b6c50e3e1218e8de11530532bbf0528e5edcf6b693ef64c7a6fc332c81210391c84ad78a34cad0ddaddc56feeb1719de7ac55f317dd34569d8db09c4e1221d"
                        },
                        "votype": "pubkeyhash"
                    }
                ],
                "txouts": [
                    {
                        "amount": "0.100001",
                        "type": "pubkeyhash",
                        "spent": true,
                        "addresses": [
                            "Xj8qznqHK5xEboBmhxP3qA58eBazLc1Zku"
                        ],
                        "script": {
                            "asm": "OP_DUP OP_HASH160 5cabf5633585e8266f03303900186b4c5ceef619 OP_EQUALVERIFY OP_CHECKSIG",
                            "hex": "76a9145cabf5633585e8266f03303900186b4c5ceef61988ac",
                            "reqsigs": 1
                        }
                    },
                   ...
                    {
                        "amount": "0.100001",
                        "type": "pubkeyhash",
                        "spent": true,
                        "addresses": [
                            "XyNXu1PtaHh9uEUw2J8ej9KCL6mmgyvXEr"
                        ],
                        "script": {
                            "asm": "OP_DUP OP_HASH160 f8d46f2159f916524c08fb38797d2323fbac508c OP_EQUALVERIFY OP_CHECKSIG",
                            "hex": "76a914f8d46f2159f916524c08fb38797d2323fbac508c88ac",
                            "reqsigs": 1
                        }
                    }
                ]
            }
        ],
        "meta": {
            "totalCount": 2,
            "index": 0,
            "limit": 50,
            "results": 2
        }
    }
    
    Info

    The Address Confirmed Transactions Endpoint returns all information available about a particular address, including an array of complete transactions.

    HTTP Request

    GET /v1/bc/dash/${NETWORK}/address/${ADDRESS}/transactions?index=0&limit=50

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    ADDRESS ------- Address in blockchain
    index 0 First index of returned txs
    limit 50 Sets the number of returned txs
    Meta Response
    Variable Type Description
    totalCount int Total count of the items in the listing for the given criteria
    index int Sequential index number of the items list start position (depends on the skip parameter) for the given criteria
    limit int Limit number of the items list (depends on the limit parameter) for the given criteria.
    results int Count of the items listed in the current response for the given criteria

    The default values of the query parameters index and limit are as follows: 0 and 50. ADDRESS is a string representing the public address you’re interested in querying, for example:

    Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T

    The returned object contains information about the address, including the number of transactions associated with it, and the corresponding full transaction records in descending order by blocktime.

    Get Confirmed Transactions For Address By Range

    Sample Data

    
    curl -X GET 'https://api.cryptoapis.io/v1/bc/dash/testnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T/transactions-by-range/1560866494/1560868098' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/dash/testnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T/transactions-by-range/1560866494/1560868098 HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    
    $.ajaxSetup({  {
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      }
    });
    
    $.get('https://api.cryptoapis.io/v1/bc/dash/testnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T/transactions-by-range/1560866494/1560868098').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T/transactions-by-range/1560866494/1560868098",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.on("data", function (data) {
        console.log(data);
      });
    });
    
    request.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T/transactions-by-range/1560866494/1560868098');
    $request->setMethod(HTTP_METH_GET);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T/transactions-by-range/1560866494/1560868098")
    http = Net::HTTP.new(url.host, url.port)
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/dash/testnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T/transactions-by-range/1560866494/1560868098'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    response = requests.get(url, headers=headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T/transactions-by-range/1560866494/1560868098")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    import (
      "gopkg.in/resty.v0"
    )
    
    func main()
    {
        resp, err := resty.R().
          SetHeader("Content-Type", "application/json").
          SetHeader("X-API-Key", "my-api-key").
          Get("https://api.cryptoapis.io/v1/bc/dash/testnet/address/Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T/transactions-by-range/1560866494/1560868098")
    }
    
    

    Response Body

    {
        "payload": [
            {
                "txid": "6e9b9a86fc4921898b054ac2fd260752e0983cb910b21bdd36ac4e361b2bdb16",
                "hash": "52b3e1d0d81c7b578fb63219e9f9c53235f9c0e6f75928f9147670b7565167f8",
                "index": 6,
                "version": 2,
                "size": 1642,
                "vsize": 191,
                "locktime": 0,
                "time": "2019-06-18 14:28:18 UTC", //deprecated
                "datetime": "2019-06-18 14:28:18 UTC",
                "blockhash": "000000000000000044c74c5c7e0f9258a04eff106fb29bbbf858643a7b4977fd",
                "blockheight": 1089245,
                "blocktime": "2019-06-18 14:28:18 UTC",
                "timestamp": 1560868098,
                "confirmations": 1,
                "txins": [
                    {
                        "txout": "187d6182e877bd85f32c215fc49d654679d206762cefc5af945ecb601aa7fe21",
                        "vout": 1,
                        "amount": "0.100001",
                        "addresses": [
                            "Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T"
                        ],
                        "script": {
                            "asm": "30450221008bcd2bd1af69350f0777be3afb19653f98e2d2dc5ea72e2a594a7e6175678fb2022072051cef4f5b1963d86320e51012b8c9e6664ef0871cca23564b800fc5dd5b7d[ALL|ANYONECANPAY] 02c60c40984a39bc602fa03405e907a561cd0ca43b102355669b92956cb5ce4499",
                            "hex": "4830450221008bcd2bd1af69350f0777be3afb19653f98e2d2dc5ea72e2a594a7e6175678fb2022072051cef4f5b1963d86320e51012b8c9e6664ef0871cca23564b800fc5dd5b7d812102c60c40984a39bc602fa03405e907a561cd0ca43b102355669b92956cb5ce4499"
                        },
                        "votype": "pubkeyhash"
                    },
                    ...
                    {
                        "txout": "f8955769dff973364a6c4e807fe132c52809c2d2f841485945ce668c1ec5bb4d",
                        "vout": 2,
                        "amount": "0.100001",
                        "addresses": [
                            "Xht6hLh1bN4RW1KFUnfgLbspSyU42Z1ztS"
                        ],
                        "script": {
                            "asm": "3045022100ffacea24432b07dd11b8948c7d21b62cd5d1b7af3de9649901512d0f5285b19b022038ec2864d38290ac0e969d8b88c7e58fd714b03a629bc71712fe53066a9f697b[ALL|ANYONECANPAY] 0390d960d8a5f8b8bfb33015cbe1e1e71082e706f4735db089797b43a303b02e9e",
                            "hex": "483045022100ffacea24432b07dd11b8948c7d21b62cd5d1b7af3de9649901512d0f5285b19b022038ec2864d38290ac0e969d8b88c7e58fd714b03a629bc71712fe53066a9f697b81210390d960d8a5f8b8bfb33015cbe1e1e71082e706f4735db089797b43a303b02e9e"
                        },
                        "votype": "pubkeyhash"
                    }
                ],
                "txouts": [
                    {
                        "amount": "0.100001",
                        "type": "pubkeyhash",
                        "spent": false,
                        "addresses": [
                            "Xc2ygtqYPCjmcmVhjk957BJuQrmYZxuFXH"
                        ],
                        "script": {
                            "asm": "OP_DUP OP_HASH160 0ec700b61b81dd06b240b8987814edae0e2cdbaa OP_EQUALVERIFY OP_CHECKSIG",
                            "hex": "76a9140ec700b61b81dd06b240b8987814edae0e2cdbaa88ac",
                            "reqsigs": 1
                        }
                    },
                   ...
                    {
                        "amount": "0.100001",
                        "type": "pubkeyhash",
                        "spent": false,
                        "addresses": [
                            "XyNUUjYs51BJDRhNLLbhKey1EBAjvxayUV"
                        ],
                        "script": {
                            "asm": "OP_DUP OP_HASH160 f8d1949a525b3550104ce0029d03f9aaedd5341d OP_EQUALVERIFY OP_CHECKSIG",
                            "hex": "76a914f8d1949a525b3550104ce0029d03f9aaedd5341d88ac",
                            "reqsigs": 1
                        }
                    }
                ]
            },
            {
                "txid": "187d6182e877bd85f32c215fc49d654679d206762cefc5af945ecb601aa7fe21",
                "index": 1,
                "version": 2,
                "size": 915,
                "locktime": 0,
                "time": "2019-06-18 14:01:34 UTC", //deprecated
                "datetime": "2019-06-18 14:01:34 UTC",
                "blockhash": "00000000000000204c5901d8397d571ca67ba072558e484bd198635f1e7ddac4",
                "blockheight": 1089232,
                "blocktime": "2019-06-18 14:01:34 UTC",
                "timestamp": 1560866494,
                "confirmations": 13,
                "txins": [
                    {
                        "txout": "8fe169ed68a9f1aa5f3a7434d0019e81faa61953d97af32ccd5bf3b1e449c2cb",
                        "vout": 24,
                        "amount": "0.100001",
                        "addresses": [
                            "XjN3wCj4JhTWU1hXGrTA3bu4bQHuAV17QB"
                        ],
                        "script": {
                            "asm": "30440220275162cdbfb375416e77489e5b2afe824cd734d5c91ae5895f6773bf001e9f57022049372a62d1a9b8c65bfbe9ea93242054a1545b35d051ca39b1983b628d17ee76[ALL|ANYONECANPAY] 038393543a384c4df7515e1699583e5487b7df6510dbfff434763bb6b17dc36858",
                            "hex": "4730440220275162cdbfb375416e77489e5b2afe824cd734d5c91ae5895f6773bf001e9f57022049372a62d1a9b8c65bfbe9ea93242054a1545b35d051ca39b1983b628d17ee768121038393543a384c4df7515e1699583e5487b7df6510dbfff434763bb6b17dc36858"
                        },
                        "votype": "pubkeyhash"
                    },
                   ...
                    {
                        "txout": "fbbfc7f3ace3ab1854538dca125b9ada1bfe9db8e1cf8f1f406edd2be6d0ec67",
                        "vout": 9,
                        "amount": "0.100001",
                        "addresses": [
                            "XuM5gADPs5xmSbpYp8t9EvzcFf5F3pjeeQ"
                        ],
                        "script": {
                            "asm": "304402201c9a05b8fda64ceacf3c7d4810d3638771f52fad023a8eeb81ea7794cb9219f202200ef58497b6c50e3e1218e8de11530532bbf0528e5edcf6b693ef64c7a6fc332c[ALL|ANYONECANPAY] 0391c84ad78a34cad0ddaddc56feeb1719de7ac55f317dd34569d8db09c4e1221d",
                            "hex": "47304402201c9a05b8fda64ceacf3c7d4810d3638771f52fad023a8eeb81ea7794cb9219f202200ef58497b6c50e3e1218e8de11530532bbf0528e5edcf6b693ef64c7a6fc332c81210391c84ad78a34cad0ddaddc56feeb1719de7ac55f317dd34569d8db09c4e1221d"
                        },
                        "votype": "pubkeyhash"
                    }
                ],
                "txouts": [
                    {
                        "amount": "0.100001",
                        "type": "pubkeyhash",
                        "spent": true,
                        "addresses": [
                            "Xj8qznqHK5xEboBmhxP3qA58eBazLc1Zku"
                        ],
                        "script": {
                            "asm": "OP_DUP OP_HASH160 5cabf5633585e8266f03303900186b4c5ceef619 OP_EQUALVERIFY OP_CHECKSIG",
                            "hex": "76a9145cabf5633585e8266f03303900186b4c5ceef61988ac",
                            "reqsigs": 1
                        }
                    },
                   ...
                    {
                        "amount": "0.100001",
                        "type": "pubkeyhash",
                        "spent": true,
                        "addresses": [
                            "XyNXu1PtaHh9uEUw2J8ej9KCL6mmgyvXEr"
                        ],
                        "script": {
                            "asm": "OP_DUP OP_HASH160 f8d46f2159f916524c08fb38797d2323fbac508c OP_EQUALVERIFY OP_CHECKSIG",
                            "hex": "76a914f8d46f2159f916524c08fb38797d2323fbac508c88ac",
                            "reqsigs": 1
                        }
                    }
                ]
            }
        ],
        "meta": {
            "totalCount": 2,
            "index": 0,
            "limit": 50,
            "results": 2
        }
    }
    
    Info

    The Address Confirmed Transactions By Range Endpoint returns all information available about a particular address, including an array of complete transactions.

    HTTP Request

    GET /v1/bc/dash/${NETWORK}/address/${ADDRESS}/transactions-by-range/${FROM_TIMESTAMP}/${TO_TIMESTAMP}?index=0&limit=50/

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    ADDRESS ------- Address in blockchain
    FROM_TIMESTAMP ------- From timestamp of desired txs
    TO_TIMESTAMP ------- To timestamp of desired txs
    index 0 First index of returned txs
    limit 50 Sets the number of returned txs
    Meta Response
    Variable Type Description
    totalCount int Total count of the items in the listing for the given criteria
    index int Sequential index number of the items list start position (depends on the skip parameter) for the given criteria
    limit int Limit number of the items list (depends on the limit parameter) for the given criteria.
    results int Count of the items listed in the current response for the given criteria

    The default values of the query parameters index and limit are as follows: 0 and 50. FROM_TIMESTAMP and TO_TIMESTAMP must be provided to get transactions with date range. ADDRESS is a string representing the public address you’re interested in querying, for example:

    Xk65VMpdQ36Q8SGwFrketiVn9h6G9QQp1T

    The returned object contains information about the address, including the number of transactions associated with it, and the corresponding full transaction records in descending order by blocktime.

    Get Unconfirmed Transactions By Address

    Sample Data

    
    curl -X GET 'https://api.cryptoapis.io/v1/bc/dash/mainnet/address/XeBZBM6V6KKgPGcuqJThPbohU8DjY823Mm/unconfirmed-transactions' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/dash/mainnet/address/XeBZBM6V6KKgPGcuqJThPbohU8DjY823Mm/unconfirmed-transactions HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      }
    });
    
    $.get('https://api.cryptoapis.io/v1/bc/dash/mainnet/address/XeBZBM6V6KKgPGcuqJThPbohU8DjY823Mm/unconfirmed-transactions').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/address/XeBZBM6V6KKgPGcuqJThPbohU8DjY823Mm/unconfirmed-transactions",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.on("data", function (data) {
        console.log(data);
      });
    });
    
    request.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/mainnet/address/XeBZBM6V6KKgPGcuqJThPbohU8DjY823Mm/unconfirmed-transactions');
    $request->setMethod(HTTP_METH_GET);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/mainnet/address/XeBZBM6V6KKgPGcuqJThPbohU8DjY823Mm/unconfirmed-transactions")
    http = Net::HTTP.new(url.host, url.port)
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/dash/mainnet/address/XeBZBM6V6KKgPGcuqJThPbohU8DjY823Mm/unconfirmed-transactions'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    response = requests.get(url, headers=headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/mainnet/address/XeBZBM6V6KKgPGcuqJThPbohU8DjY823Mm/unconfirmed-transactions")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    import (
      "gopkg.in/resty.v0"
    )
    
    func main()
    {
        resp, err := resty.R().
          SetHeader("Content-Type", "application/json").
          SetHeader("X-API-Key", "my-api-key").
          Get("https://api.cryptoapis.io/v1/bc/dash/mainnet/address/XeBZBM6V6KKgPGcuqJThPbohU8DjY823Mm/unconfirmed-transactions")
    }
    
    

    Response Body

    {
      "payload": [
        {
          "txid": "e370a22a7fb5af10f4663239c232d97b86cda17ad100c3308e2c95849ec22cdd",
          "version": 2,
          "size": 191,
          "locktime": 0,
          "time": "2020-01-31 12:30:06 UTC",
          "datetime": "2020-01-31 12:30:06 UTC",
          "timestamp": 1580473806,
          "txins": [
            {
              "txout": "45b6c48ae64f18379a4fa268bd00565388f30ef560123887a17520f88f7ab674",
              "vout": 1,
              "amount": "0.2209066",
              "addresses": [
                "XeBZBM6V6KKgPGcuqJThPbohU8DjY823Mm"
              ],
              "script": {
                "asm": "304402201b186daa8f6883c001571a908aea3ca45b8896d594a13cd1b21b05aec05827c202205642fa3448cc4b101c51d6d81bfaefab166a53bfdb522519ff46e62b310f02ef[ALL] 03d56cd1ee8dfe0606a564e229484e800133036f649f41e45e8262e331222909d2",
                "hex": "47304402201b186daa8f6883c001571a908aea3ca45b8896d594a13cd1b21b05aec05827c202205642fa3448cc4b101c51d6d81bfaefab166a53bfdb522519ff46e62b310f02ef012103d56cd1ee8dfe0606a564e229484e800133036f649f41e45e8262e331222909d2"
              },
              "votype": "pubkeyhash"
            }
          ],
          "txouts": [
            {
              "amount": "0.2208981",
              "type": "pubkeyhash",
              "spent": false,
              "addresses": [
                "XqhLjSdF7DRUssmwzPWc34ENjf2oV1SWiF"
              ],
              "script": {
                "asm": "OP_DUP OP_HASH160 a4a202d7d47f3ce15527cd66b4eeadede8879c29 OP_EQUALVERIFY OP_CHECKSIG",
                "hex": "76a914a4a202d7d47f3ce15527cd66b4eeadede8879c2988ac",
                "reqsigs": 1
              }
            }
          ]
        },
        {
          "txid": "45b6c48ae64f18379a4fa268bd00565388f30ef560123887a17520f88f7ab674",
          "version": 2,
          "size": 520,
          "locktime": 0,
          "time": "2020-01-31 12:29:45 UTC",
          "datetime": "2020-01-31 12:29:45 UTC",
          "timestamp": 1580473785,
          "txins": [
            {
              "txout": "0bed3f2cd3a3aa3df1336bf3f37bf133932607adae39d2a1e5ae4f438588deb9",
              "vout": 0,
              "amount": "0.01102122",
              "addresses": [
                "Xufde7zv32zfky74fzJ9bLmAHbMCqUNTt1"
              ],
              "script": {
                "asm": "304402203b3a0ef118b88a4714cf6fcef2542331c36e038984d956c83fd7eec28ad434d30220623ddeac034f478db40aa21bfa00095361b33080104fe92530dd8af1643c8673[ALL] 0269a8d9bb9e1516ab1cc7e118963f2f41a06f8ac345334c9936529262e128ad30",
                "hex": "47304402203b3a0ef118b88a4714cf6fcef2542331c36e038984d956c83fd7eec28ad434d30220623ddeac034f478db40aa21bfa00095361b33080104fe92530dd8af1643c867301210269a8d9bb9e1516ab1cc7e118963f2f41a06f8ac345334c9936529262e128ad30"
              },
              "votype": "pubkeyhash"
            },
            {
              "txout": "7d01acd63784d1d86ba1db43c697d0e8d61655d12339022dc8e182b91d2ec6ca",
              "vout": 0,
              "amount": "0.19902597",
              "addresses": [
                "XvSC6LpaBPFBiqyvG4tfMrtQaAR7XjjSEL"
              ],
              "script": {
                "asm": "3045022100fecaa5cee5f48c6b08458ea5eb5e0b7e983095eb4b70d8826a9b1c1113fb5486022032b0115ec638c5a00ba37584950f304b66c870424280b85b2ec7acc944d97f10[ALL] 023a9341c9b156c246f3cd241812a0c92a6a0e86e35a331875635de82ac2163750",
                "hex": "483045022100fecaa5cee5f48c6b08458ea5eb5e0b7e983095eb4b70d8826a9b1c1113fb5486022032b0115ec638c5a00ba37584950f304b66c870424280b85b2ec7acc944d97f100121023a9341c9b156c246f3cd241812a0c92a6a0e86e35a331875635de82ac2163750"
              },
              "votype": "pubkeyhash"
            },
            {
              "txout": "a9ffb974c87354f44faad973a37dd6c26b8d9035c7440ba3e6e9c96d3454e130",
              "vout": 0,
              "amount": "0.02162485",
              "addresses": [
                "XvfMRH8b33er5hTQWJXZLciCB5XboPZdQ9"
              ],
              "script": {
                "asm": "3044022059f95779c7d25c6ae6f46a7bb47707ee522c45caa951cee9ae3bc80a468c7a8b022054c41cec4149b60ca3c60f91f525ad9113a29fca699981fd78dc3be829933660[ALL] 03b126f8017929c96681ce65bdade6a86520a28b3cca45764565a697b0995587f9",
                "hex": "473044022059f95779c7d25c6ae6f46a7bb47707ee522c45caa951cee9ae3bc80a468c7a8b022054c41cec4149b60ca3c60f91f525ad9113a29fca699981fd78dc3be829933660012103b126f8017929c96681ce65bdade6a86520a28b3cca45764565a697b0995587f9"
              },
              "votype": "pubkeyhash"
            }
          ],
          "txouts": [
            {
              "amount": "0.01076022",
              "type": "pubkeyhash",
              "spent": false,
              "addresses": [
                "XqCopnLwaB5opcUqCJdkxDSXBqercASBaE"
              ],
              "script": {
                "asm": "OP_DUP OP_HASH160 9f3c9043c258d4860c11bc1f57d92658674f3187 OP_EQUALVERIFY OP_CHECKSIG",
                "hex": "76a9149f3c9043c258d4860c11bc1f57d92658674f318788ac",
                "reqsigs": 1
              }
            },
            {
              "amount": "0.2209066",
              "type": "pubkeyhash",
              "spent": true,
              "addresses": [
                "XeBZBM6V6KKgPGcuqJThPbohU8DjY823Mm"
              ],
              "script": {
                "asm": "OP_DUP OP_HASH160 265689dec85348007ca6a17ebc6ecbda921529de OP_EQUALVERIFY OP_CHECKSIG",
                "hex": "76a914265689dec85348007ca6a17ebc6ecbda921529de88ac",
                "reqsigs": 1
              }
            }
          ]
        }
      ],
      "meta": {
        "totalCount": 2,
        "index": 0,
        "limit": 50,
        "results": 2
      }
    }
    
    Info

    The Address Unconfirmed Transactions Endpoint returns all information available about a particular address, including an array of unconfirmed transactions.

    HTTP Request

    GET /v1/bc/dash/${NETWORK}/address/${ADDRESS}/unconfirmed-transactions?index=0&limit=50

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    ADDRESS ------- Address in blockchain
    index 0 First index of returned txs
    limit 50 Sets the number of returned txs
    Meta Response
    Variable Type Description
    totalCount int Total count of the items in the listing for the given criteria
    index int Sequential index number of the items list start position (depends on the skip parameter) for the given criteria
    limit int Limit number of the items list (depends on the limit parameter) for the given criteria.
    results int Count of the items listed in the current response for the given criteria

    The default values of the query parameters index and limit are as follows: 0 and 50. ADDRESS is a string representing the public address you’re interested in querying, for example:

    XeBZBM6V6KKgPGcuqJThPbohU8DjY823Mm

    The returned object contains information about the address, including the number of transactions associated with it, and the corresponding full transaction records in descending order by blocktime.

    Multiple Addresses Details

    Code samples

    
    curl -X POST 'https://api.cryptoapis.io/v1/bc/dash/testnet/address/show-multiple' \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'\
      -d '{
    "addresses" : ["yQWD3ct7w7JM7dDjxQofdV8Bg2NerZicZW","yQiRbQeVayJQGzVz51RkEuUYT87edKdGhT","ycLZHR28qtmcCwonszAe7DYUHfQdygLxcS","yicfsQDuyc9DGWohqBV3eKcJ2nML4nMyUG","yNAGsg216oZzXULjEz972nJGjRSCLxcWLV"]
    }'
    
    
    
    POST /v1/bc/dash/testnet/address/show-multiple HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    {
    "addresses" : ["yQWD3ct7w7JM7dDjxQofdV8Bg2NerZicZW","yQiRbQeVayJQGzVz51RkEuUYT87edKdGhT","ycLZHR28qtmcCwonszAe7DYUHfQdygLxcS","yicfsQDuyc9DGWohqBV3eKcJ2nML4nMyUG","yNAGsg216oZzXULjEz972nJGjRSCLxcWLV"]
    }
    
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/testnet/address/show-multiple",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n\t\"addresses\": [\"yQWD3ct7w7JM7dDjxQofdV8Bg2NerZicZW\",\"yQiRbQeVayJQGzVz51RkEuUYT87edKdGhT\", \"ycLZHR28qtmcCwonszAe7DYUHfQdygLxcS\", \"yicfsQDuyc9DGWohqBV3eKcJ2nML4nMyUG\", \"yNAGsg216oZzXULjEz972nJGjRSCLxcWLV\"]}"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    const https = require('https');
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/testnet/address/show-multiple",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ addresses: 
    [\"yQWD3ct7w7JM7dDjxQofdV8Bg2NerZicZW\",\"yQiRbQeVayJQGzVz51RkEuUYT87edKdGhT\", \"ycLZHR28qtmcCwonszAe7DYUHfQdygLxcS\", \"yicfsQDuyc9DGWohqBV3eKcJ2nML4nMyUG\", \"yNAGsg216oZzXULjEz972nJGjRSCLxcWLV\"],
     });
    req.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/address/show-multiple');
    $request->setMethod(HTTP_METH_POST);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    $request->setBody('{
        "addresses": ["bchtest:qqmd9unmhkpx4pkmr6fkrr8rm6y77vckjvqe8aey35","bchtest:pprqmlj7fenk04ua4xxka8gafz2c084vsu7jr3ject","bchtest:pqtjmnzwqffkrk2349g3cecfwwjwxusvnq87n07cal"]
    }');
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/address/show-multiple")
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    request.body = "{\n\t\"addresses\": [\"yQWD3ct7w7JM7dDjxQofdV8Bg2NerZicZW\",\"yQiRbQeVayJQGzVz51RkEuUYT87edKdGhT\", \"ycLZHR28qtmcCwonszAe7DYUHfQdygLxcS\", \"yicfsQDuyc9DGWohqBV3eKcJ2nML4nMyUG\", \"yNAGsg216oZzXULjEz972nJGjRSCLxcWLV\"]}"
    response = http.request(request)
    puts response.read_body
    
    
    
    
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    payload = "{\n\t\"addresses\": [\"yQWD3ct7w7JM7dDjxQofdV8Bg2NerZicZW\",\"yQiRbQeVayJQGzVz51RkEuUYT87edKdGhT\", \"ycLZHR28qtmcCwonszAe7DYUHfQdygLxcS\", \"yicfsQDuyc9DGWohqBV3eKcJ2nML4nMyUG\", \"yNAGsg216oZzXULjEz972nJGjRSCLxcWLV\"]}"
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/dash/testnet/addresses/show-multiple, payload, headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    MediaType mediaType = MediaType.parse("application/json");
    RequestBody body = RequestBody.create(mediaType, "{\n\t\"addresses\": [\"yQWD3ct7w7JM7dDjxQofdV8Bg2NerZicZW\",\"yQiRbQeVayJQGzVz51RkEuUYT87edKdGhT\", \"ycLZHR28qtmcCwonszAe7DYUHfQdygLxcS\", \"yicfsQDuyc9DGWohqBV3eKcJ2nML4nMyUG\", \"yNAGsg216oZzXULjEz972nJGjRSCLxcWLV\"]}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/address/show-multiple")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/testnet/address/show-multiple"
    
        payload := strings.NewReader("{\n\t\"addresses\": [\"yQWD3ct7w7JM7dDjxQofdV8Bg2NerZicZW\",\"yQiRbQeVayJQGzVz51RkEuUYT87edKdGhT\", \"ycLZHR28qtmcCwonszAe7DYUHfQdygLxcS\", \"yicfsQDuyc9DGWohqBV3eKcJ2nML4nMyUG\", \"yNAGsg216oZzXULjEz972nJGjRSCLxcWLV\"]}");
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("X-API-Key", "my-api-key")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    

    Response Body

    {
      "payload": [
        {
          "address": "yQWD3ct7w7JM7dDjxQofdV8Bg2NerZicZW",
          "totalSpent": "0",
          "totalReceived": "0",
          "balance": "0",
          "txi": 0,
          "txo": 0,
          "txsCount": 0,
          "addresses": [
            "yQWD3ct7w7JM7dDjxQofdV8Bg2NerZicZW"
          ]
        },
        {
          "address": "yQiRbQeVayJQGzVz51RkEuUYT87edKdGhT",
          "totalSpent": "0",
          "totalReceived": "0",
          "balance": "0",
          "txi": 0,
          "txo": 0,
          "txsCount": 0,
          "addresses": [
            "yQiRbQeVayJQGzVz51RkEuUYT87edKdGhT"
          ]
        },
        {
          "address": "ycLZHR28qtmcCwonszAe7DYUHfQdygLxcS",
          "totalSpent": "0",
          "totalReceived": "0",
          "balance": "0",
          "txi": 0,
          "txo": 0,
          "txsCount": 0,
          "addresses": [
            "ycLZHR28qtmcCwonszAe7DYUHfQdygLxcS"
          ]
        },
        {
          "address": "yicfsQDuyc9DGWohqBV3eKcJ2nML4nMyUG",
          "totalSpent": "0",
          "totalReceived": "0",
          "balance": "0",
          "txi": 0,
          "txo": 0,
          "txsCount": 0,
          "addresses": [
            "yicfsQDuyc9DGWohqBV3eKcJ2nML4nMyUG"
          ]
        },
        {
          "address": "yNAGsg216oZzXULjEz972nJGjRSCLxcWLV",
          "totalSpent": "0",
          "totalReceived": "0",
          "balance": "0",
          "txi": 0,
          "txo": 0,
          "txsCount": 0,
          "addresses": [
            "yNAGsg216oZzXULjEz972nJGjRSCLxcWLV"
          ]
        }
      ],
      "meta": {
        "totalCount": 5,
        "limit": 5,
        "results": 5
      }
    }
    
    Info

    The Multiple Addresses Details Endpoint strikes a general information about the given addresses in the array.

    HTTP Request

    POST /v1/bc/dash/${NETWORK}/address/show-multiple

    Request Object

    {
    "addresses": [
    "yQWD3ct7w7JM7dDjxQofdV8Bg2NerZicZW",
    "yQiRbQeVayJQGzVz51RkEuUYT87edKdGhT",
    "ycLZHR28qtmcCwonszAe7DYUHfQdygLxcS",
    "yicfsQDuyc9DGWohqBV3eKcJ2nML4nMyUG",
    "yNAGsg216oZzXULjEz972nJGjRSCLxcWLV"
    ]
    }

    Max length of the array is 10 elements

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)

    As you can see from the code example, you need to provide several public addresses within the addresses array.

    The endpoint returns a string array with information about the addresses, including its balance in DASH and the number of transactions associated with it.

    Get Basic Transaction Details By Transaction ID (Txid)

    Sample Data

    
    curl -X GET 'https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/basic/txid/bb973628ebb03c68c1d11942da826afd400d0c3258e9ac1c0dafacdc4bcf83f9' \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/dash/mainnet/txs/basic/txid/bb973628ebb03c68c1d11942da826afd400d0c3258e9ac1c0dafacdc4bcf83f9 HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      }
    });
    
    $.get('https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/basic/txid/bb973628ebb03c68c1d11942da826afd400d0c3258e9ac1c0dafacdc4bcf83f9').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/txs/basic/txid/bb973628ebb03c68c1d11942da826afd400d0c3258e9ac1c0dafacdc4bcf83f9",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.on("data", function (data) {
        console.log(data);
      });
    });
    
    request.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/basic/txid/bb973628ebb03c68c1d11942da826afd400d0c3258e9ac1c0dafacdc4bcf83f9');
    $request->setMethod(HTTP_METH_GET);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/basic/txid/bb973628ebb03c68c1d11942da826afd400d0c3258e9ac1c0dafacdc4bcf83f9")
    http = Net::HTTP.new(url.host, url.port)
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/basic/txid/bb973628ebb03c68c1d11942da826afd400d0c3258e9ac1c0dafacdc4bcf83f9'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    response = requests.get(url, headers=headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/basic/txid/bb973628ebb03c68c1d11942da826afd400d0c3258e9ac1c0dafacdc4bcf83f9")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    import (
      "gopkg.in/resty.v0"
    )
    
    func main()
    {
        resp, err := resty.R().
          SetHeader("Content-Type", "application/json").
          SetHeader("X-API-Key", "my-api-key").
          Get("https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/basic/txid/bb973628ebb03c68c1d11942da826afd400d0c3258e9ac1c0dafacdc4bcf83f9")
    }
    

    Response Body

    {
        "payload": {
            "amount": 30.78125572,
            "fee": 0.00000226,
            "unit": "dash",
            "datetime": "2020-03-06 06:46:15 UTC",
            "timestamp": 1583477175,
            "confirmations": 1,
            "sent": {
                "XmqYVPLEewDCR1ekbNrTJtDrezsA2okrLb": 30.78125798
            },
            "received": {
                "XwYRUipRZrrTwx7b6Pmrsevrg6VmQx1yiH": 30.625422,
                "Xde93ap8FD9S4ef4tQLXkdHZ4Pj7jyD8ZD": 0.15583372
            }
        }
    }
    
    Info

    The Basic Transaction By Txid Endpoint returns basic information about a given transaction based on its id.

    HTTP Request

    GET /v1/bc/dash/${NETWORK}/txs/basic/txid/${TXID}

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    TXID ------- Id of the transaction in blockchain

    TXID is a string representing the id of the transaction you’re interested in querying, for example:

    bb973628ebb03c68c1d11942da826afd400d0c3258e9ac1c0dafacdc4bcf83f9

    The returned object contains information about the transaction in JSON format, including the total amount transacted, sent, received and more.

    Get Transaction Details By Transaction ID (Txid)

    Sample Data

    
    curl -X GET 'https://api.cryptoapis.io/v1/bc/dash/testnet/txs/txid/9df2da1770e009bd7d75947fc9be07980bf30a67ae59a893cb89c1f4eeb57a19' \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/dash/testnet/txs/txid/9df2da1770e009bd7d75947fc9be07980bf30a67ae59a893cb89c1f4eeb57a19 HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      }
    });
    
    $.get('https://api.cryptoapis.io/v1/bc/dash/testnet/txs/txid/9df2da1770e009bd7d75947fc9be07980bf30a67ae59a893cb89c1f4eeb57a19').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/testnet/txs/txid/9df2da1770e009bd7d75947fc9be07980bf30a67ae59a893cb89c1f4eeb57a19",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.on("data", function (data) {
        console.log(data);
      });
    });
    
    request.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/txs/txid/9df2da1770e009bd7d75947fc9be07980bf30a67ae59a893cb89c1f4eeb57a19');
    $request->setMethod(HTTP_METH_GET);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/txid/9df2da1770e009bd7d75947fc9be07980bf30a67ae59a893cb89c1f4eeb57a19")
    http = Net::HTTP.new(url.host, url.port)
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/dash/testnet/txs/txid/9df2da1770e009bd7d75947fc9be07980bf30a67ae59a893cb89c1f4eeb57a19'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    response = requests.get(url, headers=headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/txid/9df2da1770e009bd7d75947fc9be07980bf30a67ae59a893cb89c1f4eeb57a19")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    import (
      "gopkg.in/resty.v0"
    )
    
    func main()
    {
        resp, err := resty.R().
          SetHeader("Content-Type", "application/json").
          SetHeader("X-API-Key", "my-api-key").
          Get("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/txid/9df2da1770e009bd7d75947fc9be07980bf30a67ae59a893cb89c1f4eeb57a19")
    }
    

    Response Body

    {
      "payload": {
          "txid": "9df2da1770e009bd7d75947fc9be07980bf30a67ae59a893cb89c1f4eeb57a19",
          "index": 0,
          "version": 3,
          "size": 266,
          "locktime": 0,
          "time": "2019-06-25 00:21:16 UTC", //deprecated
          "datetime": "2019-06-25 00:21:16 UTC",
          "blockhash": "000000000656d1ff30e0df477d6b60e1c57e98866a0c238668bb64016e30eee2",
          "blockheight": 124203,
          "blocktime": "2019-06-25 00:21:16 UTC",
          "timestamp": 1561422076,
          "confirmations": 201,
          "txins": [
              {
                  "coinbase": "032be50104fc68115d08fabe6d6de52200024600000000ac884f89f33690874a4adb242601e91164f810863088140100000000000000580000365a0000000d2f6e6f64655374726174756d2f",
                  "addresses": []
              }
          ],
          "txouts": [
              {
                  "amount": "11.25",
                  "type": "pubkeyhash",
                  "spent": false,
                  "addresses": [
                      "yd5KMREs3GLMe6mTJYr3YrH1juwNwrFCfB"
                  ],
                  "script": {
                      "asm": "OP_DUP OP_HASH160 b7ce0ea9ce2010f58ba4aaa6caa76671c438e890 OP_EQUALVERIFY OP_CHECKSIG",
                      "hex": "76a914b7ce0ea9ce2010f58ba4aaa6caa76671c438e89088ac",
                      "reqsigs": 1
                  }
              },
              {
                  "amount": "11.25",
                  "type": "pubkeyhash",
                  "spent": false,
                  "addresses": [
                      "yNd22WXgGRuVvgZfQMQBMfG5MdkqEFncB8"
                  ],
                  "script": {
                      "asm": "OP_DUP OP_HASH160 194304ad6c51fa2cd1ff75e4bc64191de16cbb97 OP_EQUALVERIFY OP_CHECKSIG",
                      "hex": "76a914194304ad6c51fa2cd1ff75e4bc64191de16cbb9788ac",
                      "reqsigs": 1
                  }
              }
          ]
      }
    }
    
    Info

    The Transaction Txid Endpoint returns detailed information about a given transaction based on its id.

    HTTP Request

    GET /v1/bc/dash/${NETWORK}/txs/txid/${TXID}

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    TXID ------- Id of the transaction in blockchain

    TXID is a string representing the id of the block you’re interested in querying, for example:

    9df2da1770e009bd7d75947fc9be07980bf30a67ae59a893cb89c1f4eeb57a19

    The returned object contains information about the transaction in JSON format, including its block information, the total amount transacted with it (in dashcoins), the inputs and outputs, and more.

    Get Unconfirmed Transaction Details By Transaction ID (Txid)

    Sample Data

    
    curl -X GET 'https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/unconfirmed/txid/3614f0b48c28c299ac927df6f883131e3c8f5534471115944eaa529c7eb89fd9' \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/dash/mainnet/txs/unconfirmed/txid/3614f0b48c28c299ac927df6f883131e3c8f5534471115944eaa529c7eb89fd9 HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      }
    });
    
    $.get('https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/unconfirmed/txid/3614f0b48c28c299ac927df6f883131e3c8f5534471115944eaa529c7eb89fd9').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/txs/unconfirmed/txid/3614f0b48c28c299ac927df6f883131e3c8f5534471115944eaa529c7eb89fd9",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.on("data", function (data) {
        console.log(data);
      });
    });
    
    request.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/unconfirmed/txid/3614f0b48c28c299ac927df6f883131e3c8f5534471115944eaa529c7eb89fd9');
    $request->setMethod(HTTP_METH_GET);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/unconfirmed/txid/3614f0b48c28c299ac927df6f883131e3c8f5534471115944eaa529c7eb89fd9")
    http = Net::HTTP.new(url.host, url.port)
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/unconfirmed/txid/3614f0b48c28c299ac927df6f883131e3c8f5534471115944eaa529c7eb89fd9'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    response = requests.get(url, headers=headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/unconfirmed/txid/3614f0b48c28c299ac927df6f883131e3c8f5534471115944eaa529c7eb89fd9")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    import (
      "gopkg.in/resty.v0"
    )
    
    func main()
    {
        resp, err := resty.R().
          SetHeader("Content-Type", "application/json").
          SetHeader("X-API-Key", "my-api-key").
          Get("https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/unconfirmed/txid/3614f0b48c28c299ac927df6f883131e3c8f5534471115944eaa529c7eb89fd9")
    }
    

    Response Body

    {
      "payload": {
        "txid": "0277852326ceff3f9187f71eee9f8e458df620a123710bdba15823141693436a",
        "version": 2,
        "size": 226,
        "locktime": 0,
        "time": "2020-07-30 18:07:42 UTC",
        "datetime": "2020-07-30 18:07:42 UTC",
        "timestamp": 1596132462,
        "txins": [
          {
            "txout": "fa5ed232d21b81dce9efaf5a96c760091dc520d72c8596c02220dabbe64b602e",
            "vout": 0,
            "amount": "0.16350775",
            "addresses": [
              "XcvJfx4XvnNJR9UkNfTtFUqT6sfeVoLCjF"
            ],
            "script": {
              "asm": "3045022100cb23c4a12c5a2a810f61180184c03ffc0273101c5df3ecd7ba98ea7c6cd83ce70220772b2afa4b2a73c131c627ce5745d8616a9181a18b9a22c4d941e164ffd69b9f[ALL] 02cd800635dbf6cdfd544e277a8a06205e5d279fea2129fae94b0b0934b65b2775",
              "hex": "483045022100cb23c4a12c5a2a810f61180184c03ffc0273101c5df3ecd7ba98ea7c6cd83ce70220772b2afa4b2a73c131c627ce5745d8616a9181a18b9a22c4d941e164ffd69b9f012102cd800635dbf6cdfd544e277a8a06205e5d279fea2129fae94b0b0934b65b2775"
            },
            "votype": "pubkeyhash"
          }
        ],
        "txouts": [
          {
            "amount": "0.06533599",
            "type": "pubkeyhash",
            "spent": false,
            "addresses": [
              "XiKN6DUt8LeEKuSrcRgKk8BHHBdC2STFvw"
            ],
            "script": {
              "asm": "OP_DUP OP_HASH160 53b11cfa6e180dae8cb08e445e0c1df5d1e7788a OP_EQUALVERIFY OP_CHECKSIG",
              "hex": "76a91453b11cfa6e180dae8cb08e445e0c1df5d1e7788a88ac",
              "reqsigs": 1
            }
          },
          {
            "amount": "0.0981695",
            "type": "pubkeyhash",
            "spent": false,
            "addresses": [
              "XfjrXZg5CbcFodDy3BAMeLVbsxjMo78jjh"
            ],
            "script": {
              "asm": "OP_DUP OP_HASH160 376a74fc0dc6ac37ba02885c4375b4fc6c4e4939 OP_EQUALVERIFY OP_CHECKSIG",
              "hex": "76a914376a74fc0dc6ac37ba02885c4375b4fc6c4e493988ac",
              "reqsigs": 1
            }
          }
        ]
      }
    }
    
    Info

    The Unconfirmed Transaction By Txid Endpoint returns detailed information about a given transaction based on its id.

    HTTP Request

    GET /v1/bc/dash/${NETWORK}/txs/unconfirmed/txid/${TXID}

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    TXID ------- Id of the transaction in blockchain

    TXID is a string representing the id of the block you’re interested in querying, for example:

    3614f0b48c28c299ac927df6f883131e3c8f5534471115944eaa529c7eb89fd9

    The returned object contains information about the transaction in JSON format, the total amount transacted with it (in bitcoins), the inputs and outputs, and more.

    Get Transactions By Block Number

    Sample Data

    
    curl -X GET 'https://api.cryptoapis.io/v1/bc/dash/testnet/txs/block/0000000006afa4b398ea157a5c3db94eefe824097c4e8d0e644aaa57e06126b1' \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/dash/testnet/txs/block/0000000006afa4b398ea157a5c3db94eefe824097c4e8d0e644aaa57e06126b1 HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    k
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      }
    });
    
    $.get('https://api.cryptoapis.io/v1/bc/dash/testnet/txs/block/0000000006afa4b398ea157a5c3db94eefe824097c4e8d0e644aaa57e06126b1').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/testnet/txs/block/0000000006afa4b398ea157a5c3db94eefe824097c4e8d0e644aaa57e06126b1",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.on("data", function (data) {
        console.log(data);
      });
    });
    
    request.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/txs/block/0000000006afa4b398ea157a5c3db94eefe824097c4e8d0e644aaa57e06126b1');
    $request->setMethod(HTTP_METH_GET);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/block/0000000006afa4b398ea157a5c3db94eefe824097c4e8d0e644aaa57e06126b1")
    http = Net::HTTP.new(url.host, url.port)
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/dash/testnet/txs/block/0000000006afa4b398ea157a5c3db94eefe824097c4e8d0e644aaa57e06126b1'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    response = requests.get(url, headers=headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/block/0000000006afa4b398ea157a5c3db94eefe824097c4e8d0e644aaa57e06126b1")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    import (
      "gopkg.in/resty.v0"
    )
    
    func main()
    {
        resp, err := resty.R().
          SetHeader("Content-Type", "application/json").
          SetHeader("X-API-Key", "my-api-key").
          Get("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/block/0000000006afa4b398ea157a5c3db94eefe824097c4e8d0e644aaa57e06126b1")
    }
    
    

    Response Body

    {
        "payload": [
            {
                "txid": "f043632b7a2d922477f435662d2e9d8502e8e3d7eb93f0c84efd16423f0faaf1",
                "index": 0,
                "version": 3,
                "size": 266,
                "locktime": 0,
                "time": "2019-06-25 07:41:34 UTC",
                "blockhash": "0000000006afa4b398ea157a5c3db94eefe824097c4e8d0e644aaa57e06126b1",
                "blockheight": 124403,
                "blocktime": "2019-06-25 07:41:34 UTC",
                "timestamp": 1561448494,
                "confirmations": 1,
                "txins": [
                    {
                        "coinbase": "03f3e501042ed0115d08fabe6d6ddbea809cb6bc45ec4f032101152d9aea2928fb290acb24828de6e250689e6434010000000000000000000025710000000d2f6e6f64655374726174756d2f",
                        "addresses": []
                    }
                ],
                "txouts": [
                    {
                        "amount": "11.25",
                        "type": "pubkeyhash",
                        "spent": false,
                        "addresses": [
                            "yereyozxENB9jbhqpbg1coE5c39ExqLSaG"
                        ],
                        "script": {
                            "asm": "OP_DUP OP_HASH160 cb594917ad4e5849688ec63f29a0f7f3badb5da6 OP_EQUALVERIFY OP_CHECKSIG",
                            "hex": "76a914cb594917ad4e5849688ec63f29a0f7f3badb5da688ac",
                            "reqsigs": 1
                        }
                    },
                    {
                        "amount": "11.25",
                        "type": "pubkeyhash",
                        "spent": false,
                        "addresses": [
                            "yQwBx9TYA6jSzKtHeDL5CjiYtCrraWzkAL"
                        ],
                        "script": {
                            "asm": "OP_DUP OP_HASH160 32a30abc140f35d8310aeba0cce91d6aa0910498 OP_EQUALVERIFY OP_CHECKSIG",
                            "hex": "76a91432a30abc140f35d8310aeba0cce91d6aa091049888ac",
                            "reqsigs": 1
                        }
                    }
                ]
            },
            {
                "txid": "05572ccaf79d0adfab9abef1f25d2875a62fcc75168bd2dd7567475105201679",
                "index": 1,
                "version": 3,
                "size": 342,
                "locktime": 0,
                "time": "2019-06-25 07:41:34 UTC",
                "blockhash": "0000000006afa4b398ea157a5c3db94eefe824097c4e8d0e644aaa57e06126b1",
                "blockheight": 124403,
                "blocktime": "2019-06-25 07:41:34 UTC",
                "timestamp": 1561448494,
                "confirmations": 1,
                "txins": [],
                "txouts": []
            }
        ],
        "meta": {
            "totalCount": 2,
            "index": 0,
            "limit": 50,
            "results": 2
        }
    }
    
    Info

    The Transaction Index by Block Endpoint returns detailed information about a list of transactions. The endpoint is useable both with block height and block hash. index and limit query parameters might also be used, as their default values are, as follows: 0, 1. Therefore, if none is specified the returned object will be the first transaction (the coinbase transaction) included in the block.

    HTTP Request

    GET /v1/bc/dash/${NETWORK}/txs/block/${BLOCK}?index=0&limit=1

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    BLOCK ------- Block height or block hash in blockchain
    index 0 index to start from
    limit 1 number of transactions to be returned
    Meta Response
    Variable Type Description
    totalCount int Total count of the items in the listing for the given criteria
    index int Sequential index number of the items list start position (depends on the skip parameter) for the given criteria
    limit int Limit number of the items list (depends on the limit parameter) for the given criteria.
    results int Count of the items listed in the current response for the given criteria

    BLOCK is a string or an integer representing the hash or the height of the block you’re interested in querying, for example:

    08362fd156d3076ac883cca5715b25dbd5576730de0863cf0cce50602d8dae0f

    or

    1985323

    The returned object contains information about the transaction in JSON format, including its block information, the total amount transacted with it (in dashcoins), the inputs and outputs, and more.

    Get Unconfirmed Transactions

    Sample Data

    
    curl -X GET 'https://api.cryptoapis.io/v1/bc/dash/testnet/txs/unconfirmed' \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/dash/testnet/txs HTTP/1.1
    Host: api.cryptoapis.io
    X-API-Key: my-api-key
    Content-Type: application/json
    
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/testnet/txs/unconfirmed",
      "method": "GET",
      "headers": {
        "authorization": "my-api-key",
        "content-type": "application/json"
      }
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    var http = require("https");
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "port": null,
      "path": "/v1/bc/dash/testnet/txs/unconfirmed",
      "headers": {
        "authorization": "my-api-key",
        "content-type": "application/json"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/txs/unconfirmed');
    $request->setMethod(HTTP_METH_GET);
    
    $request->setHeaders(array(
      'content-type' => 'application/json',
      'authorization' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/unconfirmed")
    
    http = Net::HTTP.new(url.host, url.port)
    http.use_ssl = true
    http.verify_mode = OpenSSL::SSL::VERIFY_NONE
    
    request = Net::HTTP::Get.new(url)
    request["content-type"] = 'application/json'
    request["authorization"] = 'my-api-key'
    
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    
    url = "https://api.cryptoapis.io/v1/bc/dash/testnet/txs/unconfirmed"
    
    headers = {
        'content-type': "application/json",
        'authorization': "my-api-key"
        }
    
    response = requests.request("GET", url, headers=headers)
    
    print(response.text)
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/unconfirmed")
      .get()
      .addHeader("authorization", "my-api-key")
      .addHeader("content-type", "application/json")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    package main
    
    import (
        "fmt"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/testnet/txs/unconfirmed"
    
        req, _ := http.NewRequest("GET", url, nil)
    
        req.Header.Add("authorization", "my-api-key")
        req.Header.Add("content-type", "application/json")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    

    Response Body

    {
        "payload": [
              {
              "txid": "ef0854b2fbd5acf5cdfaa53d57518e7cf808db7a1eeab3c5404df321b2ea2d0d",
              "size": 119,
              "version": 2,
              "locktime": 0,
              "vin": [
                  {
                      "txid": "d3b9caafed7afb82a7a829fcb759ae27c9b140be01ea98bf9c36cef0ade4bd2d",
                      "sequence": 4294967295,
                      "vout": 1,
                      "scriptSig": {
                          "asm": "",
                          "hex": ""
                      }
                  }
              ],
              "vout": [
                  {
                      "value": "21.309",
                      "n": 0,
                      "scriptPubKey": {
                          "asm": "OP_DUP OP_HASH160 0b974dc2170aaf6759800466b93ecb9305c29248 OP_EQUALVERIFY OP_CHECKSIG",
                          "hex": "76a9140b974dc2170aaf6759800466b93ecb9305c2924888ac",
                          "reqSigs": 1,
                          "type": "pubkeyhash",
                          "addresses": [
                              "yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98"
                          ]
                      }
                  },
                  {
                      "value": "0.41373718",
                      "n": 1,
                      "scriptPubKey": {
                          "asm": "OP_DUP OP_HASH160 68a3b32fd54f6998f92d155cfb23b662acc4bb52 OP_EQUALVERIFY OP_CHECKSIG",
                          "hex": "76a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac",
                          "reqSigs": 1,
                          "type": "pubkeyhash",
                          "addresses": [
                              "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc"
                          ]
                      }
                  }
              ]
          }
        ],
        "meta": {
            "totalCount": 1,
            "index": 0,
            "limit": 50,
            "results": 1
        }
    }
    
    Info

    The Unconfirmed Transactions Endpoint returns an array of the latest transactions relayed by nodes in a blockchain that haven’t been included in any blocks.

    HTTP Request

    GET /v1/bc/dash/${NETWORK}/txs/unconfirmed?index=0&limit=100

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    index 0 skip parameter
    limit ------- Sets the number of returned txs
    Meta Response
    Variable Type Description
    totalCount int Total count of the items in the listing for the given criteria
    index int Sequential index number of the items list start position (depends on the skip parameter) for the given criteria
    limit int Limit number of the items list (depends on the limit parameter) for the given criteria.
    results int Count of the items listed in the current response for the given criteria

    The returned object is an array of transactions that haven’t been included in blocks, arranged in reverse chronological order (latest is first, then older transactions follow).

    Get Raw Transaction Hex By Transaction ID (Txid)

    Sample Data

    
    curl -X GET 'https://api.cryptoapis.io/v1/bc/dash/testnet/txs/raw/txid/2736c9ac4eb64a4f776345744045cccf2bd52eac86941959c2a91da6b00affdf' \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/dash/testnet/txs/raw/txid/2736c9ac4eb64a4f776345744045cccf2bd52eac86941959c2a91da6b00affdf HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      }
    });
    
    $.get('https://api.cryptoapis.io/v1/bc/dash/testnet/txs/raw/txid/2736c9ac4eb64a4f776345744045cccf2bd52eac86941959c2a91da6b00affdf').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/testnet/txs/raw/txid/2736c9ac4eb64a4f776345744045cccf2bd52eac86941959c2a91da6b00affdf",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.on("data", function (data) {
        console.log(data);
      });
    });
    
    request.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/txs/raw/txid/2736c9ac4eb64a4f776345744045cccf2bd52eac86941959c2a91da6b00affdf');
    $request->setMethod(HTTP_METH_GET);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/raw/txid/2736c9ac4eb64a4f776345744045cccf2bd52eac86941959c2a91da6b00affdf")
    http = Net::HTTP.new(url.host, url.port)
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/dash/testnet/txs/raw/txid/2736c9ac4eb64a4f776345744045cccf2bd52eac86941959c2a91da6b00affdf'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    response = requests.get(url, headers=headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/raw/txid/2736c9ac4eb64a4f776345744045cccf2bd52eac86941959c2a91da6b00affdf")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    import (
      "gopkg.in/resty.v0"
    )
    
    func main()
    {
        resp, err := resty.R().
          SetHeader("Content-Type", "application/json").
          SetHeader("X-API-Key", "my-api-key").
          Get("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/raw/txid/2736c9ac4eb64a4f776345744045cccf2bd52eac86941959c2a91da6b00affdf")
    }
    

    Response Body

    {
        "payload": {
            "hex": "0200000001f583c6ff4a94e206cc7b9f78a040d68967ba0fd53950db7db3750af1180ce684000000006a473044022028e12c7ecd104bac2b791b176e88c96e73561c1738090742355ecebc2363583902205b217f25aab21e9afee8e0faeea7fd2d899476d22f1722c249653f9942c2e5cb0121039105ae7b049b8495108ba7409c8e2199713b0690987eb39ad5a020d7531857faffffffff02cc777602000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac04000000000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac00000000"
        }
    }
    
    Info

    The Get Raw Transaction Endpoint returns raw transaction hex about a given transaction based on its id.

    HTTP Request

    GET /v1/bc/dash/${NETWORK}/txs/raw/txid/${TXID}

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    TXID ------- Id of the transaction in blockchain

    TXID is a string representing the id of the transaction you’re interested in querying, for example:

    2736c9ac4eb64a4f776345744045cccf2bd52eac86941959c2a91da6b00affdf

    The returned object contains information about the transaction in JSON format, including its raw transaction hex.

    Get Unspent Transaction Outputs By Address

    Sample Data

    
    curl -X GET 'https://api.cryptoapis.io/v1/bc/dash/testnet/address/yereyozxENB9jbhqpbg1coE5c39ExqLSaG/unspent-transactions' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/dash/testnet/address/yereyozxENB9jbhqpbg1coE5c39ExqLSaG/unspent-transactions HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      }
    });
    
    $.get('https://api.cryptoapis.io/v1/bc/dash/testnet/address/yereyozxENB9jbhqpbg1coE5c39ExqLSaG/unspent-transactions').then(function(d) {console.log(d)});dash
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/address/yereyozxENB9jbhqpbg1coE5c39ExqLSaG/unspent-transactions",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.on("data", function (data) {
        console.log(data);
      });
    });
    
    request.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/address/yereyozxENB9jbhqpbg1coE5c39ExqLSaG/unspent-transactions');
    $request->setMethod(HTTP_METH_GET);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/address/yereyozxENB9jbhqpbg1coE5c39ExqLSaG/unspent-transactions")
    http = Net::HTTP.new(url.host, url.port)
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/dash/testnet/address/yereyozxENB9jbhqpbg1coE5c39ExqLSaG/unspent-transactions'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    response = requests.get(url, headers=headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/address/yereyozxENB9jbhqpbg1coE5c39ExqLSaG/unspent-transactions")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    import (
      "gopkg.in/resty.v0"
    )
    
    func main()
    {
        resp, err := resty.R().
          SetHeader("Content-Type", "application/json").
          SetHeader("X-API-Key", "my-api-key").
          Get("https://api.cryptoapis.io/v1/bc/dash/testnet/address/yereyozxENB9jbhqpbg1coE5c39ExqLSaG/unspent-transactions")
    }
    
    

    Response Body

    {
        "payload": [
            {
                "txid": "ebadf33e00c1c77d18e2fc61a35d3ce44438624fca7efef1772d2339ba7c7a43",
                "vout": 0,
                "amount": 10.44665936
            },
            {
                "txid": "643b4d811d051fb675aad5e9c8db627a808bde25a48a87232bc2f51c9d930a11",
                "vout": 0,
                "amount": 10.44678458
            },
            {
                "txid": "2cfdb7a76b8793c2df1009481ad5b82a701aba47a1ae8ed115210b9360e157e7",
                "vout": 0,
                "amount": 10.44642865
            },
            ...
            {
                "txid": "1243e94348e28ee1b933bc5c6274b32aab6a830aa9e11ce77100a18cd7d4c1c8",
                "vout": 0,
                "amount": 10.44642865
            }
        ],
        "meta": {
            "totalCount": 162,
            "results": 162
        }
    }
    
    Info

    The Unspent Transaction Outputs Endpoint returns the needed information of the previous unspent transaction outputs (also known as UTXOs) to build new transaction.

    HTTP Request

    GET /v1/bc/dash/${NETWORK}/address/${ADDRESS}/unspent-transactions

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    ADDRESS ------- Address in blockchain
    Meta Response
    Variable Type Description
    totalCount int Total count of the items in the listing for the given criteria
    index int Sequential index number of the items list start position (depends on the skip parameter) for the given criteria
    limit int Limit number of the items list (depends on the limit parameter) for the given criteria.
    results int Count of the items listed in the current response for the given criteria

    ADDRESS is a string representing the public address you’re interested in querying, for example:

    yereyozxENB9jbhqpbg1coE5c39ExqLSaG

    The returned object contains the needed information about the unspent transaction outputs of an address to build a transaction.

    HD Wallets

    Hierarchical Deterministic (HD) Wallets

    We also offer support for HD Wallets, which make it easy to manage multiple addresses under a single name. All HD wallet addresses are derived from a single seed. Please see BIP32 for more background on HD wallets.

    HD Wallets can be created, deleted, and have new addresses generated. However, unlike normal Wallets, addresses cannot be removed.

    When creating a wallet, one can optionally include one or more “sudashain” indexes. These sudashains can later be referenced when generating new addresses or sending txs. If none are provided in wallet creation, the wallet will derive & use addresses straight from the given extended pubkey. If no index is given when using the wallet with other APIs, it defaults to using the wallet’s first (sub) chain.

    In BIP32 notation, the wallet layout is m/0, m/1, … and m/i/0, m/i/1, … for each sudashain i if the wallet has sudashains. For example, the path of the fourth address generated is m/3 for a non-sudashain wallet. The path of the fourth address at sudashain index two is m/2/3. Note that this is different from the default BIP32 wallet layout.

    If you want to use BIP32 default wallet layout you can submit the extended public key of m/0’ (which can only be derived from your master private key) with sudashain indexes = [0, 1]. Sudashain index 0 represents the external chain (of account 0) and will discover all k keypairs that look like: m/0’/0/k. Sudashain index 1 represents the internal chain (of account 0) and will discover all k keypairs in m/0’/1/k.

    If you want to use BIP 44 layout (for dash), you can submit the extended public key of m/44’/0’/0’. (which can only be derived from your master private key) with sudashain indexes = [0, 1]. Sudashain index 0 represents the external chain (of account 0) and will discover all k keypairs in m/44’/0’/0’/0/k. Sudashain index 1 represents the internal chain (of account 0) and will discover all k keypairs in m/44’/0’/0’/1/k.

    If an address ahead of current addresses listed in an HD Wallet receives a transaction, it will be added, along with any addresses between the new address and the last used one.

    Using Hierarchical Deterministic (HD) Wallets

    HD Wallets can be leveraged by the Address API, just by using their $NAME instead of $ADDRESS. They can also be used with Events and with the Transaction API. In general, using a wallet instead of an address in an API will have the effect of batching the set of addresses contained in the wallet

    The following code examples should be considered serially; that is to say, the results will appear as if each API call were done sequentially. Also, $NAME is a string representing the name of your wallet, for example:

    alice

    Create Wallet

    Sample Data

    
    #### normal wallet
    curl -X POST \
      https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/ \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
        "walletName" : "demowallet",
        "addresses": ["yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc", "yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98"]
    }'
    
    #### hd wallet
    curl -X POST \
      https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/ \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
        "walletName" : "demohdwallet",
        "addressCount" : 3,
        "password" : "8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32"
    }'
    
    
    
    #### normal wallet
    POST /v1/bc/dash/testnet/wallets HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    {
        "walletName" : "demowallet",
        "addresses" : ["yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc", "yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98"]
    }
    
    #### hd wallet
    POST /v1/bc/dash/testnet/wallets/hd HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    {
        "walletName" : "demohdwallet",
        "addressCount" : 3,
        "password" : "8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32"
    }
    
    
    
    // normal wallet
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n\t\"walletName\" : \"demowallet\",\n\t\"addresses\" : [\"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\", \"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98\"]\n}"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    // hd wallet
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n\t\"walletName\" : \"demohdwallet\",\n\t\"addressCount\" : 3,\n\t\"password\" : \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\"\n}"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    // normal wallet
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/testnet/wallets",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({
      walletName: 'demowallet',
      addresses: 
       ["yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc", "yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98"] }));
    req.end();
    
    // hd wallet
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/testnet/wallets/hd",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({
      walletName: 'demohdwallet',
      addressCount: 3,
      password: '8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32' }));
    req.end();
    
    
    
    <?php
    
    // normal wallet
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    $request->setBody('{
        "walletName" : "demowallet",
        "addresses" : ["yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc", "yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98"]
    }');
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    // hd wallet
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    $request->setBody('{
        "walletName" : "demohdwallet",
        "addressCount" : 3,
        "password" : "8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32"
    }');
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    
    ?>
    
    
    
    ####noraml wallet
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    request.body = "{\n\t\"walletName\" : \"demowallet\",\n\t\"addresses\" : [\"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\", \"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98\"]\n}"
    
    response = http.request(request)
    puts response.read_body
    
    #### hd wallet
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    request.body = "{\n\t\"walletName\" : \"demohdwallet\",\n\t\"addressCount\" : 3,\n\t\"password\" : \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\"\n}"
    
    response = http.request(request)
    puts response.read_body
    
    
    
    #### normal wallet
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    payload = "{\n\t\"walletName\" : \"demowallet\",\n\t\"addresses\" : [\"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\", \"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98\"]\n}"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/dash/testnet/wallets", payload, headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    #### hd wallet
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    payload = "{\n\t\"walletName\" : \"demohdwallet\",\n\t\"addressCount\" : 3,\n\t\"password\" : \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\"\n}"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/dash/testnet/wallets/hd", payload, headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    
    
    // normal wallet
    OkHttpClient client = new OkHttpClient();
    
    MediaType mediaType = MediaType.parse("application/json");
    RequestBody body = RequestBody.create(mediaType, "{\\n\t\"walletName\" : \"demowallet\",\n\t\"addresses\" : [\"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\", \"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98\"]\n}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    // hd wallet
    OkHttpClient client = new OkHttpClient();
    
    MediaType mediaType = MediaType.parse("application/json");
    RequestBody body = RequestBody.create(mediaType, "{\n\t\"walletName\" : \"demohdwallet\",\n\t\"addressCount\" : 3,\n\t\"password\" : \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\"\n}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    // notmal wallet
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/testnet/wallets"
    
        payload := strings.NewReader("{\n\t\"walletName\" : \"demowallet\",\n\t\"addresses\" : [\"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\", \"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98\"]\n}")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("X-API-Key", "my-api-key")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    // hd wallet
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd"
    
        payload := strings.NewReader("{\n\t\"walletName\" : \"demohdwallet\",\n\t\"addressCount\" : 3,\n\t\"password\" : \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\"\n}")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("X-API-Key", "my-api-key")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    

    Response Body

    // normal wallet
    {
      "payload": {
          "walletName": "demowallet",
          "addresses": [
              "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc",
              "yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98"
          ]
      }
    }
    
    // hd wallet
    {
      "payload": {
          "walletName": "demohdwallet",
          "addresses": [
              {
                  "address": "yguXUVGiC8C6e2taikbA7VM1Q3ncAtbr7k",
                  "path": "M/0H/0/0"
              },
              {
                  "address": "yaioehvihdu7F7e4fQfu1tCMa6rmT8V2rX",
                  "path": "M/0H/0/1"
              },
              {
                  "address": "yaDB2NTnj8SAhqUQSj4tkkNNBA9jJrAk3u",
                  "path": "M/0H/0/2"
              }
          ]
      }
    }
    
    HTTP Request

    POST /v1/bc/dash/${NETWORK}/wallets/hd

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    HD_WALLET_NAME ------- Wallet name
    ADDRESSES ------- Array of addresses that will be added to wallet
    ADDRESS_COUNT ------- Number of addresses that should be generated in the new wallet
    PASSWORD ------- Wallet password
    Request Wallet Object

    { "walletName" : ${HD_WALLET_NAME}, "addresses" : ${ADDRESSES} }

    Request HD Wallet Object

    { "walletName" : ${HD_WALLET_NAME}, "addressCount" : ${ADDRESS_COUNT}, "password" : ${PASSWORD} }

    This endpoint allows you to create a new wallet, by POSTing a partially filled out Wallet or HDWallet object, depending on the endpoint.

    For HD wallets, you must include HD_WALLET_NAME, the ADDRESS_COUNT and the PASSWORD attributes.

    If successful, it will return a Wallet or HDWallet object with the data you requested.

    List My Wallets

    Sample Data

    
    #### normal wallet
    curl -X GET \
      https://api.cryptoapis.io/v1/bc/dash/testnet/wallets \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    #### hd wallet
    curl -X GET \
      https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd \
      -H 'Content-Type: application/json'
      -H 'X-API-Key: my-api-key'
    
    
    
    #### normal wallet
    GET /v1/bc/dash/testnet/wallets HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    #### hd wallet
    GET /v1/bc/dash/testnet/wallets/hd HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    
    // normal wallet
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/testnet/wallets",
      "method": "GET",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    // hd wallet
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd",
      "method": "GET",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    // normal wallet
    var http = require("http");
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/testnet/wallets",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.end();
    
    // hd wallet
    var http = require("http");
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/testnet/wallets/hd",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.end();
    
    
    
    <?php
    
    // normal wallet
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/wallets');
    $request->setMethod(HTTP_METH_GET);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    // hd wallet
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd');
    $request->setMethod(HTTP_METH_GET);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    
    
    ####noraml wallet
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/wallets")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    
    response = http.request(request)
    puts response.read_body
    
    #### hd wallet
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    
    response = http.request(request)
    puts response.read_body
    
    
    
    #### normal wallet
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    headers = {
      "Content-Type": "application/json",
      "X-API-Key", "my-api-key"
    }
    
    conn.request("GET", "/v1/bc/dash/testnet/wallets", headers=headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    #### hd wallet
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    headers = {
      "Content-Type": "application/json",
      "X-API-Key", "my-api-key"
    }
    
    conn.request("GET", "/v1/bc/dash/testnet/wallets/hd", headers=headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    
    
    // normal wallet
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/wallets")
      .get()
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    // hd wallet
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd")
      .get()
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    // notmal wallet
    package main
    
    import (
        "fmt"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/testnet/wallets"
    
        req, _ := http.NewRequest("GET", url, nil)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("X-API-Key", "my-api-key")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    // hd wallet
    package main
    
    import (
        "fmt"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd"
    
        req, _ := http.NewRequest("GET", url, nil)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("X-API-Key", "my-api-key")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    }
    
    

    Response Body

    // normal wallet
    {
        "payload": [
            "demowallet"
        ],
        "meta": {
            "totalCount": 1,
            "results": 1
        }
    }
    
    // hd wallet
    {
        "payload": [
            "demohdwallet"
        ],
        "meta": {
            "totalCount": 1,
            "results": 1
        }
    }
    
    HTTP Request

    GET /v1/bc/dash/${NETWORK}/wallets/hd

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)

    This endpoint returns a string array ($NAMEARRAY) of active wallet names (both normal ор HD) under the token you queried. You can then query detailed information on individual wallets (via their names) by leveraging the Get Wallet Endpoint.

    Get Wallet Details

    Sample Data

    
    #### normal wallet
    curl -X GET \
      https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/demowallet \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    #### hd wallet
    curl -X GET \
      https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/demohdwallet \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    
    
    #### normal wallet
    GET /v1/bc/dash/testnet/wallets/demowallet HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    #### hd wallet
    GET /v1/bc/dash/testnet/wallets/hd/demohdwallet HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    
    // normal wallet
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/demowallet",
      "method": "GET",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    // hd wallet
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/demohdwallet",
      "method": "GET",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    // normal wallet
    var http = require("http");
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/testnet/wallets/demowallet",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.end();
    
    // hd wallet
    var http = require("http");
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/testnet/wallets/hd/demohdwallet",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.end();
    
    
    
    <?php
    
    // normal wallet
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/demowallet');
    $request->setMethod(HTTP_METH_GET);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    // hd wallet
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/demohdwallet');
    $request->setMethod(HTTP_METH_GET);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    ?>
    
    
    
    
    ####noraml wallet
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/demowallet")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    
    response = http.request(request)
    puts response.read_body
    
    #### hd wallet
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/demohdwallet")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    
    response = http.request(request)
    puts response.read_body
    
    
    
    #### normal wallet
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    headers = {
      "Content-Type": "application/json",
      "X-API-Key", "my-api-key"
    }
    
    conn.request("GET", "/v1/bc/dash/testnet/wallets/demowallet", headers=headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    #### hd wallet
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    headers = {
      "Content-Type": "application/json",
      "X-API-Key", "my-api-key"
    }
    
    conn.request("GET", "/v1/bc/dash/testnet/wallets/hd/demohdwallet", headers=headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    
    
    // normal wallet
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/demowallet")
      .get()
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    // hd wallet
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/demohdwallet")
      .get()
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    // notmal wallet
    package main
    
    import (
        "fmt"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/demowallet"
    
        req, _ := http.NewRequest("GET", url, nil)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("X-API-Key", "my-api-key")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    // hd wallet
    package main
    
    import (
        "fmt"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/demohdwallet"
    
        req, _ := http.NewRequest("GET", url, nil)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("X-API-Key", "my-api-key")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    

    Response Body

    // normal wallet
    {
      "payload": {
          "walletName": "demowallet",
          "addresses": [
              {
                  "address": "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc",
                  "balance": "2.41718577"
              },
              {
                  "address": "yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98",
                  "balance": "29.21031729"
              },
              {
                  "address": "yfG7JxsY6Bx4XwqGNcQL4QX4CzKjQJ54dz",
                  "balance": "0.00000000"
              },
              {
                  "address": "yan1VFWPFhiVotNfygnuiDrA6xguioBgry",
                  "balance": "0.00000000"
              },
              {
                  "address": "yfFdY9KWahERRU4gqWVcBhmYFd3K3mavqc",
                  "balance": "0.00000000"
              }
          ],
          "totalBalance": "31.62750306"
      },
      "meta": {
          "totalCount": 5,
          "limit": 50,
          "results": 5
      }
    }
    
    // hd wallet
    {
        "payload": {
            "walletName": "demohdwallet",
            "addresses": [
                {
                    "address": "yguXUVGiC8C6e2taikbA7VM1Q3ncAtbr7k",
                    "path": "M/0H/0/0",
                    "balance": "3.21776859"
                },
                {
                    "address": "yaioehvihdu7F7e4fQfu1tCMa6rmT8V2rX",
                    "path": "M/0H/0/1",
                    "balance": "0.00000000"
                },
                {
                    "address": "yaDB2NTnj8SAhqUQSj4tkkNNBA9jJrAk3u",
                    "path": "M/0H/0/2",
                    "balance": "0.00000000"
                },
                {
                    "address": "yhQitZCcaD2jFnzMAXRVHVksjJ6K8hZahE",
                    "path": "M/0H/0/3",
                    "balance": "0.00000000"
                },
                {
                    "address": "yRgYH6HUPezLVJ5WddngHkcjtsQAR381Ma",
                    "path": "M/0H/0/4",
                    "balance": "0.00000000"
                },
                {
                    "address": "yM4G4bfoNTiz7EYurQ5WJoSZeWvsjZNUQq",
                    "path": "M/0H/0/5",
                    "balance": "0.00000000"
                }
            ],
            "totalBalance": "3.21776859"
        }
    }
    
    HTTP Request

    GET /v1/bc/dash/${NETWORK}/wallets/hd/${HD_WALLET_NAME}

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    HD_WALLET_NAME ------- Wallet name

    This endpoint returns a Wallet or HDWallet based on its HD_WALLET_NAME.

    Generate Address in HD Wallet

    Sample Data

    
    #### normal wallet
    curl -X POST \
      https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/demowallet/addresses/generate \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    #### hd wallet
    curl -X POST \
      https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/demohdwallet/addresses/generate \
      -H 'content-type: application/json' \
      -H 'authorization: my-api-key' \
      -d '{
        "addressCount": 3,
        "password": "8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32"
    }'
    
    
    
    #### normal wallet
    POST /v1/bc/dash/mainnet/wallets/demowallet/addresses/generate HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    #### hd wallet
    POST /v1/bc/dash/mainnet/wallets/hd/demohdwallet/addresses/generate HTTP/1.1
    Host: api.cryptoapis.io
    X-API-Key: my-api-key
    Content-Type: application/json
    
    {
        "addressCount": 3,
        "password": "8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32"
    }
    
    
    
    // normal wallet
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/demowallet/addresses/generate",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    // hd wallet
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/demohdwallet/addresses/generate",
      "method": "POST",
      "headers": {
        "authorization": "my-api-key",
        "content-type": "application/json"
      },
      "processData": false,
      "data": "{\n\t\"addressCount\": 3,\n\t\"password\": \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\"\n}"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    // normal wallet
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/wallets/demowallet/addresses/generate",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.end();
    
    // hd wallet
    var http = require("https");
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "port": null,
      "path": "/v1/bc/dash/mainnet/wallets/hd/demohdwallet/addresses/generate",
      "headers": {
        "authorization": "my-api-key",
        "content-type": "application/json"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ addressCount: 3, password: '8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32' }));
    req.end();
    
    
    <?php
    
    // noraml wallet
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/demowallet/addresses/generate');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    // hd wallet
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/demohdwallet/addresses/generate');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'content-type' => 'application/json',
      'authorization' => 'my-api-key'
    ));
    
    $request->setBody('{
        "addressCount": 3,
        "password": "8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32"
    }');
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    ?>
    
    
    
    #### noraml wallet
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/demowallet/addresses/generate")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    
    response = http.request(request)
    puts response.read_body
    
    #### hd wallet
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/demohdwallet/addresses/generate")
    
    http = Net::HTTP.new(url.host, url.port)
    http.use_ssl = true
    http.verify_mode = OpenSSL::SSL::VERIFY_NONE
    
    request = Net::HTTP::Post.new(url)
    request["authorization"] = 'my-api-key'
    request["content-type"] = 'application/json'
    request.body = "{\n\t\"addressCount\": 3,\n\t\"password\": \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\"\n}"
    
    response = http.request(request)
    puts response.read_body
    
    
    
    #### normal wallet
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/dash/mainnet/wallets/demowallet/addresses/generate", headers=headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    #### hd wallet
    import http.client
    
    conn = http.client.HTTPSConnection("api.cryptoapis.io")
    
    payload = "{\n\t\"addressCount\": 3,\n\t\"password\": \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\"\n}"
    
    headers = {
        'authorization': "my-api-key",
        'content-type': "application/json"
        }
    
    conn.request("POST", "/v1/bc/dash/mainnet/wallets/hd/demohdwallet/addresses/generate", payload, headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    
    
    // normal wallet
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/demowallet/addresses/generate")
      .post(null)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    // hd wallet
    OkHttpClient client = new OkHttpClient();
    
    MediaType mediaType = MediaType.parse("application/json");
    RequestBody body = RequestBody.create(mediaType, "{\n\t\"addressCount\": 3,\n\t\"password\": \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\"\n}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/demohdwallet/addresses/generate")
      .post(body)
      .addHeader("authorization", "my-api-key")
      .addHeader("content-type", "application/json")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    // normal wallet
    package main
    
    import (
        "fmt"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/demowallet/addresses/generate"
    
        req, _ := http.NewRequest("POST", url, nil)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("X-API-Key", "my-api-key")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    // hd wallet
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/demohdwallet/addresses/generate"
    
        payload := strings.NewReader("{\n\t\"addressCount\": 3,\n\t\"password\": \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\"\n}")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("authorization", "my-api-key")
        req.Header.Add("content-type", "application/json")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    

    Response Body

    // normal wallet
    {
      "payload": {
          "wallet_info": {
              "walletName": "demowallet",
              "addresses": [
                  "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc",
                  "yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98",
                  "yfG7JxsY6Bx4XwqGNcQL4QX4CzKjQJ54dz",
                  "yan1VFWPFhiVotNfygnuiDrA6xguioBgry",
                  "yfFdY9KWahERRU4gqWVcBhmYFd3K3mavqc"
              ]
          },
          "address_info": {
              "privateKey": "3403ce4fbf32c8a8080b8c04a63a60b747a992ebe4fc8e7808e7a339be30cce8",
              "publicKey": "034d23c18a6ce0df9d534042acaf1e1bf20b8a6f646cc7b5a92c4458942a658a62",
              "address": "yfFdY9KWahERRU4gqWVcBhmYFd3K3mavqc",
              "wif": "cPKp2xkNr2pvGB9uTQGn8vbNVNk11hGvEhnaLSsdydixF9hBRVrA"
          }
      }
    }
    
    // hd wallet
    {
      "payload": {
          "walletName": "demohdwallet",
          "addresses": [
              {
                  "address": "yhQitZCcaD2jFnzMAXRVHVksjJ6K8hZahE",
                  "path": "M/0H/0/3"
              },
              {
                  "address": "yRgYH6HUPezLVJ5WddngHkcjtsQAR381Ma",
                  "path": "M/0H/0/4"
              },
              {
                  "address": "yM4G4bfoNTiz7EYurQ5WJoSZeWvsjZNUQq",
                  "path": "M/0H/0/5"
              }
          ]
      }
    }
    
    HTTP Request

    POST /v1/bc/dash/${NETWORK}/wallets/hd/${HD_WALLET_NAME}/addresses/generate

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    HD_WALLET_NAME ------- Wallet name
    Request HD Wallet Object

    { "addressCount" : ${ADDRESS_COUNT}, "password" : ${ENCRYPTED_PASSWORD} } This endpoint allows you to generate a new address associated with the HD_WALLET_NAME wallet, similar to the Generate Address Endpoint. If successful, it will return the newly created addresses.

    Delete Wallet
    
    #### normal wallet
    curl -X DELETE \
      https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/demowallet \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    #### hd wallet
    curl -X DELETE \
      https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/demohdwallet \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    
    
    #### normal wallet
    DELETE /v1/bc/dash/mainnet/wallets/demowallet HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    #### hd wallet
    DELETE /v1/bc/dash/mainnet/wallets/hd/demohdwallet HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    
    // normal wallet
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/demowallet",
      "method": "DELETE",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    //hd wallet
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/demohdwallet",
      "method": "DELETE",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    // normal wallet
    var http = require("http");
    
    var options = {
      "method": "DELETE",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/wallets/demowallet",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.end();
    
    // hd wallet
    var http = require("http");
    
    var options = {
      "method": "DELETE",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/wallets/hd/demohdwallet,
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.end();
    
    
    
    <?php
    
    // normal wallet
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/demowallet');
    $request->setMethod(HTTP_METH_DELETE);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    // hd wallet
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/demohdwallet');
    $request->setMethod(HTTP_METH_DELETE);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    ?>
    
    
    
    
    #### normal wallet
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/demowallet")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Delete.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    
    response = http.request(request)
    puts response.read_body
    
    
    #### hd wallet
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/demohdwallet")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    
    response = http.request(request)
    puts response.read_body
    
    
    
    #### normal wallet
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    headers = {
      "Content-Type": "application/json",
      "X-API-Key", "my-api-key"
    }
    
    conn.request("DELETE", "/v1/bc/dash/mainnet/wallets/demowallet", headers=headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    #### hd wallet
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("DELETE", "/v1/bc/dash/mainnet/wallets/hd/demohdwallet", payload, headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    
    
    
    // normal wallet
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/demowallet")
      .delete(null)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    // hd wallet
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/demohdwallet")
      .delete(null)
      .addHeader("content-type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    // normal wallet
    package main
    
    import (
        "fmt"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/demowallet"
    
        req, _ := http.NewRequest("DELETE", url, nil)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("X-API-Key", "my-api-key")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    // hd wallet
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/demohdwallet"
    
        req, _ := http.NewRequest("DELETE", url, nil)
    
        req.Header.Add("content-type", "application/json")
        req.Header.Add("cache-control", "no-cache")
        req.Header.Add("postman-token", "d953336f-8728-f3b8-9bef-ae6892018f05")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    

    Response Body

    {
      "payload": {
          "message": "Wallet demowallet was successfully deleted!"
      }
    }
    
    {
      "payload": {
          "message": "Wallet demohdwallet was successfully deleted!"
      }
    }
    
    HTTP Request

    hd wallet

    DELETE /v1/bc/dash/${NETWORK}/wallets/hd/${HD_WALLET_NAME}

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. mainnet or testnet)
    HD_WALLET_NAME ------- Wallet name

    This endpoint deletes the Wallet or HD Wallet with HD_WALLET_NAME.

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. mainnet or testnet)
    HD_WALLET_NAME ------- Wallet name
    Import Address as an HD Wallet

    Sample Data

    curl -X POST \
      https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/import\
      -H 'content-type: application/json' \
      -H 'authorization: my-api-key' \
      -d '{
            "walletName": "testImportWallet",
            "password": "SECRET123456",
            "privateKey": "8aeb39b5f9b0xxxxxxxc7001c1cecc112712c9448b",
            "address": "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc"
        }'
    
    
    POST /v1/bc/dash/testnet/wallets/hd/import HTTP/1.1
    Host: api.cryptoapis.io
    X-API-Key: my-api-key
    Content-Type: application/json
    
    {
        "walletName": "testImportWallet",
        "password": "SECRET123456",
        "privateKey": "8aeb39b5f9b0xxxxxxxc7001c1cecc112712c9448b",
        "address": "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc"
    }
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/import",
      "method": "POST",
      "headers": {
        "authorization": "my-api-key",
        "content-type": "application/json"
      },
      "processData": false,
      "data": "{\n    \"walletName\": \"testImportWallet\",\n    \"password\": \"SECRET123456\",\n    \"privateKey\": \"8aeb39b5f9b0xxxxxxxc7001c1cecc112712c9448b\",\n    \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\"\n}"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    // hd wallet
    var http = require("https");
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/testnet/wallets/hd/import,
      "headers": {
        "authorization": "my-api-key",
        "content-type": "application/json"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ walletName: 'testImportWallet',
      password: 'SECRET123456',
      privateKey: '8aeb39b5f9b0xxxxxxxc7001c1cecc112712c9448b',
      address: 'yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc' }));
    req.end();
    
    
    &lt;?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/import');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'content-type' => 'application/json',
      'authorization' => 'my-api-key'
    ));
    
    $request->setBody('{
        "walletName": "testImportWallet",
        "password": "SECRET123456",
        "privateKey": "8aeb39b5f9b0xxxxxxxc7001c1cecc112712c9448b",
        "address": "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc"
    }');
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/import")
    
    http = Net::HTTP.new(url.host, url.port)
    http.use_ssl = true
    http.verify_mode = OpenSSL::SSL::VERIFY_NONE
    
    request = Net::HTTP::Post.new(url)
    request["authorization"] = 'my-api-key'
    request["content-type"] = 'application/json'
    request.body = "{\n    \"walletName\": \"testImportWallet\",\n    \"password\": \"SECRET123456\",\n    \"privateKey\": \"8aeb39b5f9b0xxxxxxxc7001c1cecc112712c9448b\",\n    \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\"\n}"
    
    response = http.request(request)
    puts response.read_body
    
    
    
    import http.client
    
    conn = http.client.HTTPSConnection("api.cryptoapis.io")
    
    payload = "{\n    \"walletName\": \"testImportWallet\",\n    \"password\": \"SECRET123456\",\n    \"privateKey\": \"8aeb39b5f9b0xxxxxxxc7001c1cecc112712c9448b\",\n    \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\"\n}"
    
    headers = {
        'authorization': "my-api-key",
        'content-type': "application/json"
        }
    
    conn.request("POST", "/v1/bc/dash/testnet/wallets/hd/demohdwallet/addresses/generate", payload, headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    MediaType mediaType = MediaType.parse("application/json");
    RequestBody body = RequestBody.create(mediaType, "{\n    \"walletName\": \"testImportWallet\",\n    \"password\": \"SECRET123456\",\n    \"privateKey\": \"8aeb39b5f9b0xxxxxxxc7001c1cecc112712c9448b\",\n    \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\"\n}");
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/import")
      .post(body)
      .addHeader("authorization", "my-api-key")
      .addHeader("content-type", "application/json")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/import"
    
        payload := strings.NewReader("{\n    \"walletName\": \"testImportWallet\",\n    \"password\": \"SECRET123456\",\n    \"privateKey\": \"8aeb39b5f9b0xxxxxxxc7001c1cecc112712c9448b\",\n    \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\"\n}")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("authorization", "my-api-key")
        req.Header.Add("content-type", "application/json")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    

    Response Body

    {
        "payload": {
            "walletName": "testImportWallet",
            "addresses": [
                {
                    "address": "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc"
                }
            ]
        }
    }
    
    
    HTTP Request

    POST /v1/bc/dash/${NETWORK}/wallets/hd/import

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    Request HD Wallet Object

    { "password" : ${ENCRYPTED_PASSWORD}, "walletName": ${HD_WALLET_NAME}, "privateKey": ${ADDRESS_PRIVATE_KEY}, "address": ${ADDRESS} }

    This endpoint allows you to import a DASH address. Although it is only an address it will be treated as an HDwallet. Therefore, with the imported wallet users can make transactions and payment forwardings. Moreover, imported wallets can be listed and deleted.

    Transactions

    Crypto APIs Transaction API allows you to create and propagate your own transactions, including multisignature transactions, and embed data on the blockchain—all based on the coin/chain resource you’ve selected for your endpoints.

    If you’re new to blockchains, the idea of transactions is relatively self-explanatory. Here’s what’s going on underneath the hood: a transaction takes previous “unspent transaction outputs” (also known as UTXOs) as “transaction inputs” and creates new “locking scripts” on those inputs such that they are “sent” to new addresses (to become new UTXOs). While most of these public addresses are reference points for single private keys that can “unlock” the newly created UTXOs, occasionally they are sent to more exotic addresses through pay-to-script-hash, typically multisignature addresses.

    Generally speaking, UTXOs are generated from previous transactions (except for Coinbase inputs).

    Prepare a Transaction
    Info

    Using Crypto APIs, you can push transactions to blockchains one of two ways:

    Use our two-endpoint process outlined below, wherein we generate a TXSkeleton based on your input address, output address, and value to transfer. In either case, for security reasons, we never take possession of your private keys. We do use private keys with our Microtransaction API, but they are for low-value transactions and we discard them immediately from our servers’ memory.

    New Transaction Endpoint

    Sample Data

    
    curl -X POST \
      https://api.cryptoapis.io/v1/bc/dash/testnet/txs/create \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
          "inputs": [{
              "address": "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc",
            "value": 21.309
          }],
          "outputs": [{
              "address": "yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98",
              "value": 21.309
          }],
          "fee":  {
              "value": 0.00023141
          }
      }'
    
    
    POST /v1/bc/dash/testnet/txs/create HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    {
          "inputs": [{
              "address": "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc",
            "value": 21.309
          }],
          "outputs": [{
              "address": "yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98",
              "value": 21.309
          }],
          "fee":  {
              "value": 0.00023141
          }
      }
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/testnet/txs/create",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
     "data": "{\n      \"inputs\": [{\n          \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n        \"value\": 21.309\n      }],\n      \"outputs\": [{\n          \"address\": \"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98\",\n          \"value\": 21.309\n      }],\n      \"fee\":  {\n          \"value\": 0.00023141\n      }\n  }"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/testnet/txs/create",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ inputs: 
       [ { address: 'yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc',
           value: 21.309 } ],
      outputs: 
       [ { address: 'yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98',
           value: 21.309 } ],
      fee: { value: 0.00023141 } }));
    req.end();
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/txs/create');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    $request->setBody('{
          "inputs": [{
              "address": "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc",
            "value": 21.309
          }],
          "outputs": [{
              "address": "yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98",
              "value": 21.309
          }],
          "fee":  {
              "value": 0.00023141
          }
      }');
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/create")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    request.body = "{\n      \"inputs\": [{\n          \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n        \"value\": 21.309\n      }],\n      \"outputs\": [{\n          \"address\": \"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98\",\n          \"value\": 21.309\n      }],\n      \"fee\":  {\n          \"value\": 0.00023141\n      }\n  }"
    
    response = http.request(request)
    puts response.read_body
    
    
    
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    payload = "{\n      \"inputs\": [{\n          \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n        \"value\": 21.309\n      }],\n      \"outputs\": [{\n          \"address\": \"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98\",\n          \"value\": 21.309\n      }],\n      \"fee\":  {\n          \"value\": 0.00023141\n      }\n  }"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/dash/testnet/txs/create, payload, headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    MediaType mediaType = MediaType.parse("application/json");
    RequestBody body = RequestBody.create(mediaType, "{\n      \"inputs\": [{\n          \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n        \"value\": 21.309\n      }],\n      \"outputs\": [{\n          \"address\": \"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98\",\n          \"value\": 21.309\n      }],\n      \"fee\":  {\n          \"value\": 0.00023141\n      }\n  }");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/create")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/testnet/txs/create"
    
        payload := strings.NewReader("{\n      \"inputs\": [{\n          \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n        \"value\": 21.309\n      }],\n      \"outputs\": [{\n          \"address\": \"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98\",\n          \"value\": 21.309\n      }],\n      \"fee\":  {\n          \"value\": 0.00023141\n      }\n  }")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("X-API-Key", "my-api-key")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    

    Response Body

    {
      "payload": {
          "hex": "02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000"
      }
    }
    

    To use Crypto APIs two-endpoint transaction creation tool, first you need to provide the input address(es), output address, and value to transfer (in dash). Provide this in a partially-filled out TX request object.

    HTTP Request

    POST /v1/bc/dash/${NETWORK}/txs/create

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)

    As you can see from the code example, you only need to provide a single public address within the addresses array of both the input and output of your TX request object. You also need to fill in the value with the amount you’d like to transfer from one address to another.

    Required fields are: { "inputs": [{ "address": "...", "value": ... }, ...], "outputs": [{ "address": "...", "value": ... }, ...], "fee": { "address": "...", "value": ... } }

    Optional fields include: { "locktime": ..., "data": "..." } You need to include data (string) field only if you want to send messages/metadata with the transaction. Locktime (integer) has a default value of zero. Use locktime if a transaction should be delayed to a specific time.

    As a return object, you’ll receive a JSON containing a slightly-more complete TX alongside data you need to sign in the tosign array. You’ll need this object for the next steps of the transaction creation process

    Validating the Data to Sign

    For the extra cautious, you can protect yourself from a potential malicious attack on Crypto APIs by validating the data we’re asking you to sign. Unfortunately, it’s impossible to do so directly, as pre-signed signature data is hashed twice using SHA256. To get around this, set the includeToSignTx URL flag to true. The optional tosign_tx array will be returned within the JSON, which you can use in the following way:

    Sign a Transaction Endpoint

    Sample Data

    
    curl -X POST \
      https://api.cryptoapis.io/v1/bc/dash/testnet/txs/sign \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
        "hex":"02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000",
        "wifs" : [
                  "cVcBtNotRXr9BtcfkC9EPp2fsS6mDHE67o4y1bh6Q3pEKuvPqaJA"
        ]
    }'
    
    
    POST /v1/bc/dash/testnet/txs/sign HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    {
        "hex":"02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000",
        "wifs" : [
                  "cVcBtNotRXr9BtcfkC9EPp2fsS6mDHE67o4y1bh6Q3pEKuvPqaJA"
        ]
    }
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/testnet/txs/sign",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n    \"hex\":\"02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000\",\n    \"wifs\" : [\n              \"cVcBtNotRXr9BtcfkC9EPp2fsS6mDHE67o4y1bh6Q3pEKuvPqaJA\"\n    ]\n}"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/txs/sign",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ hex: '02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000',
      wifs: [ 'cVcBtNotRXr9BtcfkC9EPp2fsS6mDHE67o4y1bh6Q3pEKuvPqaJA' ] }));
    req.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/txs/sign');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    $request->setBody('{
        "hex":"02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000",
        "wifs" : [
                  "cVcBtNotRXr9BtcfkC9EPp2fsS6mDHE67o4y1bh6Q3pEKuvPqaJA"
        ]
    }');
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/sign")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    request.body = "{\n    \"hex\":\"02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000\",\n    \"wifs\" : [\n              \"cVcBtNotRXr9BtcfkC9EPp2fsS6mDHE67o4y1bh6Q3pEKuvPqaJA\"\n    ]\n}"
    
    response = http.request(request)
    puts response.read_body
    
    
    
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    payload = "{\n    \"hex\":\"02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000\",\n    \"wifs\" : [\n              \"cVcBtNotRXr9BtcfkC9EPp2fsS6mDHE67o4y1bh6Q3pEKuvPqaJA\"\n    ]\n}"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/dash/testnet/txs/sign", payload, headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    MediaType mediaType = MediaType.parse("application/json");
    RequestBody body = RequestBody.create(mediaType, "{\n    \"hex\":\"02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000\",\n    \"wifs\" : [\n              \"cVcBtNotRXr9BtcfkC9EPp2fsS6mDHE67o4y1bh6Q3pEKuvPqaJA\"\n    ]\n}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/sign")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/testnet/txs/sign"
    
          payload := strings.NewReader("{\n    \"hex\":\"02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000\",\n    \"wifs\" : [\n              \"cVcBtNotRXr9BtcfkC9EPp2fsS6mDHE67o4y1bh6Q3pEKuvPqaJA\"\n    ]\n}")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("X-API-Key", "my-api-key")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    }
    

    Response Body

    {
        "payload": {
            "hex": "02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d3010000006b483045022100c32647dbce66670d27b9d5b6ab038a3abc1f37651f557e1add465a2ce3d3e25e02201cd797562b1839b2e52e125537fbab47f81a687d4c06249d40f8b8e23c8ac9930121039105ae7b049b8495108ba7409c8e2199713b0690987eb39ad5a020d7531857faffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000",
            "complete": true
        }
    }
    
    Info

    The Sign a Transaction Endpoint allows users to sign a raw transaction.

    HTTP Request

    POST /v1/bc/dash/${NETWORK}/txs/sign

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)

    The returned object is a hexadecimal string that represents the signed transaction. This hexadecimal is used by the Broadcast a Signed Transaction Endpoint in order to broadcast the transaction into the dashcoin Blockchain.

    Broadcast a Signed Transaction

    Sample Data

    
    curl -X POST \
      https://api.cryptoapis.io/v1/bc/dash/testnet/txs/send/ \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
        "hex" : "02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d3010000006b483045022100c32647dbce66670d27b9d5b6ab038a3abc1f37651f557e1add465a2ce3d3e25e02201cd797562b1839b2e52e125537fbab47f81a687d4c06249d40f8b8e23c8ac9930121039105ae7b049b8495108ba7409c8e2199713b0690987eb39ad5a020d7531857faffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000"
    }'
    
    
    POST /v1/bc/dash/testnet/txs/send HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    {
        "hex" : "02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d3010000006b483045022100c32647dbce66670d27b9d5b6ab038a3abc1f37651f557e1add465a2ce3d3e25e02201cd797562b1839b2e52e125537fbab47f81a687d4c06249d40f8b8e23c8ac9930121039105ae7b049b8495108ba7409c8e2199713b0690987eb39ad5a020d7531857faffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000"
    }
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/testnet/txs/send",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n\t\"hex\" : \"02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d3010000006b483045022100c32647dbce66670d27b9d5b6ab038a3abc1f37651f557e1add465a2ce3d3e25e02201cd797562b1839b2e52e125537fbab47f81a687d4c06249d40f8b8e23c8ac9930121039105ae7b049b8495108ba7409c8e2199713b0690987eb39ad5a020d7531857faffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000\"\n}"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/txs/send",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ hex: '02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d3010000006b483045022100c32647dbce66670d27b9d5b6ab038a3abc1f37651f557e1add465a2ce3d3e25e02201cd797562b1839b2e52e125537fbab47f81a687d4c06249d40f8b8e23c8ac9930121039105ae7b049b8495108ba7409c8e2199713b0690987eb39ad5a020d7531857faffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000' }));
    req.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/txs/send');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    $request->setBody('{
        "hex" : "02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d3010000006b483045022100c32647dbce66670d27b9d5b6ab038a3abc1f37651f557e1add465a2ce3d3e25e02201cd797562b1839b2e52e125537fbab47f81a687d4c06249d40f8b8e23c8ac9930121039105ae7b049b8495108ba7409c8e2199713b0690987eb39ad5a020d7531857faffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000"
    }');
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/send")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    request.body = "{\n\t\"hex\" : \"02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d3010000006b483045022100c32647dbce66670d27b9d5b6ab038a3abc1f37651f557e1add465a2ce3d3e25e02201cd797562b1839b2e52e125537fbab47f81a687d4c06249d40f8b8e23c8ac9930121039105ae7b049b8495108ba7409c8e2199713b0690987eb39ad5a020d7531857faffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000\"\n}"
    
    response = http.request(request)
    puts response.read_body
    
    
    
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    payload = "{\n\t\"hex\" : \"02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d3010000006b483045022100c32647dbce66670d27b9d5b6ab038a3abc1f37651f557e1add465a2ce3d3e25e02201cd797562b1839b2e52e125537fbab47f81a687d4c06249d40f8b8e23c8ac9930121039105ae7b049b8495108ba7409c8e2199713b0690987eb39ad5a020d7531857faffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000\"\n}"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/dash/testnet/txs/send", payload, headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    MediaType mediaType = MediaType.parse("application/json");
    RequestBody body = RequestBody.create(mediaType, "{\n\t\"hex\" : \"02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d3010000006b483045022100c32647dbce66670d27b9d5b6ab038a3abc1f37651f557e1add465a2ce3d3e25e02201cd797562b1839b2e52e125537fbab47f81a687d4c06249d40f8b8e23c8ac9930121039105ae7b049b8495108ba7409c8e2199713b0690987eb39ad5a020d7531857faffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000\"\n}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/send")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/testnet/txs/send"
    
        payload := strings.NewReader("{\n\t\"hex\" : \"02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d3010000006b483045022100c32647dbce66670d27b9d5b6ab038a3abc1f37651f557e1add465a2ce3d3e25e02201cd797562b1839b2e52e125537fbab47f81a687d4c06249d40f8b8e23c8ac9930121039105ae7b049b8495108ba7409c8e2199713b0690987eb39ad5a020d7531857faffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000\"\n}")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("X-API-Key", "my-api-key")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    

    Response Body

    {
        "payload": {
            "txid": "2e0fb542aa468ac3a3488891f2460d8525b32d6494639d4340d457cc9ba79225"
        }
    }
    

    Transaction Send Endpoint allows users to broadcast the signed transaction to the dashcoin Blockchain.

    HTTP Request

    POST /v1/bc/dash/${NETWORK}/txs/send

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. mainnet or testnet)

    If broadcasting is successful, you’ll receive a JSON with the hash of the unconfirmed transaction.

    Prepare, Sign and Broadcast a Transaction

    Sample Data

    curl -X POST \
      https://api.cryptoapis.io/v1/bc/dash/testnet/txs/new \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
       "createTx":{
          "inputs":[
             {
                "address":"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98",
                "value":5.222
             }
          ],
          "outputs":[
             {
                "address":"yguXUVGiC8C6e2taikbA7VM1Q3ncAtbr7k",
                "value":5.222
             }
          ],
          "fee":{
                "value": 0.00000271
             }
          },
             "wifs":[
                "cU4i8Mox2MVgV64LC8eEbHqhp4rithrhguBgfAgB7725neiVBiVh"
         ]
    }'
    
    POST /v1/bc/dash/testnet/txs/new HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    {
       "createTx":{
          "inputs":[
             {
                "address":"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98",
                "value":5.222
             }
          ],
          "outputs":[
             {
                "address":"yguXUVGiC8C6e2taikbA7VM1Q3ncAtbr7k",
                "value":5.222
             }
          ],
          "fee":{
                "value":0.00000271
             }
          },
             "wifs":[
                "cU4i8Mox2MVgV64LC8eEbHqhp4rithrhguBgfAgB7725neiVBiVh"
         ]
    }
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/testnet/txs/new",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n   \"createTx\":{\n      \"inputs\":[\n         {\n            \"address\":\"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98\",\n            \"value\":5.222\n         }\n      ],\n      \"outputs\":[\n         {\n            \"address\":\"yguXUVGiC8C6e2taikbA7VM1Q3ncAtbr7k\",\n            \"value\":5.222\n         }\n      ],\n      \"fee\":{\n            \"value\":0.00000271\n         }\n      },\n         \"wifs\":[\n            \"cU4i8Mox2MVgV64LC8eEbHqhp4rithrhguBgfAgB7725neiVBiVh\"\n     ]\n}"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/testnet/txs/new",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ createTx: 
       { inputs: [ { address: 'yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98', value: 5.222 } ],
         outputs: [ { address: 'yguXUVGiC8C6e2taikbA7VM1Q3ncAtbr7k', value: 5.222 } ],
         fee: { value: 1 } },
      wifs: [ 'cU4i8Mox2MVgV64LC8eEbHqhp4rithrhguBgfAgB7725neiVBiVh' ] }));
    req.end();
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/txs/new');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    $request->setBody('{
       "createTx":{
          "inputs":[
             {
                "address":"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98",
                "value":5.222
             }
          ],
          "outputs":[
             {
                "address":"yguXUVGiC8C6e2taikbA7VM1Q3ncAtbr7k",
                "value":5.222
             }
          ],
          "fee":{
                "value":0.00000271
             }
          },
             "wifs":[
                "cU4i8Mox2MVgV64LC8eEbHqhp4rithrhguBgfAgB7725neiVBiVh"
         ]
    }');
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/new")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    request.body = "{\n   \"createTx\":{\n      \"inputs\":[\n         {\n            \"address\":\"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98\",\n            \"value\":5.222\n         }\n      ],\n      \"outputs\":[\n         {\n            \"address\":\"yguXUVGiC8C6e2taikbA7VM1Q3ncAtbr7k\",\n            \"value\":5.222\n         }\n      ],\n      \"fee\":{\n            \"value\":0.00000271\n         }\n      },\n         \"wifs\":[\n            \"cU4i8Mox2MVgV64LC8eEbHqhp4rithrhguBgfAgB7725neiVBiVh\"\n     ]\n}"
    
    response = http.request(request)
    puts response.read_body
    
    
    
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    payload = "{\n   \"createTx\":{\n      \"inputs\":[\n         {\n            \"address\":\"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98\",\n            \"value\":5.222\n         }\n      ],\n      \"outputs\":[\n         {\n            \"address\":\"yguXUVGiC8C6e2taikbA7VM1Q3ncAtbr7k\",\n            \"value\":5.222\n         }\n      ],\n      \"fee\":{\n            \"value\":0.00000271\n         }\n      },\n         \"wifs\":[\n            \"cU4i8Mox2MVgV64LC8eEbHqhp4rithrhguBgfAgB7725neiVBiVh\"\n     ]\n}"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/dash/testnet/txs/new", payload, headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    MediaType mediaType = MediaType.parse("application/json");
    RequestBody body = RequestBody.create(mediaType, "{\n   \"createTx\":{\n      \"inputs\":[\n         {\n            \"address\":\"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98\",\n            \"value\":5.222\n         }\n      ],\n      \"outputs\":[\n         {\n            \"address\":\"yguXUVGiC8C6e2taikbA7VM1Q3ncAtbr7k\",\n            \"value\":5.222\n         }\n      ],\n      \"fee\":{\n            \"value\":0.00000271\n         }\n      },\n         \"wifs\":[\n            \"cU4i8Mox2MVgV64LC8eEbHqhp4rithrhguBgfAgB7725neiVBiVh\"\n     ]\n}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/new")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/testnet/txs/new"
    
        payload := strings.NewReader("{\n   \"createTx\":{\n      \"inputs\":[\n         {\n            \"address\":\"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98\",\n            \"value\":5.222\n         }\n      ],\n      \"outputs\":[\n         {\n            \"address\":\"yguXUVGiC8C6e2taikbA7VM1Q3ncAtbr7k\",\n            \"value\":5.222\n         }\n      ],\n      \"fee\":{\n            \"value\":0.00000271\n         }\n      },\n         \"wifs\":[\n            \"cU4i8Mox2MVgV64LC8eEbHqhp4rithrhguBgfAgB7725neiVBiVh\"\n     ]\n}")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("X-API-Key", "my-api-key")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    }
    

    Response Body

    {
        "payload": {
            "txid": "239a2e8b932f7892aad5bfe07c48526d5802e1609882d4d5d8466954a6579bc2"
        }
    }
    

    The Prepare, Sign and Broadcast a Transaction Endpoint combines the other three endpoints: Create, Sign and Send Endpoints. Users should provide the inputs and outputs fields with the corresponding data, as well as the fee and the wifs(private ECDSA keys) of the addresses. Therefore, the endpoint creates, signs and broadcasts the new transaction to the Dash Blockchain. For more information, see the examples.

    Users can set two optional fields within the createTx object: data and locktime.

    "createTx": { 
                  "inputs": [ {
                    "address": "...",
                    "value": ...
                  }],
                  "outputs": [{
                    "address": "...",
                    "value": ...
                  }],
                  "fee":  {
                    "address": "...",
                    "value": ...
                  },
                  "locktime": ...,
                  "data": "CRYPTOAPISROCKS"
                }
    

    You need to include data (string) field only if you want to send messages/metadata with the transaction. Locktime (integer) has a default value of zero. Use locktime if a transaction should be delayed to a specific time.

    HTTP Request

    POST /v1/bc/dash/${NETWORK}/txs/new

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    Prepare, Sign and Broadcast a Transaction Using HDWallet

    Sample Data

    curl -X POST \
      https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/hdwallet \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
        "walletName": "demohdwallet",
        "password" : "8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32",
        "outputs": [{
            "address": "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc",
            "value": 2.004
        }],
        "fee":  {
            "value": 0.00023141
        }
    }'
    
    POST /v1/bc/dash/mainnet/txs/hdwallet HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    {
        "walletName": "demohdwallet",
        "password" : "8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32",
        "outputs": [{
            "address": "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc",
            "value": 2.004
        }],
        "fee":  {
            "value": 0.00023141
        }
    }
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/hdwallet",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
       "data": "{\n    \"walletName\": \"demohdwallet\",\n    \"password\" : \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\",\n    \"outputs\": [{\n        \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n        \"value\": 2.004\n    }],\n    \"fee\":  {\n        \"value\": 0.00023141\n    }\n}"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/txs/hdwallet",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ walletName: 'demohdwallet',
      password: '8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32',
      outputs: [ { address: 'yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc', value: 2.004 } ],
      fee: { value: 0.00023141 } }));
    req.end();
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/hdwallet');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    $request->setBody('{
        "walletName": "demohdwallet",
        "password" : "8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32",
        "outputs": [{
            "address": "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc",
            "value": 2.004
        }],
        "fee":  {
            "value": 0.00023141
        }
    }');
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/hdwallet")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    request.body = "{\n    \"walletName\": \"demohdwallet\",\n    \"password\" : \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\",\n    \"outputs\": [{\n        \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n        \"value\": 2.004\n    }],\n    \"fee\":  {\n        \"value\": 0.00023141\n    }\n}"
    
    response = http.request(request)
    puts response.read_body
    
    
    
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    payload = "{\n    \"walletName\": \"demohdwallet\",\n    \"password\" : \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\",\n    \"outputs\": [{\n        \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n        \"value\": 2.004\n    }],\n    \"fee\":  {\n        \"value\": 0.00023141\n    }\n}"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/dash/mainnet/txs/hdwallet", payload, headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    MediaType mediaType = MediaType.parse("application/json");
    RequestBody body = RequestBody.create(mediaType, "{\n    \"walletName\": \"demohdwallet\",\n    \"password\" : \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\",\n    \"outputs\": [{\n        \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n        \"value\": 2.004\n    }],\n    \"fee\":  {\n        \"value\": 0.00023141\n    }\n}");
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/hdwallet")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/hdwallet"
    
        payload := strings.NewReader("{\n    \"walletName\": \"demohdwallet\",\n    \"password\" : \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\",\n    \"outputs\": [{\n        \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n        \"value\": 2.004\n    }],\n    \"fee\":  {\n        \"value\": 0.00023141\n    }\n}")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("X-API-Key", "my-api-key")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    }
    

    Response Body

    {
        "payload": {
            "txid": "937aba4ad116f860893252a3a179b8a2581aaebec448fbe0fc2eae09d58b1886"
        }
    }
    

    Prepare, Sign and Broadcast a Transaction Using HDWallet Endpoint provides the possibility to create, sign and send new transactions using your HDWallet. The mandatory fields are: walletName, password, outputs and fee (see example). There are a few optional fields, such as: inputs, fee address. If input addresses are not included, then the system will automatically choose addresses from the wallet. However, if included, a list of addresses from the wallet and the values should be specified. Fee address is optional and if is specified the fee will be proportionally distributed among the input addresses.

    Two optional fields are available:

    {
      "locktime": ...,
      "data": "..."
    }
    

    You need to include data (string) field only if you want to send messages/metadata with the transaction. Locktime (integer) has a default value of zero. Use locktime if a transaction should be delayed to a specific time.

    HTTP Request

    POST /v1/bc/dash/${NETWORK}/txs/hdwallet

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)

    See the example where the complete JSON object request (mandatory* and optional fields inlcuded) is shown.

    The complete JSON object request:

    {
        "walletName*": "walletName",
        "password*" : "passowrd",
        "inputs":[{
            "address":"n...",
            "value":0.1
        },{
            "address":"n...",
            "value":0.3
        }],
        "outputs*": [{
            "address": "m...",
            "value": 0.4
        }],
        "fee":  {
            "address": "n...",
            "value*": 0.00023141
        },
        "locktime": 0,
      "data": "CRYPTOAPISROCKS"
    }
    
    Decode a Raw Transaction

    Sample Data

    
    curl -X POST \
     https://api.cryptoapis.io/v1/bc/dash/testnet/txs/decode \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
        "hex": "02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000"
    }'
    
    
    
    POST /v1/bc/dash/testnet/txs/decode HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    {
        "hex": "02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000"
    }
    
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/testnet/txs/decode",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n\t\"hex\": \"02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000\"\n}"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/testnet/txs/decode",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ hex: '02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000' }));
    req.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/txs/decode');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    $request->setBody('{
        "hex": "02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000"
    }');
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/decode")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    request.body = "{\n\t\"hex\": \"02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000\"\n}"
    
    response = http.request(request)
    puts response.read_body
    
    
    
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    payload = "{\n\t\"hex\": \"02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000\"\n}"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/dash/testnet/txs/decode", payload, headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    MediaType mediaType = MediaType.parse("application/json");
    RequestBody body = RequestBody.create(mediaType, "{\n\t\"hex\": \"02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000\"\n}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/decode")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/testnet/txs/decode"
    
        payload := strings.NewReader("{\n\t\"hex\": \"02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000\"\n}")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("X-API-Key", "my-api-key")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    

    Response Body

    {
        "payload": {
            "txid": "ef0854b2fbd5acf5cdfaa53d57518e7cf808db7a1eeab3c5404df321b2ea2d0d",
            "size": 119,
            "version": 2,
            "locktime": 0,
            "vin": [
                {
                    "txid": "d3b9caafed7afb82a7a829fcb759ae27c9b140be01ea98bf9c36cef0ade4bd2d",
                    "sequence": 4294967295,
                    "vout": 1,
                    "scriptSig": {
                        "asm": "",
                        "hex": ""
                    }
                }
            ],
            "vout": [
                {
                    "value": "21.309",
                    "n": 0,
                    "scriptPubKey": {
                        "asm": "OP_DUP OP_HASH160 0b974dc2170aaf6759800466b93ecb9305c29248 OP_EQUALVERIFY OP_CHECKSIG",
                        "hex": "76a9140b974dc2170aaf6759800466b93ecb9305c2924888ac",
                        "reqSigs": 1,
                        "type": "pubkeyhash",
                        "addresses": [
                            "yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98"
                        ]
                    }
                },
                {
                    "value": "0.41373718",
                    "n": 1,
                    "scriptPubKey": {
                        "asm": "OP_DUP OP_HASH160 68a3b32fd54f6998f92d155cfb23b662acc4bb52 OP_EQUALVERIFY OP_CHECKSIG",
                        "hex": "76a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac",
                        "reqSigs": 1,
                        "type": "pubkeyhash",
                        "addresses": [
                            "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc"
                        ]
                    }
                }
            ]
        }
    }
    
    Info

    We also offer the ability to decode raw transactions without sending propagating them to the network; perhaps you want to double-check another client library or confirm that another service is sending proper transactions.

    HTTP Request

    POST /v1/bc/dash/${NETWORK}/txs/decode

    Request Object

    { "hex": "${HEX}" }

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    HEX ------- hex of raw transaction

    $HEX is a hex-encoded raw representation of your transaction, for example:

    02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000

    If it succeeds, you’ll receive your decoded TX object.

    Refund a Transaction

    Sample Data

    curl -X POST \
      https://api.cryptoapis.io/v1/bc/dash/testnet/txs/refund \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
        "txid" : "d3b9caafed7afb82a7a829fcb759ae27c9b140be01ea98bf9c36cef0ade4bd2d",
        "wif": "cU4i8Mox......M35vSTy9xGEKbCbaJ",
      "fee": 0.00000527
    }'
    
    POST /v1/bc/dash/testnet/txs/refund HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    {
        "txid" : "d3b9caafed7afb82a7a829fcb759ae27c9b140be01ea98bf9c36cef0ade4bd2d",
        "wif": "cU4i8Mox......M35vSTy9xGEKbCbaJ",
      "fee": 0.00000527
    }
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/testnet/txs/refund",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n\t\"txid\" : \"d3b9caafed7afb82a7a829fcb759ae27c9b140be01ea98bf9c36cef0ade4bd2d\",\n\t\"wif\": \"cU4i8Mox......M35vSTy9xGEKbCbaJ\",\n\t\"fee\": 0.00000527\n}"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/testnet/txs/refund",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ txid: 'd3b9caafed7afb82a7a829fcb759ae27c9b140be01ea98bf9c36cef0ade4bd2d',
      wif: 'cU4i8Mox......M35vSTy9xGEKbCbaJ',fee: 0.00000527}));
    req.end();
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/txs/refund');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    $request->setBody('{
        "txid" : "d3b9caafed7afb82a7a829fcb759ae27c9b140be01ea98bf9c36cef0ade4bd2d",
      "wif": "cU4i8Mox......M35vSTy9xGEKbCbaJ",
      "fee": 0.00000527
    }');
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/refund")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    request.body = "{\n\t\"txid\" : \"d3b9caafed7afb82a7a829fcb759ae27c9b140be01ea98bf9c36cef0ade4bd2d\",\n\t\"wif\": \"cU4i8Mox......M35vSTy9xGEKbCbaJ\",\n\t\"fee\": 0.00000527\n}"
    
    response = http.request(request)
    puts response.read_body
    
    
    
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    payload = "{\n\t\"txid\" : \"d3b9caafed7afb82a7a829fcb759ae27c9b140be01ea98bf9c36cef0ade4bd2d\",\n\t\"wif\": \"cU4i8Mox......M35vSTy9xGEKbCbaJ\",\n\t\"fee\": 0.00000527\n}"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/dash/testnet/txs/refund", payload, headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    MediaType mediaType = MediaType.parse("application/json");
    RequestBody body = RequestBody.create(mediaType, "{\n\t\"txid\" : \"d3b9caafed7afb82a7a829fcb759ae27c9b140be01ea98bf9c36cef0ade4bd2d\",\n\t\"wif\": \"cU4i8Mox......M35vSTy9xGEKbCbaJ\",\n\t\"fee\": 0.00000527\n}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/refund")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/testnet/txs/refund"
    
        payload := strings.NewReader("{\n\t\"txid\" : \"d3b9caafed7afb82a7a829fcb759ae27c9b140be01ea98bf9c36cef0ade4bd2d\",\n\t\"wif\": \"cU4i8Mox......M35vSTy9xGEKbCbaJ\",\n\t\"fee\": 0.00000527\n}")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("X-API-Key", "my-api-key")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    }
    

    Response Body

    {
      "payload": {
          "txid":"e6ecdb73025b0ce3ef30b694003a2a1ab8fdc5cc3d7edd7cb618113dc783aaf3"
      }
    }
    

    The Refund a Transaction Endpoint allows users easily to return the amount in dash they have received from an unknown source. Only two fields are required: the txid of the transcation and the wif of the recipient address (see examples). There is an optional field fee. If fee field is not set the system will set the recommended fee from the Transaction Fee Endpoint.

    HTTP Request

    POST /v1/bc/dash/${NETWORK}/txs/refund

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)

    Transactions Fees

    Every transaction on Blockchain has fee, the fee is not a fixed amount or % of the amount. The fee depends mainly on how much the network is overloaded. The higher fee you pay, the faster your transaction will be mined. You can use our different endpoints to get information all the time about fees and decide what fee you would set for your transactions.

    Transaction Size
    Info

    Using Crypto APIs, you can calculate the approximate size of a standard transaction.

    Required fields are: { "inputs": [{ "address": "...", "value": ... }, ...], "outputs": [{ "address": "...", "value": ... }, ...], "fee": { "address": "...", "value": ... } }

    Optional fields include: { "locktime": ..., "data": "..." }

    New Transaction Endpoint

    Sample Data

    
    curl -X POST \
      https://api.cryptoapis.io/v1/bc/dash/testnet/txs/size \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
          "inputs": [{
              "address": "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc",
            "value": 21.309
          }],
          "outputs": [{
              "address": "yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98",
              "value": 21.309
          }],
          "fee":  {
              "value": 0.00023141
          }
      }'
    
    
    POST /v1/bc/dash/testnet/txs/size HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    {
          "inputs": [{
              "address": "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc",
            "value": 21.309
          }],
          "outputs": [{
              "address": "yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98",
              "value": 21.309
          }],
          "fee":  {
              "value": 0.00023141
          }
      }
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/testnet/txs/size",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
     "data": "{\n      \"inputs\": [{\n          \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n        \"value\": 21.309\n      }],\n      \"outputs\": [{\n          \"address\": \"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98\",\n          \"value\": 21.309\n      }],\n      \"fee\":  {\n          \"value\": 0.00023141\n      }\n  }"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/testnet/txs/size",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ inputs: 
       [ { address: 'yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc',
           value: 21.309 } ],
      outputs: 
       [ { address: 'yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98',
           value: 21.309 } ],
      fee: { value: 0.00023141 } }));
    req.end();
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/txs/size');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    $request->setBody('{
          "inputs": [{
              "address": "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc",
            "value": 21.309
          }],
          "outputs": [{
              "address": "yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98",
              "value": 21.309
          }],
          "fee":  {
              "value": 0.00023141
          }
      }');
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/size")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    request.body = "{\n      \"inputs\": [{\n          \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n        \"value\": 21.309\n      }],\n      \"outputs\": [{\n          \"address\": \"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98\",\n          \"value\": 21.309\n      }],\n      \"fee\":  {\n          \"value\": 0.00023141\n      }\n  }"
    
    response = http.request(request)
    puts response.read_body
    
    
    
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    payload = "{\n      \"inputs\": [{\n          \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n        \"value\": 21.309\n      }],\n      \"outputs\": [{\n          \"address\": \"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98\",\n          \"value\": 21.309\n      }],\n      \"fee\":  {\n          \"value\": 0.00023141\n      }\n  }"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/dash/testnet/txs/size, payload, headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    MediaType mediaType = MediaType.parse("application/json");
    RequestBody body = RequestBody.create(mediaType, "{\n      \"inputs\": [{\n          \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n        \"value\": 21.309\n      }],\n      \"outputs\": [{\n          \"address\": \"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98\",\n          \"value\": 21.309\n      }],\n      \"fee\":  {\n          \"value\": 0.00023141\n      }\n  }");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/size")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/testnet/txs/size"
    
        payload := strings.NewReader("{\n      \"inputs\": [{\n          \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n        \"value\": 21.309\n      }],\n      \"outputs\": [{\n          \"address\": \"yMNjY5gZs5RwUovbL1NzXjbnkgPMYfUA98\",\n          \"value\": 21.309\n      }],\n      \"fee\":  {\n          \"value\": 0.00023141\n      }\n  }")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("X-API-Key", "my-api-key")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    

    Response Body

    {
        "payload": {
            "tx_size_bytes": 167
        }
    }
    
    HTTP Request

    POST /v1/bc/dash/${NETWORK}/txs/size

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    Transaction Size for HD Wallet
    Info

    Using this endpoint you can get the approximate size of a transaction in HD wallet.

    Required fields are: { "walletName": "......", "password" : "......", "outputs": [{ "address": "......", "value": ........ }] }

    Optional fields include: { "locktime": ..., "data": "...", "fee": { "address" : ..........., "value": ........... } }

    Sample Data

    
    curl -X POST \
      https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/txs/size \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
            "walletName": "demohdwallet",
            "password": "8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32",
            "outputs": [
              {
                "address": "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc",
                "value": 0.007
              }
            ]
          }'
    
    
    POST /v1/bc/dash/testnet/wallets/hd/txs/size HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    {
            "walletName": "demohdwallet",
            "password" : "8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32",
            "outputs": [{
            "address": "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc",
            "value": 0.007 
        }]
    }
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/txs/size",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n        \"walletName\": \"demohdwallet\",\n        \"password\" : \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\",\n\"outputs\": [{\n          \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n          \"value\": 0.007\n        }],\n}"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/testnet/wallets/hd/txs/size",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify("{\n        \"walletName\": \"demohdwallet\",\n        \"password\" : \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\",\n\"outputs\": [{\n          \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n          \"value\": 0.007\n        }],\n}");
    req.end();
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/txs/size');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    $request->setBody('{
    "walletName": "demohdwallet",
    "password": "8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32",
    "outputs": [{
    "address": "yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc",
    "value": 0.007
    }]}');
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/txs/size")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    request.body = "{\n        \"walletName\": \"demohdwallet\",\n        \"password\" : \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\",\n\"outputs\": [{\n          \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n          \"value\": 0.007\n        }],\n}"
    
    response = http.request(request)
    puts response.read_body
    
    
    
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    payload = "{\n        \"walletName\": \"demohdwallet\",\n        \"password\" : \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\",\n\"outputs\": [{\n          \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n          \"value\": 0.007\n        }],\n}"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/dash/testnet/wallets/hd/txs/size, payload, headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    MediaType mediaType = MediaType.parse("application/json");
    RequestBody body = RequestBody.create(mediaType, ""{\n        \"walletName\": \"demohdwallet\",\n        \"password\" : \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\",\n\"outputs\": [{\n          \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n          \"value\": 0.007\n        }],\n}"");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/txs/size")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/txs/size"
    
        payload := strings.NewReader("{\n        \"walletName\": \"demohdwallet\",\n        \"password\" : \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\",\n\"outputs\": [{\n          \"address\": \"yVrjEE1zwXckCMXZoTStJtb9SJ29xr1ZMc\",\n          \"value\": 0.007\n        }],\n}")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("X-API-Key", "my-api-key")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    

    Response Body

    {
        "payload": {
            "tx_size_bytes": 238
        }
    }
    
    HTTP Request

    POST /v1/bc/dash/${NETWORK}/wallets/hd/txs/size

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    Get Transactions Fee

    Sample Data

    
    curl -X GET 'https://api.cryptoapis.io/v1/bc/dash/testnet/txs/fee' \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/dash/testnet/txs HTTP/1.1
    Host: api.cryptoapis.io
    X-API-Key: my-api-key
    Content-Type: application/json
    
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/dash/testnet/txs/fee",
      "method": "GET",
      "headers": {
        "authorization": "my-api-key",
        "content-type": "application/json"
      }
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    var http = require("https");
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "port": null,
      "path": "/v1/bc/dash/testnet/txs",
      "headers": {
        "authorization": "my-api-key",
        "content-type": "application/json"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/testnet/txs/fee');
    $request->setMethod(HTTP_METH_GET);
    
    $request->setHeaders(array(
      'content-type' => 'application/json',
      'authorization' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/fee")
    
    http = Net::HTTP.new(url.host, url.port)
    http.use_ssl = true
    http.verify_mode = OpenSSL::SSL::VERIFY_NONE
    
    request = Net::HTTP::Get.new(url)
    request["content-type"] = 'application/json'
    request["authorization"] = 'my-api-key'
    
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    
    url = "https://api.cryptoapis.io/v1/bc/dash/testnet/txs/fee"
    
    headers = {
        'content-type': "application/json",
        'authorization': "my-api-key"
        }
    
    response = requests.request("GET", url, headers=headers)
    
    print(response.text)
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/testnet/txs/fee")
      .get()
      .addHeader("authorization", "my-api-key")
      .addHeader("content-type", "application/json")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    package main
    
    import (
        "fmt"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.cryptoapis.io/v1/bc/dash/testnet/txs/fee"
    
        req, _ := http.NewRequest("GET", url, nil)
    
        req.Header.Add("authorization", "my-api-key")
        req.Header.Add("content-type", "application/json")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    

    Response Body

    {
        "payload": {
            "min": "0.00000192",
            "max": "0.02648849",
            "average": "0.00004262",
            "min_fee_per_byte": "0.00000001",
            "average_fee_per_byte": "0.00000005",
            "max_fee_per_byte": "0.00000653",
            "average_bytes": "784", //deprecated
            "recommended": "0.00003332", //deprecated
            "slow_fee_per_byte": "0.00000013",
            "standard_fee_per_byte": "0.00000039",
            "fast_fee_per_byte": "0.000001",
            "unit": "dash"
        }
    }
    
    Info

    Transactions Fee Endpoint gives information about the fees for all transactions included in the last 70 blocks. min shows the lowest fee, max is the highest and average - the average fee. recommended is the fee that we consider as the one that corresponds to a cheap and fast execution. However, it is only a suggestion and should be used at users' sole discretion. average_bytes represents the average size of the transactions in bytes and is used for the calculations of the recommended fee price.

    min_fee_per_byte, average_fee_per_byte and max_fee_per_byte represent the lowest, average and highest values per byte. slow_fee_per_byte, standard_fee_per_byte and fast_fee_per_byte represent the slowest, standard and fastest values per byte for a transaction fee. Crypto APIs provides an endpoint where you can get the size of your transaction in bytes. Using the provided data you can easily calculate and set your fee.

    All fees are in dash!

    HTTP Request

    GET /v1/bc/dash/${NETWORK}/txs/fee

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    Estimate Smart Fee

    Sample Data

    
    curl -X GET 'https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/estimate-fee' \
        -H 'ContentType: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/dash/mainnet/txs/estimate-fee HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    
    
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      }
    });
    
    $.get('https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/estimate-fee').then(function(d) {console.log(d)});mainnet/txsdash
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/txs/estimate-fee",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.on("data", function (data) {
        console.log(data);
      });
    });
    
    request.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/estimate-fee');
    $request->setMethod(HTTP_METH_GET);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    try {
      $response = $request->send();
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/estimate-fee")
    http = Net::HTTP.new(url.host, url.port)
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/estimate-fee'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    response = requests.get(url, headers=headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/estimate-fee")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    import (
      "gopkg.in/resty.v0"
    )
    
    func main()
    {
        resp, err := resty.R().
          SetHeader("Content-Type", "application/json").
          SetHeader("X-API-Key", "my-api-key").
          Get("https://api.cryptoapis.io/v1/bc/dash/mainnet/txs/estimate-fee")
    }
    
    

    Response Body

    {
        "payload": {
            "feeRate": "0.00012290",
            "blocks": "2",
            "unit" : "dash"
        }
    }
    
    Info

    Estimates the approximate fee per kilobyte needed for a transaction to begin confirmation within confTarget blocks if possible and return the number of blocks for which the estimate is valid.

    HTTP Request

    GET /v1/bc/dash/${NETWORK}/txs/estimate-fee

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. testnet or mainnet)
    estimateMode CONSERVATIVE The fee estimate mode. (“UNSET” “ECONOMICAL” “CONSERVATIVE”)
    confTarget 1 Confirmation target in blocks (1 - 1008)

    The returned object contains information about the estimated fee rate in DASH/kB and the block number where estimated fee value was found.

    xPub, yPub, zPub

    What is Xpub?

    Every child key pair can define an xPub (Extended Public Key). As the name suggests, an Xpub doesn’t contain information about private keys, but only public ones. This means that an xPub will not give you access to the funds in a wallet, but the user can also view the child wallet’s addresses, transactions, and balances. You can think of it as a read-only view of a wallet.

    What are Ypub and Zpub?

    After the adoption of SegWit, theBIP49 standard gave origin to the yPub. A yPub key is the same as an xPub key. However, it follows the new standard and has an address type P2SH-P2WPKH. yPub is for backward-compatible SegWit Wallets.

    After the xPub and yPub, the newest Public Extended Key is zPub. Just as its predecessor the zPub follows the BIP49 standard, but the address type is P2WPKH. zPub is for native compatible SegWit wallets.

    Create Public Extended Key (xPub, yPub, zPub)

    Sample Data

    
    curl -X POST 'https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/xpub' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
        -d '{
            "password": "SECRET123456"
        }'
    
    
    POST /v1/bc/dash/mainnet/wallets/hd/xpub HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    {
        "password": "SECRET123456"
    }
    
    
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n\t\"password\": \"SECRET123456\"\n}"
    });
    
    $.post('https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/xpub')
      .then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/wallets/hd/xpub",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.on("data", function (data) {
        console.log(data);
      });
    });
    req.write(JSON.stringify({ password: 'SECRET123456' }));
    request.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/xpub');
    $request->setMethod(HTTP_METH_POST);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    $request->setBody('{
        "password": "SECRET123456"
    }');
    
    try {
      $response = $request->send();
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/xpub")
    http = Net::HTTP.new(url.host, url.port)
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    request.body = "{\n\t\"password\": \"SECRET123456\"\n}"
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/xpub'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    
    payload = "{\n\t\"password\": \"SECRET123456\"\n}"
    response = requests.post(url, payload, headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    RequestBody body = RequestBody.create(mediaType, "{\n\t\"password\": \"SECRET123456\"\n}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/xpub")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    import (
      "gopkg.in/resty.v0"
    )
    
    func main()
    {
        resp, err := resty.R().
        SetHeader("Content-Type", "application/json").
        SetHeader("X-API-Key", "my-api-key").
        url := "https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/xpub"
        payload := strings.NewReader("{\n\t\"password\": \"SECRET123456\"\n}")
    
        req, _ := http.NewRequest("POST", url, payload)
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    }
    
    

    Response Body

    {
        "payload": {
            "xpriv":"111149fAjgfpaLX2qhFxD4JQ8CHavnvWcfUKYoDBgFeijWjUPPg8Ye7qy4A3NGLjzNPs3fW43piHo56idzMC7FCgxkL1wjUfRTvXNfGDN7KfbR",
            "xpub": "111149fAjgfpaLX2qhFxD4JQ8CHavnvWcfUKYoDBgFeijWjUPPg8Ye7qy4A3Roa7PdfJNRt8CT8Mrg8ueB4bHouhMgFDoBSw5DDredjs3aZDyz",
            "wif": "XFs281YJDN87tEoHzvBBuGeHijKkRzFzGZx9Q575SmunTxRh1bpq"
        }
    }
    
    Info

    Create Public Extended Key (xPub, yPub, zPub) Endpoint allows you to create a random extended public key (based on your password), xpriv and wif.

    HTTP Request

    POST /v1/bc/dash/${NETWORK}/wallets/hd/xpub

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. mainnet or testnet)
    Get Public Extended Key Addresses (xPub, yPub, zPub)

    Sample Data

    
    curl -X POST 'https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/xpub/addresses?limit=5' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
        -d '{
        "xpub":"xpub6CYEjsU6zPM3sADS2ubu2aZeGxCm3C5KabkCpo4rkNbXGAH9M7rRUJ4E5CKiyUddmRzrSCopPzisTBrXkfCD4o577XKM9mzyZtP1Xdbizyk"
    }'
    
    
    POST /v1/bc/dash/mainnet/wallets/hd/xpub/addresses?limit=5 HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    {
        "xpub":"xpub6CYEjsU6zPM3sADS2ubu2aZeGxCm3C5KabkCpo4rkNbXGAH9M7rRUJ4E5CKiyUddmRzrSCopPzisTBrXkfCD4o577XKM9mzyZtP1Xdbizyk"
    }
    
    
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n\t\"xpub\":\"xpub6CYEjsU6zPM3sADS2ubu2aZeGxCm3C5KabkCpo4rkNbXGAH9M7rRUJ4E5CKiyUddmRzrSCopPzisTBrXkfCD4o577XKM9mzyZtP1Xdbizyk\"\n}"
    });
    
    $.post('https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/xpub/addresses?limit=5')
      .then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/wallets/hd/xpub/addresses?limit=5",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.on("data", function (data) {
        console.log(data);
      });
    });
    req.write(JSON.stringify({ xpub: 'xpub6CYEjsU6zPM3sADS2ubu2aZeGxCm3C5KabkCpo4rkNbXGAH9M7rRUJ4E5CKiyUddmRzrSCopPzisTBrXkfCD4o577XKM9mzyZtP1Xdbizyk' }));
    request.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/xpub/addresses?limit=5');
    $request->setMethod(HTTP_METH_POST);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    $request->setBody('{
        "xpub":"xpub6CYEjsU6zPM3sADS2ubu2aZeGxCm3C5KabkCpo4rkNbXGAH9M7rRUJ4E5CKiyUddmRzrSCopPzisTBrXkfCD4o577XKM9mzyZtP1Xdbizyk"
    }');
    
    try {
      $response = $request->send();
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/xpub/addresses?limit=5")
    http = Net::HTTP.new(url.host, url.port)
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    request.body = "{\n\t\"xpub\":\"xpub6CYEjsU6zPM3sADS2ubu2aZeGxCm3C5KabkCpo4rkNbXGAH9M7rRUJ4E5CKiyUddmRzrSCopPzisTBrXkfCD4o577XKM9mzyZtP1Xdbizyk\"\n}"
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/xpub/addresses?limit=5'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    
    payload = "{\n\t\"xpub\":\"xpub6CYEjsU6zPM3sADS2ubu2aZeGxCm3C5KabkCpo4rkNbXGAH9M7rRUJ4E5CKiyUddmRzrSCopPzisTBrXkfCD4o577XKM9mzyZtP1Xdbizyk\"\n}"
    
    response = requests.post(url, payload, headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    RequestBody body = RequestBody.create(mediaType, "{\n\t\"xpub\":\"xpub6CYEjsU6zPM3sADS2ubu2aZeGxCm3C5KabkCpo4rkNbXGAH9M7rRUJ4E5CKiyUddmRzrSCopPzisTBrXkfCD4o577XKM9mzyZtP1Xdbizyk\"\n}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/xpub/addresses?limit=5")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    import (
      "gopkg.in/resty.v0"
    )
    
    func main()
    {
        resp, err := resty.R().
        SetHeader("Content-Type", "application/json").
        SetHeader("X-API-Key", "my-api-key").
        url := "https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/xpub/addresses?limit=5"
        payload := strings.NewReader("{\n\t\"xpub\":\"xpub6CYEjsU6zPM3sADS2ubu2aZeGxCm3C5KabkCpo4rkNbXGAH9M7rRUJ4E5CKiyUddmRzrSCopPzisTBrXkfCD4o577XKM9mzyZtP1Xdbizyk\"\n}")
    
        req, _ := http.NewRequest("POST", url, payload)
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    }
    
    

    Response Body

    {
        "payload": [
            "XoJA8qE3N2Y3jMLEtZ3vcN42qseZ8LvFf5",
            "XbctnEsgWTn5j1co3emZynemxSFPqkLRKZ",
            "XdD2biTJ3saZtcR6ravwJ9bvmkvmDq49Xg",
            "XkBrNhE8srfb8BbeTRSU4dxWsjjedra4Xn",
            "Xe8n8PZNgngjbMCFEA9unH26TmEWPPjm6a"
        ],
        "meta": {
            "totalCount": 5,
            "index": 0,
            "limit": 5,
            "results": 5
        }
    }
    
    Info

    Get Pub Addresses Endpoint allows you to get addresses associated with the specified extended public key. Supported BIP formats are: bip39 and bip44. Since addresses are hierarchically ordered we provide the query params index and limit, in order to be able to get the addresses in specific positions. Default values are: 0 and 100, accordingly. The default values will return the first one hundred receive addresses. If you want to get the change addresses of the extended public key you should set type to be equal to "change" as a query parameter. If you want to get addresses in P2PKH (P2PKH which begin with the number 1, eg: 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2) address format type you should set address_type to be equal to P2PKH. If you want to get addresses in P2SH (P2SH which begin with the number 3, eg: 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy) address format type you should set address_type to be equal to P2SH. If you want to get addresses in Bech32 (Bech32 which begin with bc1, eg: bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq) address format type you should set address_type to be equal to Bech32.

    HTTP Request

    POST /v1/bc/dash/${NETWORK}/wallets/hd/xpub/addresses

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. mainnet or testnet)
    index 0 starting point (integer)
    limit 100 result count (integer)
    type receive address type (string)
    address_type P2PKH address format type (string) (Allowed types are: P2PKH, P2SH, Bech32)
    Get Public Extended Key Transactions (xPub, yPub, zPub)

    Sample Data

    
    curl -X POST 'https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/xpub/addresses/transactions' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
        -d '{
        "xpub":"xpub6CYEjsU6zPM3sADS2ubu2aZeGxCm3C5KabkCpo4rkNbXGAH9M7rRUJ4E5CKiyUddmRzrSCopPzisTBrXkfCD4o577XKM9mzyZtP1Xdbizyk"
    }'
    
    
    POST /v1/bc/dash/mainnet/wallets/hd/xpub/addresses/transactions HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    {
        "xpub":"xpub6CYEjsU6zPM3sADS2ubu2aZeGxCm3C5KabkCpo4rkNbXGAH9M7rRUJ4E5CKiyUddmRzrSCopPzisTBrXkfCD4o577XKM9mzyZtP1Xdbizyk"
    }
    
    
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n\t\"xpub\":\"xpub6CYEjsU6zPM3sADS2ubu2aZeGxCm3C5KabkCpo4rkNbXGAH9M7rRUJ4E5CKiyUddmRzrSCopPzisTBrXkfCD4o577XKM9mzyZtP1Xdbizyk\"\n}"
    });
    
    $.post('https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/xpub/addresses/transactions')
      .then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/mainnet/wallets/hd/xpub/addresses/transactions",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.on("data", function (data) {
        console.log(data);
      });
    });
    req.write(JSON.stringify({ xpub: 'xpub6CYEjsU6zPM3sADS2ubu2aZeGxCm3C5KabkCpo4rkNbXGAH9M7rRUJ4E5CKiyUddmRzrSCopPzisTBrXkfCD4o577XKM9mzyZtP1Xdbizyk' }));
    request.end();
    
    
    
    &lt;?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/xpub/addresses/transactions');
    $request->setMethod(HTTP_METH_POST);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    $request->setBody('{
        "xpub":"xpub6CYEjsU6zPM3sADS2ubu2aZeGxCm3C5KabkCpo4rkNbXGAH9M7rRUJ4E5CKiyUddmRzrSCopPzisTBrXkfCD4o577XKM9mzyZtP1Xdbizyk"
    }');
    
    try {
      $response = $request->send();
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/xpub/addresses/transactions")
    http = Net::HTTP.new(url.host, url.port)
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["X-API-Key"] = 'my-api-key'
    request.body = "{\n\t\"xpub\":\"xpub6CYEjsU6zPM3sADS2ubu2aZeGxCm3C5KabkCpo4rkNbXGAH9M7rRUJ4E5CKiyUddmRzrSCopPzisTBrXkfCD4o577XKM9mzyZtP1Xdbizyk\"\n}"
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/xpub/addresses/transactions'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    
    payload = "{\n\t\"xpub\":\"xpub6CYEjsU6zPM3sADS2ubu2aZeGxCm3C5KabkCpo4rkNbXGAH9M7rRUJ4E5CKiyUddmRzrSCopPzisTBrXkfCD4o577XKM9mzyZtP1Xdbizyk\"\n}"
    
    response = requests.post(url, payload, headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    RequestBody body = RequestBody.create(mediaType, "{\n\t\"xpub\":\"xpub6CYEjsU6zPM3sADS2ubu2aZeGxCm3C5KabkCpo4rkNbXGAH9M7rRUJ4E5CKiyUddmRzrSCopPzisTBrXkfCD4o577XKM9mzyZtP1Xdbizyk\"\n}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/dash/mainnet/wallets/hd/xpub/addresses/transactions")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    
    import (
      "gopkg.in/resty.v0"
    )
    
    func main()
    {
        resp, err := resty.R().
        SetHeader("Content-Type", "application/json").
        SetHeader("X-API-Key", "my-api-key").
        url := "https://api.cryptoapis.io/v1/bc/dash/mainnett/wallets/hd/xpub/addresses/transactions"
        payload := strings.NewReader("{\n\t\"xpub\":\"xpub6CYEjsU6zPM3sADS2ubu2aZeGxCm3C5KabkCpo4rkNbXGAH9M7rRUJ4E5CKiyUddmRzrSCopPzisTBrXkfCD4o577XKM9mzyZtP1Xdbizyk\"\n}")
    
        req, _ := http.NewRequest("POST", url, payload)
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    }
    
    

    Response Body

     {
        "payload": [
            {
                "address": "XoJA8qE3N2Y3jMLEtZ3vcN42qseZ8LvFf5",
                "transactions": [
                    {
                        "txid": "f3269c40c4464838f497e8cbfa95f357838bfce5cc4f53ce2e5f73989f15319b",
                        "index": 14,
                        "version": 1,
                        "size": 191,
                        "locktime": 883653,
                        "datetime": "2018-06-08 17:32:07 UTC",
                        "time": "2018-06-08 17:32:07 UTC",
                        "blockhash": "0000000000000013774f487bb8c1b0ae6bdc525132a81c27d4320add71d20de5",
                        "blockheight": 883654,
                        "blocktime": "2018-06-08 17:32:07 UTC",
                        "timestamp": 1528479127,
                        "txins": [
                            {
                                "txout": "6d49881892429d6e0c1eca781ca2ac38f49edb803b38638bbcd4a494bcb638d8",
                                "vout": 0,
                                "amount": "0.01",
                                "addresses": [
                                    "XoJA8qE3N2Y3jMLEtZ3vcN42qseZ8LvFf5"
                                ],
                                "script": {
                                    "asm": "304402202085c83955ee29a0693b9bdc8076c187e6028b850bc0522400936501062930e3022054e02810d89288e655c7d6d89449796561e16e0242f3a2e9b039fc366da99f69[ALL] 026fa9a6f213b6ba86447965f6b4821264aaadd7521f049f00db9c43a770ea7405",
                                    "hex": "47304402202085c83955ee29a0693b9bdc8076c187e6028b850bc0522400936501062930e3022054e02810d89288e655c7d6d89449796561e16e0242f3a2e9b039fc366da99f690121026fa9a6f213b6ba86447965f6b4821264aaadd7521f049f00db9c43a770ea7405"
                                },
                                "votype": "pubkeyhash"
                            }
                        ],
                        "txouts": [
                            {
                                "amount": "0.0099",
                                "type": "pubkeyhash",
                                "spent": true,
                                "addresses": [
                                    "XfVzg3PPJ11qqmHxWvKLQ5CAi12DhksZGi"
                                ],
                                "script": {
                                    "asm": "OP_DUP OP_HASH160 34cb6eff73349d5023ebc3e5c0511be05baf1027 OP_EQUALVERIFY OP_CHECKSIG",
                                    "hex": "76a91434cb6eff73349d5023ebc3e5c0511be05baf102788ac",
                                    "reqsigs": 1
                                }
                            }
                        ]
                    },
                    {
                        "txid": "6d49881892429d6e0c1eca781ca2ac38f49edb803b38638bbcd4a494bcb638d8",
                        "index": 12,
                        "version": 1,
                        "size": 667,
                        "locktime": 883491,
                        "datetime": "2018-06-08 10:15:08 UTC",
                        "time": "2018-06-08 10:15:08 UTC",
                        "blockhash": "0000000000000001a5b119b258aaf57fb2e68ac50c25d3e678997ba6436b4118",
                        "blockheight": 883492,
                        "blocktime": "2018-06-08 10:15:08 UTC",
                        "timestamp": 1528452908,
                        "txins": [
                            {
                                "txout": "50625a5e60779ba3259af770c419e6bdc0c42d40d8e1364bef1335cf689ce998",
                                "vout": 0,
                                "amount": "0.0001",
                                "addresses": [
                                    "Xi74oGDCNagLS877dtuUyA5v6PfC6QvmZ5"
                                ],
                                "script": {
                                    "asm": "30450221008622d5df5050a5eb837777566917b7389cb36b6922fc7c70fc4b24885009635c022059dc7c6055bbff0a76b1148048e16409c55f6559081076a133b612f7c62d0663[ALL] 0341b31779327622da35906b2a92ebe7eb9ff3aa526fdfccb2d09309873cd519fd",
                                    "hex": "4830450221008622d5df5050a5eb837777566917b7389cb36b6922fc7c70fc4b24885009635c022059dc7c6055bbff0a76b1148048e16409c55f6559081076a133b612f7c62d066301210341b31779327622da35906b2a92ebe7eb9ff3aa526fdfccb2d09309873cd519fd"
                                },
                                "votype": "pubkeyhash"
                            },
                            {
                                "txout": "44365ea0c6a251c511810c501778fb46e9214f84f81364c7ba6f100e4b61e22c",
                                "vout": 0,
                                "amount": "0.0001",
                                "addresses": [
                                    "Xi74oGDCNagLS877dtuUyA5v6PfC6QvmZ5"
                                ],
                                "script": {
                                    "asm": "304402207a9768d8a023c97c2242d0cf624deb309da910cb2d353fe5d23290d34ce3d5f702200cab9b3bc7c367e30613b6397dd207b346be1db364f7749311a8f39eeb17baba[ALL] 0341b31779327622da35906b2a92ebe7eb9ff3aa526fdfccb2d09309873cd519fd",
                                    "hex": "47304402207a9768d8a023c97c2242d0cf624deb309da910cb2d353fe5d23290d34ce3d5f702200cab9b3bc7c367e30613b6397dd207b346be1db364f7749311a8f39eeb17baba01210341b31779327622da35906b2a92ebe7eb9ff3aa526fdfccb2d09309873cd519fd"
                                },
                                "votype": "pubkeyhash"
                            },
                            {
                                "txout": "31b6f093e52b4d992e6a31921429fc444469dfc4cddc13774e2914673d81b98f",
                                "vout": 1,
                                "amount": "0.00895542",
                                "addresses": [
                                    "Xpnhu28idj5ZzAhk1jR1jBeMk74WY6NFuh"
                                ],
                                "script": {
                                    "asm": "3044022054507f23582ced5769f97d152f3afb78d76a546bdf6bad31f23364167cb65da5022015eaa2904085d75643c1714a17ba783f37fb3e1a2d560a7d2ed542f14e5e01eb[ALL] 02e3512fe5ff8464797b55698bf2a1ab46863bad1c1369871761eb3a782c0107d1",
                                    "hex": "473044022054507f23582ced5769f97d152f3afb78d76a546bdf6bad31f23364167cb65da5022015eaa2904085d75643c1714a17ba783f37fb3e1a2d560a7d2ed542f14e5e01eb012102e3512fe5ff8464797b55698bf2a1ab46863bad1c1369871761eb3a782c0107d1"
                                },
                                "votype": "pubkeyhash"
                            },
                            {
                                "txout": "031ff198bd7a47b4d8fb6f7b668af1413ba4bae38c0f28324479daef78a3a8ac",
                                "vout": 1,
                                "amount": "0.00112192",
                                "addresses": [
                                    "Xdnbiuqj2qwe5Ft9QGYTauMvjUXtLnSVKL"
                                ],
                                "script": {
                                    "asm": "3044022063fc976224036ced42bb3b4acff44190ebd9af0cd98282e084351bff9416dc21022000c833833dc6b37787d5617b407b7deba26492a0012e0a8cb87b4dcc3d680cbd[ALL] 02c42a2366311647186395f6fd5904761468ae01cec6ef69a8fdf08eeaded5d35d",
                                    "hex": "473044022063fc976224036ced42bb3b4acff44190ebd9af0cd98282e084351bff9416dc21022000c833833dc6b37787d5617b407b7deba26492a0012e0a8cb87b4dcc3d680cbd012102c42a2366311647186395f6fd5904761468ae01cec6ef69a8fdf08eeaded5d35d"
                                },
                                "votype": "pubkeyhash"
                            }
                        ],
                        "txouts": [
                            {
                                "amount": "0.01",
                                "type": "pubkeyhash",
                                "spent": true,
                                "addresses": [
                                    "XoJA8qE3N2Y3jMLEtZ3vcN42qseZ8LvFf5"
                                ],
                                "script": {
                                    "asm": "OP_DUP OP_HASH160 8a4f58c222cd5544c527bc66925652baa70b5e80 OP_EQUALVERIFY OP_CHECKSIG",
                                    "hex": "76a9148a4f58c222cd5544c527bc66925652baa70b5e8088ac",
                                    "reqsigs": 1
                                }
                            },
                            {
                                "amount": "0.00021034",
                                "type": "pubkeyhash",
                                "spent": true,
                                "addresses": [
                                    "Xer7BZwHoXoFxBUoLwzmit1TzHuyvx4Z4v"
                                ],
                                "script": {
                                    "asm": "OP_DUP OP_HASH160 2da10f7fdfc5967efa105ee37e42c2872ba9c17f OP_EQUALVERIFY OP_CHECKSIG",
                                    "hex": "76a9142da10f7fdfc5967efa105ee37e42c2872ba9c17f88ac",
                                    "reqsigs": 1
                                }
                            }
                        ]
                    }
                ]
            }
        ],
        "meta": {
            "totalCount": 1,
            "index": 0,
            "limit": 100,
            "results": 1
        }
    }
    
    Info

    Get Pub Addresses Endpoint allows you to get transactions associated with the specified extended public key. Supported BIP formats are: bip39, and bip44. Since addresses are hierarchically ordered we provide the query params index and limit, in order to be able to get the addresses and their transactions in specific positions. Default values are: 0 and 100, accordingly. The default values will return the transactions for the first one hundred receive addresses. If you want to get the change addresses of the extended public key you should set type to be equal to "change" as a query parameter. If the transactions you are looking for are transactions from addresses in P2PKH (P2PKH which begin with the number 1, eg: 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2) address format type you should set address_type to be equal to P2PKH. If the transactions you are looking for are transactions from addresses in P2SH (P2SH which begin with the number 3, eg: 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy) address format type you should set address_type to be equal to P2SH. If the transactions you are looking for are transactions from addresses in Bech32 (Bech32 which begin with bc1, eg: bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq) address format type you should set address_type to be equal to Bech32. If the transactions you are looking for are transactions from addresses in ALL (P2PKH, P2SH, Bech32) formats type you should set address_type to be equal to ALL.

    results property in the response shows the number of addresses that have transactions for the specified query.

    HTTP Request

    POST /v1/bc/dash/${NETWORK}/wallets/hd/xpub/addresses/transactions

    Query Parameters
    Parameter Default Description
    NETWORK ------- Network name (e.g. mainnet or testnet)
    index 0 starting point (integer)
    limit 100 result count (integer)
    type receive address type (string)
    address_type P2PKH address format type (string) (Allowed types are: P2PKH, P2SH, Bech32, ALL)
    Get Public Extended Key Details (xPub, yPub, zPub)

    Sample Data

    
    curl -X POST 'https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/xpub/details' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
        -d '{
        "xpub":"tpubD9FL9DbTJTAXib3eQx3CUYq9P7vBcK1D8JoxpV1bkEjAZa2Fsjg349BxEkCizVaibSUnkscCuqwJj68vWakiBmwe4S64XMT8QvK4DNwk8f4"
    }'
    
    
    POST /v1/bc/dash/testnet/wallets/hd/xpub/details HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    {
        "xpub":"tpubD9FL9DbTJTAXib3eQx3CUYq9P7vBcK1D8JoxpV1bkEjAZa2Fsjg349BxEkCizVaibSUnkscCuqwJj68vWakiBmwe4S64XMT8QvK4DNwk8f4"
    }
    
    
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n\t\"xpub\":\"tpubD9FL9DbTJTAXib3eQx3CUYq9P7vBcK1D8JoxpV1bkEjAZa2Fsjg349BxEkCizVaibSUnkscCuqwJj68vWakiBmwe4S64XMT8QvK4DNwk8f4\"\n}"
    });
    
    $.post('https://api.cryptoapis.io/v1/bc/dash/testnet/wallets/hd/xpub/details')
      .then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/dash/testnet/wallets/hd/xpub/details",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      }
    };
    
    var request = https.request(options, function (response) {
      response.