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

    General Information

    Get Node Information

    Sample Data

    
    curl -X GET 'https://api.cryptoapis.io/v1/bc/doge/mainnet/info' \
        -H 'ContentType: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/doge/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/doge/mainnet/info').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/doge/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/doge/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/doge/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/doge/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/doge/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/doge/mainnet/info")
    }
    
    

    Response Body

    {
      "payload": {
          "difficulty": 0.00029592,
          "headers": 1985383,
          "chain": "test",
          "chainWork": "00000000000000000000000000000000000000000000000000034b28d8e9165c",
          "mediantime": 1572251307,
          "blocks": 1985383,
          "bestBlockHash": "4980db30612a0b1f04471764cb5e29153a2e2d3ebe97b3b240d897f6f6dc224c",
          "currency": "DOGE",
          "transactions": 3006320,
          "verificationProgress": 0.9999998
      }
    }
    
    Info

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

    HTTP Request

    GET /v1/bc/doge/${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/doge/testnet/blocks/a34e5051be019534bac0704c2e6a5b294ccc8a357b47bf1c3097bedcaa22c31c' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/doge/testnet/blocks/a34e5051be019534bac0704c2e6a5b294ccc8a357b47bf1c3097bedcaa22c31c 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/doge/testnet/blocks/a34e5051be019534bac0704c2e6a5b294ccc8a357b47bf1c3097bedcaa22c31c').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/doge/testnet/blocks/a34e5051be019534bac0704c2e6a5b294ccc8a357b47bf1c3097bedcaa22c31c",
      "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/doge/testnet/blocks/a34e5051be019534bac0704c2e6a5b294ccc8a357b47bf1c3097bedcaa22c31c');
    $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/a34e5051be019534bac0704c2e6a5b294ccc8a357b47bf1c3097bedcaa22c31c")
    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/doge/testnet/blocks/a34e5051be019534bac0704c2e6a5b294ccc8a357b47bf1c3097bedcaa22c31c'
    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/doge/testnet/blocks/a34e5051be019534bac0704c2e6a5b294ccc8a357b47bf1c3097bedcaa22c31c")
      .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/doge/testnet/blocks/a34e5051be019534bac0704c2e6a5b294ccc8a357b47bf1c3097bedcaa22c31c")
    }
    
    

    Response Body

    {
      "payload": {
          "hash": "a34e5051be019534bac0704c2e6a5b294ccc8a357b47bf1c3097bedcaa22c31c",
          "strippedsize": 5928,
          "size": 182,
          "weight": 23712,
          "height": 1985378,
          "version": 6422531,
          "merkleroot": "00aa21efba6fa461e94e15d2a66d91aef7f2852f517fff5e7f8d23490c97318e",
          "time": "2019-05-28 13:50:42 UTC", //deprecated
          "datetime": "2019-05-28 13:50:42 UTC",
          "mediantime": "1970-01-01 00:00:00 UTC",
          "nonce": 12738,
          "bits": "1e0e2fc8",
          "difficulty": 0.00027534,
          "chainwork": "00000000000000000000000000000000000000000000000000034b28d892c8c0",
          "previousblockhash": "7ba6d0c509e93f220cd1f3101e51eccb91e8a6be6f95fe9246fad62ea3b7eadb",
          "transactions": 1,
          "tx": [
              "00aa21efba6fa461e94e15d2a66d91aef7f2852f517fff5e7f8d23490c97318e"
          ],
          "confirmations": 1,
          "timestamp": 1559051442
      }
    }
    
    Info

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

    HTTP Request

    GET /v1/bc/doge/${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/doge/testnet/blocks/1985318' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/doge/testnet/blocks/1985318 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/doge/testnet/blocks/1985318').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/doge/testnet/blocks/1985318",
      "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/doge/testnet/blocks/1985318');
    $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/1985318")
    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/doge/testnet/blocks/1985318'
    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/doge/testnet/blocks/1985318")
      .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/doge/testnet/blocks/1985318")
    }
    
    

    Response Body

    {
      "payload": {
          "hash": "8c95a4b6a8a3cb1a3c8c9bca9401537bba87f8f8010ad7cb7b3ad54bf5a85547",
          "strippedsize": 170,
          "size": 170,
          "weight": 680,
          "height": 1985318,
          "version": 6422531,
          "merkleroot": "0348f785f8779822c9f81d60684f320e9a230fbfe6241a0502edfe257feff3b6",
          "time": "2019-05-28 12:42:29 UTC", //datetime
          "datetime": "2019-05-28 12:42:29 UTC",
          "mediantime": "1970-01-01 00:00:00 UTC",
          "nonce": 2116222976,
          "bits": "1e0d71c5",
          "difficulty": 0.00029054,
          "chainwork": "00000000000000000000000000000000000000000000000000034b28d488ac87",
          "previousblockhash": "f326cec83845b3de814cc5b6042cc9b4e7625cf3095f8326f39b3542405a5a45",
          "nextblockhash": "50199c1f46b7148f74e7cb8d271845e0390802b768530a9ce07d1f81cbe6277d",
          "transactions": 1,
          "tx": [
              "0348f785f8779822c9f81d60684f320e9a230fbfe6241a0502edfe257feff3b6"
          ],
          "confirmations": 62,
          "timestamp": 1559047349
      }
    }
    
    Info

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

    HTTP Request

    GET /v1/bc/doge/${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:

    1985318

    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": "4980db30612a0b1f04471764cb5e29153a2e2d3ebe97b3b240d897f6f6dc224c",
          "strippedsize": 182,
          "size": 170,
          "weight": 728,
          "height": 1985383,
          "version": 6422531,
          "merkleroot": "44e5c44326681fb67490e888c07f46864f309a5857d25b65951a20ca29eb9110",
          "time": "2019-05-28 13:55:44 UTC", //deprecated
          "datetime": "2019-05-28 13:55:44 UTC",
          "mediantime": "1970-01-01 00:00:00 UTC",
          "nonce": 2286419968,
          "bits": "1e0d3331",
          "difficulty": 0.00029592,
          "chainwork": "00000000000000000000000000000000000000000000000000034b28d8e9165c",
          "previousblockhash": "5049cb8fa6575bb2a6a6f951800bb6cc205acbcded0cbdde12b88c65c266b387",
          "transactions": 1,
          "tx": [
              "44e5c44326681fb67490e888c07f46864f309a5857d25b65951a20ca29eb9110"
          ],
          "confirmations": 1,
          "timestamp": 1559051744
      }
    }
    
    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/doge/mainnet/address' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    POST /v1/bc/doge/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/doge/mainnet/address')
      .then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/doge/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/doge/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/doge/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/doge/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/doge/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/doge/mainnet/address")
    }
    
    

    Response Body

    {
      "payload": {
          "privateKey": "eee58b785c2a30921f48fdd9376557199f2e35bd0f25312a1239015cb7c50464",
          "publicKey": "03604b232dc0daffc76a0f9ee7b8779859f1bde11e25f60329881753cac2875fb1",
          "address": "DNh8bbtHnQvRWUf9FVPHrMp1VBZWQkUmcB",
          "wif": "QWd1bu8YhkEUUHRnr7n5k8uiPtT9y9xEj8LPQCqcTfH7Uni6aLrY"
      }
    }
    
    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/doge/${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/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y 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/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y",
      "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/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y');
    $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/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y")
    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/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y'
    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/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y")
      .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/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y")
    }
    
    

    Response Body

    {
      "payload": {
          "address": "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y",
          "totalSpent": "23.344",
          "totalReceived": "161.08476859",
          "balance": "137.74076859",
          "txi": 2,
          "txo": 5,
          "txsCount": 5,
          "addresses": [
              "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y"
          ]
      }
    }
    
    Info

    The default Address Endpoint strikes a general information about addresses.

    HTTP Request

    GET /v1/bc/doge/${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:

    nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y

    The returned object contains information about the address, including its balance in dogecoins 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/doge/testnet/address/mfX9XpSGvUSJQSL3UMgW3kqER52KWhAYM9/multisig' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/${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 dogecoins 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/doge/testnet/address/n1s4jV66dGSX6TDezLRWZgcEuH5Sy2Pujg/basic/transactions' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/doge/testnet/address/n1s4jV66dGSX6TDezLRWZgcEuH5Sy2Pujg/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/doge/testnet/address/n1s4jV66dGSX6TDezLRWZgcEuH5Sy2Pujg/basic/transactions').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/doge/testnet/address/n1s4jV66dGSX6TDezLRWZgcEuH5Sy2Pujg/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/doge/testnet/address/n1s4jV66dGSX6TDezLRWZgcEuH5Sy2Pujg/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/doge/testnet/address/n1s4jV66dGSX6TDezLRWZgcEuH5Sy2Pujg/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/doge/testnet/address/n1s4jV66dGSX6TDezLRWZgcEuH5Sy2Pujg/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/doge/testnet/address/n1s4jV66dGSX6TDezLRWZgcEuH5Sy2Pujg/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/doge/testnet/address/n1s4jV66dGSX6TDezLRWZgcEuH5Sy2Pujg/basic/transactions")
    }
    
    

    Response Body

    {
      "payload": [
        {
          "txid": "270def61097dca1f6a8be25438150c6b9569f10ebec49b2d66810c73343c2768",
          "amount": 10000,
          "fee": 0,
          "unit": "doge",
          "datetime": "2020-03-06 09:11:49 UTC",
          "timestamp": 1583485909,
          "confirmations": 12,
          "sent": {
            "coinbase": 10000
          },
          "received": {
            "mnetBQ8h3srGd3oNT4uczwcQpXjR6AE73E": 10000
          }
        },
        ...
        {
          "txid": "a0cdccf8d08d70baec5a0f990ba06381b13372c9f1320ba6b44e142856e7f286",
          "amount": 10000,
          "fee": 0,
          "unit": "doge",
          "datetime": "2020-03-06 08:47:10 UTC",
          "timestamp": 1583484430,
          "confirmations": 58,
          "sent": {
            "coinbase": 10000
          },
          "received": {
            "mnetBQ8h3srGd3oNT4uczwcQpXjR6AE73E": 10000
          }
        }
      ],
      "meta": {
        "totalCount": 9056,
        "index": 0,
        "limit": 50,
        "results": 50
      }
    }
    
    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/doge/${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:

    n1s4jV66dGSX6TDezLRWZgcEuH5Sy2Pujg

    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/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y/transactions' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y/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/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y/transactions').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/doge/mainnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y/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/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y/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/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y/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/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y/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/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y/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/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y/transactions")
    }
    
    

    Response Body

    {
        "payload": [
            {
                "txid": "7d05ed18af07cec3f268c1c3acd7011c983eaf1e3b95aa17f8937d134729f353",
                "index": 3,
                "version": 1,
                "size": 373,
                "vsize": 91,
                "locktime": 0,
                "time": "2019-05-28 13:18:26 UTC", //deprecated
                "datetime": "2019-05-28 13:18:26 UTC",
                "blockhash": "e6c30026fa9ca96a4d00599633ad050995c1dae6971e0922e304339d8ba72ac8",
                "blockheight": 1985347,
                "blocktime": "2019-05-28 13:18:26 UTC",
                "timestamp": 1559049506,
                "confirmations": 40,
                "txins": [
                    {
                        "txout": "0763d9d2f71799d05de908066d4812476f2c5bdcc780b42132aad51cc94b9ccc",
                        "vout": 1,
                        "amount": "42.87553718",
                        "addresses": [
                            "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c"
                        ],
                        "script": {
                            "asm": "304402206f71b8e34ca542fce412d56920fa8131d56bfeb477cd4f727eb4a7cc2cbf634502202292e942a7caf97f7d2ffa925958066583b88bc4b1cab808e3a627c16cdd8b1c01 02062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2d",
                            "hex": "47304402206f71b8e34ca542fce412d56920fa8131d56bfeb477cd4f727eb4a7cc2cbf634502202292e942a7caf97f7d2ffa925958066583b88bc4b1cab808e3a627c16cdd8b1c012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2d"
                        },
                        "votype": "pubkeyhash"
                    },
                    {
                        "txout": "2fe7a328abc82325dbe26c5f19b3ffd32a8c18efb490e52cf0f5faaa8ed0cdd1",
                        "vout": 1,
                        "amount": "100",
                        "addresses": [
                            "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c"
                        ],
                        "script": {
                            "asm": "30450221009d25959314bd2cc34e73228c7793bf537fbc014db36e3de48537844ac05f97010220696473a40c3c5eca86e5a6c8f7e5a177e369385ec1cb187f665f7ec6d260492401 02062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2d",
                            "hex": "4830450221009d25959314bd2cc34e73228c7793bf537fbc014db36e3de48537844ac05f97010220696473a40c3c5eca86e5a6c8f7e5a177e369385ec1cb187f665f7ec6d2604924012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2d"
                        },
                        "votype": "pubkeyhash"
                    }
                ],
                "txouts": [
                    {
                        "amount": "121.309",
                        "type": "pubkeyhash",
                        "spent": false,
                        "addresses": [
                            "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y"
                        ],
                        "script": {
                            "asm": "OP_DUP OP_HASH160 fff5827ee63cc9e8073f7ffb221c57efe1756a60 OP_EQUALVERIFY OP_CHECKSIG",
                            "hex": "76a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac",
                            "reqsigs": 1
                        }
                    },
                    {
                        "amount": "20.56630577",
                        "type": "pubkeyhash",
                        "spent": false,
                        "addresses": [
                            "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c"
                        ],
                        "script": {
                            "asm": "OP_DUP OP_HASH160 cedde8f2a0b38593095aaca585dfebf137fb2941 OP_EQUALVERIFY OP_CHECKSIG",
                            "hex": "76a914cedde8f2a0b38593095aaca585dfebf137fb294188ac",
                            "reqsigs": 1
                        }
                    }
                ]
            },
           ...
            {
                "txid": "c273956a15a9b343dc48fcb75f5a01e6de531eccb1cdb9b231d2c39eb1590dbf",
                "index": 2,
                "version": 1,
                "locktime": 0,
                "time": "2019-05-27 08:44:08 UTC", //deprecated
                "datetime": "2019-05-27 08:44:08 UTC",
                "blockhash": "baed74912fc969d6ef7521e480d7d690e856b63c4eb2416441a09d4ed2a39cdc",
                "blockheight": 1983780,
                "blocktime": "2019-05-27 08:44:08 UTC",
                "timestamp": 1558946648,
                "confirmations": 1607,
                "txins": [
                    {
                        "txout": "ff7c7f6c04e580a5d85c55c8465b70754ac1b3542a56b1e4b7e54487dd7a9b6c",
                        "vout": 0,
                        "amount": "100",
                        "addresses": [
                            "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c"
                        ],
                        "script": {
                            "asm": "3044022063db72cad117a546b63717d4510af98c3acbe947b0a13150392d06b1d50532700220564fa917286142d58775e8e0b2beb2a86703b94775f32ce1043b6a7c66ddcd2e01 02062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2d",
                            "hex": "473044022063db72cad117a546b63717d4510af98c3acbe947b0a13150392d06b1d50532700220564fa917286142d58775e8e0b2beb2a86703b94775f32ce1043b6a7c66ddcd2e012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2d"
                        },
                        "votype": "pubkeyhash"
                    }
                ],
                "txouts": [
                    {
                        "amount": "11.34",
                        "type": "pubkeyhash",
                        "spent": true,
                        "addresses": [
                            "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y"
                        ],
                        "script": {
                            "asm": "OP_DUP OP_HASH160 fff5827ee63cc9e8073f7ffb221c57efe1756a60 OP_EQUALVERIFY OP_CHECKSIG",
                            "hex": "76a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac",
                            "reqsigs": 1
                        }
                    },
                    {
                        "amount": "87.65976859",
                        "type": "pubkeyhash",
                        "spent": true,
                        "addresses": [
                            "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c"
                        ],
                        "script": {
                            "asm": "OP_DUP OP_HASH160 cedde8f2a0b38593095aaca585dfebf137fb2941 OP_EQUALVERIFY OP_CHECKSIG",
                            "hex": "76a914cedde8f2a0b38593095aaca585dfebf137fb294188ac",
                            "reqsigs": 1
                        }
                    }
                ]
            }
        ],
        "meta": {
            "totalCount": 5,
            "index": 0,
            "limit": 50,
            "results": 5
        }
    }
    
    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/doge/${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:

    nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y

    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/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y/transactions-by-range/1558946648/1559049506/' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y/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/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y/transactions-by-range/1558946648/1559049506/').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/doge/mainnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y/transactions-by-range/1558946648/1559049506/",
      "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/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y/transactions-by-range/1558946648/1559049506/');
    $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/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y/transactions-by-range/1558946648/1559049506/")
    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/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y/transactions-by-range/1558946648/1559049506/'
    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/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y/transactions-by-range/1558946648/1559049506/")
      .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/doge/testnet/address/nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y/transactions-by-range/1558946648/1559049506/")
    }
    
    

    Response Body

    {
        "payload": [
            {
                "txid": "7d05ed18af07cec3f268c1c3acd7011c983eaf1e3b95aa17f8937d134729f353",
                "index": 3,
                "version": 1,
                "size": 373,
                "vsize": 91,
                "locktime": 0,
                "time": "2019-05-28 13:18:26 UTC", //deprecated
                "datetime": "2019-05-28 13:18:26 UTC",
                "blockhash": "e6c30026fa9ca96a4d00599633ad050995c1dae6971e0922e304339d8ba72ac8",
                "blockheight": 1985347,
                "blocktime": "2019-05-28 13:18:26 UTC",
                "timestamp": 1559049506,
                "confirmations": 40,
                "txins": [
                    {
                        "txout": "0763d9d2f71799d05de908066d4812476f2c5bdcc780b42132aad51cc94b9ccc",
                        "vout": 1,
                        "amount": "42.87553718",
                        "addresses": [
                            "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c"
                        ],
                        "script": {
                            "asm": "304402206f71b8e34ca542fce412d56920fa8131d56bfeb477cd4f727eb4a7cc2cbf634502202292e942a7caf97f7d2ffa925958066583b88bc4b1cab808e3a627c16cdd8b1c01 02062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2d",
                            "hex": "47304402206f71b8e34ca542fce412d56920fa8131d56bfeb477cd4f727eb4a7cc2cbf634502202292e942a7caf97f7d2ffa925958066583b88bc4b1cab808e3a627c16cdd8b1c012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2d"
                        },
                        "votype": "pubkeyhash"
                    },
                    {
                        "txout": "2fe7a328abc82325dbe26c5f19b3ffd32a8c18efb490e52cf0f5faaa8ed0cdd1",
                        "vout": 1,
                        "amount": "100",
                        "addresses": [
                            "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c"
                        ],
                        "script": {
                            "asm": "30450221009d25959314bd2cc34e73228c7793bf537fbc014db36e3de48537844ac05f97010220696473a40c3c5eca86e5a6c8f7e5a177e369385ec1cb187f665f7ec6d260492401 02062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2d",
                            "hex": "4830450221009d25959314bd2cc34e73228c7793bf537fbc014db36e3de48537844ac05f97010220696473a40c3c5eca86e5a6c8f7e5a177e369385ec1cb187f665f7ec6d2604924012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2d"
                        },
                        "votype": "pubkeyhash"
                    }
                ],
                "txouts": [
                    {
                        "amount": "121.309",
                        "type": "pubkeyhash",
                        "spent": false,
                        "addresses": [
                            "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y"
                        ],
                        "script": {
                            "asm": "OP_DUP OP_HASH160 fff5827ee63cc9e8073f7ffb221c57efe1756a60 OP_EQUALVERIFY OP_CHECKSIG",
                            "hex": "76a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac",
                            "reqsigs": 1
                        }
                    },
                    {
                        "amount": "20.56630577",
                        "type": "pubkeyhash",
                        "spent": false,
                        "addresses": [
                            "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c"
                        ],
                        "script": {
                            "asm": "OP_DUP OP_HASH160 cedde8f2a0b38593095aaca585dfebf137fb2941 OP_EQUALVERIFY OP_CHECKSIG",
                            "hex": "76a914cedde8f2a0b38593095aaca585dfebf137fb294188ac",
                            "reqsigs": 1
                        }
                    }
                ]
            },
           ...
            {
                "txid": "c273956a15a9b343dc48fcb75f5a01e6de531eccb1cdb9b231d2c39eb1590dbf",
                "index": 2,
                "version": 1,
                "locktime": 0,
                "time": "2019-05-27 08:44:08 UTC", //deprecated
                "datetime": "2019-05-27 08:44:08 UTC",
                "blockhash": "baed74912fc969d6ef7521e480d7d690e856b63c4eb2416441a09d4ed2a39cdc",
                "blockheight": 1983780,
                "blocktime": "2019-05-27 08:44:08 UTC",
                "timestamp": 1558946648,
                "confirmations": 1607,
                "txins": [
                    {
                        "txout": "ff7c7f6c04e580a5d85c55c8465b70754ac1b3542a56b1e4b7e54487dd7a9b6c",
                        "vout": 0,
                        "amount": "100",
                        "addresses": [
                            "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c"
                        ],
                        "script": {
                            "asm": "3044022063db72cad117a546b63717d4510af98c3acbe947b0a13150392d06b1d50532700220564fa917286142d58775e8e0b2beb2a86703b94775f32ce1043b6a7c66ddcd2e01 02062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2d",
                            "hex": "473044022063db72cad117a546b63717d4510af98c3acbe947b0a13150392d06b1d50532700220564fa917286142d58775e8e0b2beb2a86703b94775f32ce1043b6a7c66ddcd2e012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2d"
                        },
                        "votype": "pubkeyhash"
                    }
                ],
                "txouts": [
                    {
                        "amount": "11.34",
                        "type": "pubkeyhash",
                        "spent": true,
                        "addresses": [
                            "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y"
                        ],
                        "script": {
                            "asm": "OP_DUP OP_HASH160 fff5827ee63cc9e8073f7ffb221c57efe1756a60 OP_EQUALVERIFY OP_CHECKSIG",
                            "hex": "76a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac",
                            "reqsigs": 1
                        }
                    },
                    {
                        "amount": "87.65976859",
                        "type": "pubkeyhash",
                        "spent": true,
                        "addresses": [
                            "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c"
                        ],
                        "script": {
                            "asm": "OP_DUP OP_HASH160 cedde8f2a0b38593095aaca585dfebf137fb2941 OP_EQUALVERIFY OP_CHECKSIG",
                            "hex": "76a914cedde8f2a0b38593095aaca585dfebf137fb294188ac",
                            "reqsigs": 1
                        }
                    }
                ]
            }
        ],
        "meta": {
            "totalCount": 5,
            "index": 0,
            "limit": 50,
            "results": 5
        }
    }
    
    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/doge/${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:

    nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y

    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/doge/mainnet/address/9sNEXzQciK5rrakA7GFMBGwMcLd7x1kNSN/unconfirmed-transactions' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/doge/mainnet/address/9sNEXzQciK5rrakA7GFMBGwMcLd7x1kNSN/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/doge/mainnet/address/9sNEXzQciK5rrakA7GFMBGwMcLd7x1kNSN/unconfirmed-transactions').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/doge/mainnet/address/9sNEXzQciK5rrakA7GFMBGwMcLd7x1kNSN/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/doge/mainnet/address/9sNEXzQciK5rrakA7GFMBGwMcLd7x1kNSN/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/doge/mainnet/address/9sNEXzQciK5rrakA7GFMBGwMcLd7x1kNSN/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/doge/mainnet/address/9sNEXzQciK5rrakA7GFMBGwMcLd7x1kNSN/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/doge/mainnet/address/9sNEXzQciK5rrakA7GFMBGwMcLd7x1kNSN/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/doge/mainnet/address/9sNEXzQciK5rrakA7GFMBGwMcLd7x1kNSN/unconfirmed-transactions")
    }
    
    

    Response Body

    {
      "payload": [
        {
          "txid": "ce58eb50dbd78fcfdb2bd0d585607270937f4755c8996e7c24871bb3029b40d6",
          "hash": "ce58eb50dbd78fcfdb2bd0d585607270937f4755c8996e7c24871bb3029b40d6",
          "version": 1,
          "size": 334,
          "vsize": 334,
          "locktime": 0,
          "time": "2020-01-31 11:07:08 UTC",
          "datetime": "2020-01-31 11:07:08 UTC",
          "timestamp": 1580468828,
          "txins": [
            {
              "txout": "be2dbe0171bbb231df668a5fdf9ba0a5135278c6d57a84a015688a1bedbaf62c",
              "vout": 1,
              "amount": "13040.76554042",
              "addresses": [
                    "9sNEXzQciK5rrakA7GFMBGwMcLd7x1kNSN"
              ],
              "script": {
                "asm": "0 304402200a2b297b43d49203c333c575a4417ef82e8e5ac33f93b270baac9bc5f6397d7b022038ccdc8fd2963f13cfc2e75ccb586011881e374c3b52135e184032b8e59eb393[ALL] 3044022072e35b2d7f9a22cf503442b4ca25fbbaa253b9c24005a4c1ddaa93204a3d5d0e02201efc84e81dbc0e1571d37947b4103d3c9d2743e224eb115d9dcf4aa1631d2f4d[ALL] 52210377cc96898363d11ed750c12bb8d191e55f6792c6058fe36350ca21a074996e322102a117750f8ab753212463ae690b3c08dcff226e6fbc8e8fc5d06cb2baf3fd9d6152ae",
                "hex": "0047304402200a2b297b43d49203c333c575a4417ef82e8e5ac33f93b270baac9bc5f6397d7b022038ccdc8fd2963f13cfc2e75ccb586011881e374c3b52135e184032b8e59eb39301473044022072e35b2d7f9a22cf503442b4ca25fbbaa253b9c24005a4c1ddaa93204a3d5d0e02201efc84e81dbc0e1571d37947b4103d3c9d2743e224eb115d9dcf4aa1631d2f4d014752210377cc96898363d11ed750c12bb8d191e55f6792c6058fe36350ca21a074996e322102a117750f8ab753212463ae690b3c08dcff226e6fbc8e8fc5d06cb2baf3fd9d6152ae"
              },
              "votype": "scripthash"
            }
          ],
          "txouts": [
            {
              "amount": "225",
              "type": "pubkeyhash",
              "spent": false,
              "addresses": [
                "DHbuY9z9nGswWxQ5kUY6Zs2ssBzejujqBk"
              ],
              "script": {
                "asm": "OP_DUP OP_HASH160 88b38e7a94887f7087d3ce3ea98792a97752bdf1 OP_EQUALVERIFY OP_CHECKSIG",
                "hex": "76a91488b38e7a94887f7087d3ce3ea98792a97752bdf188ac",
                "reqsigs": 1
              }
            },
            {
              "amount": "12814.76554042",
              "type": "scripthash",
              "spent": false,
              "addresses": [
                "9sNEXzQciK5rrakA7GFMBGwMcLd7x1kNSN"
              ],
              "script": {
                "asm": "OP_HASH160 0a34af9911cbef78350064f29519905caf61407b OP_EQUAL",
                "hex": "a9140a34af9911cbef78350064f29519905caf61407b87",
                "reqsigs": 1
              }
            }
          ]
        },
        {
          "txid": "df6a13a2f77fb9129bc138ac324d174a22ab69006bb2ebd37533c195f00489f2",
          "hash": "df6a13a2f77fb9129bc138ac324d174a22ab69006bb2ebd37533c195f00489f2",
          "version": 1,
          "size": 334,
          "vsize": 334,
          "locktime": 0,
          "time": "2020-01-31 11:06:54 UTC",
          "datetime": "2020-01-31 11:06:54 UTC",
          "timestamp": 1580468814,
          "txins": [
            {
              "txout": "e8f2914ac689f6c09d255374a52875298a265e85368e686a65cd434e75eddf6a",
              "vout": 1,
              "amount": "187626.04",
              "addresses": [
                "9sNEXzQciK5rrakA7GFMBGwMcLd7x1kNSN"
              ],
              "script": {
                "asm": "0 30440220259962392c023fbdd2e79e124e48db69ed7d76a0e6affb7eecd3e09f28bb9e750220237f639a3d2b5d0b42ecabef6ec6fddbb161b96aa553124f94fd06b0b2d4020d[ALL] 304402206d10958076d30d9c50bc026fe394ee120a99cf191341fec836a558ceeb09515d022038f6c71f98fa5bb80521223827fbee41271afb3513b86a09732eb37d662343ac[ALL] 52210377cc96898363d11ed750c12bb8d191e55f6792c6058fe36350ca21a074996e322102a117750f8ab753212463ae690b3c08dcff226e6fbc8e8fc5d06cb2baf3fd9d6152ae",
                "hex": "004730440220259962392c023fbdd2e79e124e48db69ed7d76a0e6affb7eecd3e09f28bb9e750220237f639a3d2b5d0b42ecabef6ec6fddbb161b96aa553124f94fd06b0b2d4020d0147304402206d10958076d30d9c50bc026fe394ee120a99cf191341fec836a558ceeb09515d022038f6c71f98fa5bb80521223827fbee41271afb3513b86a09732eb37d662343ac014752210377cc96898363d11ed750c12bb8d191e55f6792c6058fe36350ca21a074996e322102a117750f8ab753212463ae690b3c08dcff226e6fbc8e8fc5d06cb2baf3fd9d6152ae"
              },
              "votype": "scripthash"
            }
          ],
          "txouts": [
            {
              "amount": "1669",
              "type": "pubkeyhash",
              "spent": false,
              "addresses": [
                "DN7fP7v8gx3N5YZn4Cj3oUQBUUN6gf1RVo"
              ],
              "script": {
                "asm": "OP_DUP OP_HASH160 ba34b8cdce7279547ce591546c39f4f682d22c16 OP_EQUALVERIFY OP_CHECKSIG",
                "hex": "76a914ba34b8cdce7279547ce591546c39f4f682d22c1688ac",
                "reqsigs": 1
              }
            },
            {
              "amount": "185956.04",
              "type": "scripthash",
              "spent": false,
              "addresses": [
                "9sNEXzQciK5rrakA7GFMBGwMcLd7x1kNSN"
              ],
              "script": {
                "asm": "OP_HASH160 0a34af9911cbef78350064f29519905caf61407b OP_EQUAL",
                "hex": "a9140a34af9911cbef78350064f29519905caf61407b87",
                "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/doge/${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:

    9sNEXzQciK5rrakA7GFMBGwMcLd7x1kNSN

    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/doge/mainnet/address/show-multiple' \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'\
      -d '{
    "addresses" : ["DED7CbqWzwYheJbXsKFRi9TLSBiD3iYb7E","DHeZKZ8NbprdgcLKrm96Dbb2Dzc6DH6Grn","DQgwDvwoBhwKBKmV2oZifFg6vhWr2Uymm8"]
    }'
    
    
    
    POST /v1/bc/doge/mainnet/address/show-multiple HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    {
    "addresses" : ["DED7CbqWzwYheJbXsKFRi9TLSBiD3iYb7E","DHeZKZ8NbprdgcLKrm96Dbb2Dzc6DH6Grn","DQgwDvwoBhwKBKmV2oZifFg6vhWr2Uymm8"]
    }
    
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/doge/mainnet/address/show-multiple",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n\t\"addresses\": [\"DED7CbqWzwYheJbXsKFRi9TLSBiD3iYb7E\",\"DHeZKZ8NbprdgcLKrm96Dbb2Dzc6DH6Grn\", \"DQgwDvwoBhwKBKmV2oZifFg6vhWr2Uymm8\"]}"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    const https = require('https');
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/doge/mainnet/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: 
        [\"DED7CbqWzwYheJbXsKFRi9TLSBiD3iYb7E\",\"DHeZKZ8NbprdgcLKrm96Dbb2Dzc6DH6Grn\", \"DQgwDvwoBhwKBKmV2oZifFg6vhWr2Uymm8\"]
     });
    req.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/doge/mainnet/address/show-multiple');
    $request->setMethod(HTTP_METH_POST);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    $request->setBody('{
        "addresses": ["DED7CbqWzwYheJbXsKFRi9TLSBiD3iYb7E","DHeZKZ8NbprdgcLKrm96Dbb2Dzc6DH6Grn","DQgwDvwoBhwKBKmV2oZifFg6vhWr2Uymm8"]
    }');
    
    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/mainnet/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\": [\"DED7CbqWzwYheJbXsKFRi9TLSBiD3iYb7E\",\"DHeZKZ8NbprdgcLKrm96Dbb2Dzc6DH6Grn\", \"DQgwDvwoBhwKBKmV2oZifFg6vhWr2Uymm8\"]}"
    response = http.request(request)
    puts response.read_body
    
    
    
    
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    payload = "{\n\t\"addresses\": [\"DED7CbqWzwYheJbXsKFRi9TLSBiD3iYb7E\",\"DHeZKZ8NbprdgcLKrm96Dbb2Dzc6DH6Grn\", \"DQgwDvwoBhwKBKmV2oZifFg6vhWr2Uymm8\"]}"
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/doge/mainnet/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\": [\"DED7CbqWzwYheJbXsKFRi9TLSBiD3iYb7E\",\"DHeZKZ8NbprdgcLKrm96Dbb2Dzc6DH6Grn\", \"DQgwDvwoBhwKBKmV2oZifFg6vhWr2Uymm8\"]}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/doge/mainnet/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/doge/mainnet/address/show-multiple"
    
        payload := strings.NewReader("{\n\t\"addresses\":[\"DED7CbqWzwYheJbXsKFRi9TLSBiD3iYb7E\",\"DHeZKZ8NbprdgcLKrm96Dbb2Dzc6DH6Grn\", \"DQgwDvwoBhwKBKmV2oZifFg6vhWr2Uymm8\"]}");
    
        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": "DED7CbqWzwYheJbXsKFRi9TLSBiD3iYb7E",
            "totalSpent": "0",
            "totalReceived": "0",
            "balance": "0",
            "txi": 0,
            "txo": 0,
            "txsCount": 0,
            "addresses": [
                "DED7CbqWzwYheJbXsKFRi9TLSBiD3iYb7E"
            ]
        },
        {
           "address": "DHeZKZ8NbprdgcLKrm96Dbb2Dzc6DH6Grn",
            "totalSpent": "0",
            "totalReceived": "0",
            "balance": "0",
            "txi": 0,
            "txo": 0,
            "txsCount": 0,
            "addresses": [
                "DHeZKZ8NbprdgcLKrm96Dbb2Dzc6DH6Grn"
            ]
        },
        {
          "address": "DQgwDvwoBhwKBKmV2oZifFg6vhWr2Uymm8",
            "totalSpent": "0",
            "totalReceived": "0",
            "balance": "0",
            "txi": 0,
            "txo": 0,
            "txsCount": 0,
            "addresses": [
                "DQgwDvwoBhwKBKmV2oZifFg6vhWr2Uymm8"
            ]
        },
      ],
      "meta": {
        "totalCount": 3,
        "limit": 3,
        "results": 3
      }
    }
    
    Info

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

    HTTP Request

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

    Request object

    {
    "addresses": [
    "DED7CbqWzwYheJbXsKFRi9TLSBiD3iYb7E",
    "DHeZKZ8NbprdgcLKrm96Dbb2Dzc6DH6Grn",
    "DQgwDvwoBhwKBKmV2oZifFg6vhWr2Uymm8"
    ]
    }

    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 DOGE 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/doge/mainnet/txs/basic/txid/745620ab3945f057df6c5e67604a6fe7694bf4182642654b135dd00bc7bdafb9' \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/doge/mainnet/txs/basic/txid/745620ab3945f057df6c5e67604a6fe7694bf4182642654b135dd00bc7bdafb9 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/doge/mainnet/txs/basic/txid/745620ab3945f057df6c5e67604a6fe7694bf4182642654b135dd00bc7bdafb9').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/doge/mainnet/txs/basic/txid/745620ab3945f057df6c5e67604a6fe7694bf4182642654b135dd00bc7bdafb9",
      "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/doge/mainnet/txs/basic/txid/745620ab3945f057df6c5e67604a6fe7694bf4182642654b135dd00bc7bdafb9');
    $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/mainnet/txs/basic/txid/745620ab3945f057df6c5e67604a6fe7694bf4182642654b135dd00bc7bdafb9")
    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/doge/mainnet/txs/basic/txid/745620ab3945f057df6c5e67604a6fe7694bf4182642654b135dd00bc7bdafb9'
    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/doge/mainnet/txs/basic/txid/745620ab3945f057df6c5e67604a6fe7694bf4182642654b135dd00bc7bdafb9")
      .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/doge/mainnet/txs/basic/txid/745620ab3945f057df6c5e67604a6fe7694bf4182642654b135dd00bc7bdafb9")
    }
    

    Response Body

    {
        "payload": {
            "amount": 29502.59884187,
            "fee": 1,
            "unit": "doge",
            "datetime": "2020-03-06 07:00:22 UTC",
            "timestamp": 1583478022,
            "confirmations": 12,
            "sent": {
                "A6yRXbWKaVq7NZrR4TThvQTiyQazaAsSUd": 29503.59884187
            },
            "received": {
                "DFLMRgKWJpLp5789NdARHi8TRhmQkwVMJ3": 50,
                "A6yRXbWKaVq7NZrR4TThvQTiyQazaAsSUd": 29452.59884187
            }
        }
    }
    
    Info

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

    HTTP Request

    GET /v1/bc/doge/${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:

    745620ab3945f057df6c5e67604a6fe7694bf4182642654b135dd00bc7bdafb9

    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/doge/testnet/txs/txid/512ba78dbe7265f07ebec2297d59e0ddccc884fbf2fdd72cb14f924ffb9aefde' \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/doge/testnet/txs/txid/512ba78dbe7265f07ebec2297d59e0ddccc884fbf2fdd72cb14f924ffb9aefde 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/doge/testnet/txs/txid/512ba78dbe7265f07ebec2297d59e0ddccc884fbf2fdd72cb14f924ffb9aefde').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/doge/testnet/txs/txid/512ba78dbe7265f07ebec2297d59e0ddccc884fbf2fdd72cb14f924ffb9aefde",
      "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/doge/testnet/txs/txid/512ba78dbe7265f07ebec2297d59e0ddccc884fbf2fdd72cb14f924ffb9aefde');
    $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/txs/txid/512ba78dbe7265f07ebec2297d59e0ddccc884fbf2fdd72cb14f924ffb9aefde")
    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/doge/testnet/txs/txid/512ba78dbe7265f07ebec2297d59e0ddccc884fbf2fdd72cb14f924ffb9aefde'
    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/doge/testnet/txs/txid/512ba78dbe7265f07ebec2297d59e0ddccc884fbf2fdd72cb14f924ffb9aefde")
      .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/doge/testnet/txs/txid/512ba78dbe7265f07ebec2297d59e0ddccc884fbf2fdd72cb14f924ffb9aefde")
    }
    

    Response Body

    {
      "payload": {
          "txid": "512ba78dbe7265f07ebec2297d59e0ddccc884fbf2fdd72cb14f924ffb9aefde",
          "index": 0,
          "version": 1,
          "size": 89,
          "locktime": 0,
          "time": "2019-05-28 12:47:53 UTC",
          "blockhash": "2babf28b085c2efb4615d41051c59a7c257d1ad9e71ce308fb72eb1a93805a19",
          "blockheight": 1985323,
          "blocktime": "2019-05-28 12:47:53 UTC",
          "timestamp": 1559047673,
          "confirmations": 1,
          "txins": [
              {
                  "coinbase": "032b4b1e",
                  "addresses": []
              }
          ],
          "txouts": [
              {
                  "amount": "10000",
                  "type": "pubkeyhash",
                  "spent": false,
                  "addresses": [
                      "naJT9XMzc4mNXqz1FfzTFkrDedpBc3AX5o"
                  ],
                  "script": {
                      "asm": "OP_DUP OP_HASH160 430158211605af1f0fa26d90405199621bdae5cd OP_EQUALVERIFY OP_CHECKSIG",
                      "hex": "76a914430158211605af1f0fa26d90405199621bdae5cd88ac",
                      "reqsigs": 1
                  }
              }
          ]
      }
    }
    
    Info

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

    HTTP Request

    GET /v1/bc/doge/${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:

    512ba78dbe7265f07ebec2297d59e0ddccc884fbf2fdd72cb14f924ffb9aefde

    The returned object contains information about the transaction in JSON format, including its block information, the total amount transacted with it (in dogecoins), 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/doge/testnet/txs/unconfirmed/txid/213ca62f5132d367f71022b3fba5a15d3c8d4cf853321ecd17a14832b2e73ab8' \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/doge/testnet/txs/unconfirmed/txid/213ca62f5132d367f71022b3fba5a15d3c8d4cf853321ecd17a14832b2e73ab8 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/doge/testnet/txs/unconfirmed/txid/213ca62f5132d367f71022b3fba5a15d3c8d4cf853321ecd17a14832b2e73ab8').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/doge/testnet/txs/unconfirmed/txid/213ca62f5132d367f71022b3fba5a15d3c8d4cf853321ecd17a14832b2e73ab8",
      "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/doge/testnet/txs/unconfirmed/txid/213ca62f5132d367f71022b3fba5a15d3c8d4cf853321ecd17a14832b2e73ab8');
    $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/txs/unconfirmed/txid/213ca62f5132d367f71022b3fba5a15d3c8d4cf853321ecd17a14832b2e73ab8")
    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/doge/testnet/txs/unconfirmed/txid/213ca62f5132d367f71022b3fba5a15d3c8d4cf853321ecd17a14832b2e73ab8'
    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/doge/testnet/txs/unconfirmed/txid/213ca62f5132d367f71022b3fba5a15d3c8d4cf853321ecd17a14832b2e73ab8")
      .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/doge/testnet/txs/unconfirmed/txid/213ca62f5132d367f71022b3fba5a15d3c8d4cf853321ecd17a14832b2e73ab8")
    }
    

    Response Body

    {
      "payload": {
        "txid": "213ca62f5132d367f71022b3fba5a15d3c8d4cf853321ecd17a14832b2e73ab8",
        "hash": "213ca62f5132d367f71022b3fba5a15d3c8d4cf853321ecd17a14832b2e73ab8",
        "version": 1,
        "size": 192,
        "vsize": 192,
        "locktime": 0,
        "time": "2020-07-23 15:04:37 UTC",
        "datetime": "2020-07-23 15:04:37 UTC",
        "timestamp": 1595516677,
        "txins": [
          {
            "txout": "3d538d0809ace082281757be83184c4d002b7c5c9bf4948a7f713a3e50e417b8",
            "vout": 0,
            "amount": "66.8774",
            "addresses": [
              "nj8yjZYahZVkDXfd9yf6MMNWsjKu5ujTa3"
            ],
            "script": {
              "asm": "30450221008c5a0dd4e6c4f1d723f4a2ee9c3d8f38c553e3a97ad73d367c7c3f941b16a617022070cc2f5f3960148f11c1c0699a0339c288645fb509406f42d187853696774573[ALL] 030ce1b6a5ee63da24a5e3c2d183151be6c2131e19d69f303e257ecf3b1b4354bb",
              "hex": "4830450221008c5a0dd4e6c4f1d723f4a2ee9c3d8f38c553e3a97ad73d367c7c3f941b16a617022070cc2f5f3960148f11c1c0699a0339c288645fb509406f42d1878536967745730121030ce1b6a5ee63da24a5e3c2d183151be6c2131e19d69f303e257ecf3b1b4354bb"
            },
            "votype": "pubkeyhash"
          }
        ],
        "txouts": [
          {
            "amount": "66.84294058",
            "type": "pubkeyhash",
            "spent": false,
            "addresses": [
              "npn5NEhrWTwwhtnYZXW8ESZAcZR8eLEgaU"
            ],
            "script": {
              "asm": "OP_DUP OP_HASH160 e1cc920904c745e2af2ca7b070f1ea8e404a764d OP_EQUALVERIFY OP_CHECKSIG",
              "hex": "76a914e1cc920904c745e2af2ca7b070f1ea8e404a764d88ac",
              "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/doge/${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:

    213ca62f5132d367f71022b3fba5a15d3c8d4cf853321ecd17a14832b2e73ab8

    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/doge/testnet/txs/block/2babf28b085c2efb4615d41051c59a7c257d1ad9e71ce308fb72eb1a93805a19' \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/doge/testnet/txs/block/2babf28b085c2efb4615d41051c59a7c257d1ad9e71ce308fb72eb1a93805a19 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/doge/testnet/txs/block/2babf28b085c2efb4615d41051c59a7c257d1ad9e71ce308fb72eb1a93805a19').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/doge/testnet/txs/block/2babf28b085c2efb4615d41051c59a7c257d1ad9e71ce308fb72eb1a93805a19",
      "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/doge/testnet/txs/block/2babf28b085c2efb4615d41051c59a7c257d1ad9e71ce308fb72eb1a93805a19');
    $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/txs/block/2babf28b085c2efb4615d41051c59a7c257d1ad9e71ce308fb72eb1a93805a19")
    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/doge/testnet/txs/block/2babf28b085c2efb4615d41051c59a7c257d1ad9e71ce308fb72eb1a93805a19'
    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/doge/testnet/txs/block/2babf28b085c2efb4615d41051c59a7c257d1ad9e71ce308fb72eb1a93805a19")
      .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/doge/testnet/txs/block/2babf28b085c2efb4615d41051c59a7c257d1ad9e71ce308fb72eb1a93805a19")
    }
    
    

    Response Body

    {
      "payload": [
          {
              "txid": "512ba78dbe7265f07ebec2297d59e0ddccc884fbf2fdd72cb14f924ffb9aefde",
              "index": 0,
              "version": 1,
              "size": 89,
              "vsize": 91,
              "locktime": 0,
              "time": "2019-05-28 12:47:53 UTC",
              "blockhash": "2babf28b085c2efb4615d41051c59a7c257d1ad9e71ce308fb72eb1a93805a19",
              "blockheight": 1985323,
              "blocktime": "2019-05-28 12:47:53 UTC",
              "timestamp": 1559047673,
              "confirmations": 1,
              "txins": [
                  {
                      "coinbase": "032b4b1e",
                      "addresses": []
                  }
              ],
              "txouts": [
                  {
                      "amount": "10000",
                      "type": "pubkeyhash",
                      "spent": false,
                      "addresses": [
                          "naJT9XMzc4mNXqz1FfzTFkrDedpBc3AX5o"
                      ],
                      "script": {
                          "asm": "OP_DUP OP_HASH160 430158211605af1f0fa26d90405199621bdae5cd OP_EQUALVERIFY OP_CHECKSIG",
                          "hex": "76a914430158211605af1f0fa26d90405199621bdae5cd88ac",
                          "reqsigs": 1
                      }
                  }
              ]
          }
      ],
      "meta": {
          "totalCount": 1,
          "index": 0,
          "limit": 1,
          "results": 1
      }
    }
    
    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/doge/${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 dogecoins), the inputs and outputs, and more.

    Get Unconfirmed Transactions

    Sample Data

    
    curl -X GET 'https://api.cryptoapis.io/v1/bc/doge/testnet/txs/unconfirmed' \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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": "31efb322874227181b265b020a8278d3beab71c6e0674271a0872801990885ef",
                "version": 1,
                "size": 333,
                "locktime": 0,
                "time": "2019-05-28 13:03:36 UTC", //deprecated
                "datetime": "2019-05-28 13:03:36 UTC",
                "timestamp": 1559048616,
                "txins": [
                    {
                        "txout": "a5f480a3df738010e7df866de7dc6cbfbf0d49045b0d1652e9082f8d7af07fa0",
                        "vout": 1,
                        "amount": "2915429",
                        "addresses": [
                            "2MsQug2PDbor2ndqYu9MxMij3MZFZ3EkGk9"
                        ],
                        "script": {
                            "asm": "0 3045022100decafc74f7ba5501a24ba71de583a59318f58f51b86033b3b7b1bfd1685f7095022079131410ac964e35891415fb8d1850ab9d0729f4843614fd81f09fe9e8a38bce01 3044022073ff4bb485b095f1585ab8409dba78047806f2a4ed546f2526757a44cc0f7e3602203591535a7ee12509af046be95b03ee64dd63539fb6887aced024a40c2c65827701 522103abf01d993487a683db0a788298e176624b8530c9481b8f3f17eaec015a6e8c882103ec7f0dd153f1fa7f2fd5d6b331796298ebd0a657950c70cbb58eac34c7b475f352ae",
                            "hex": "00483045022100decafc74f7ba5501a24ba71de583a59318f58f51b86033b3b7b1bfd1685f7095022079131410ac964e35891415fb8d1850ab9d0729f4843614fd81f09fe9e8a38bce01473044022073ff4bb485b095f1585ab8409dba78047806f2a4ed546f2526757a44cc0f7e3602203591535a7ee12509af046be95b03ee64dd63539fb6887aced024a40c2c6582770147522103abf01d993487a683db0a788298e176624b8530c9481b8f3f17eaec015a6e8c882103ec7f0dd153f1fa7f2fd5d6b331796298ebd0a657950c70cbb58eac34c7b475f352ae"
                        },
                        "votype": "scripthash"
                    }
                ],
                "txouts": [
                    {
                        "amount": "500",
                        "type": "scripthash",
                        "spent": false,
                        "addresses": [
                            "2NFpbJvBPuZGceKq9VBrKDZdC78U33yVE3N"
                        ],
                        "script": {
                            "asm": "OP_HASH160 f7a24ac5f8aa1adeaefca0fa86078a5ec51237e1 OP_EQUAL",
                            "hex": "a914f7a24ac5f8aa1adeaefca0fa86078a5ec51237e187",
                            "reqsigs": 1
                        }
                    },
                    {
                        "amount": "2914928",
                        "type": "scripthash",
                        "spent": false,
                        "addresses": [
                            "2MsQug2PDbor2ndqYu9MxMij3MZFZ3EkGk9"
                        ],
                        "script": {
                            "asm": "OP_HASH160 01d4df05a673fc46698c4d2effdac931d7600252 OP_EQUAL",
                            "hex": "a91401d4df05a673fc46698c4d2effdac931d760025287",
                            "reqsigs": 1
                        }
                    }
                ]
            }
        ],
        "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/doge/${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/doge/testnet/txs/raw/txid/7d05ed18af07cec3f268c1c3acd7011c983eaf1e3b95aa17f8937d134729f353' \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/doge/testnet/txs/raw/txid/7d05ed18af07cec3f268c1c3acd7011c983eaf1e3b95aa17f8937d134729f353 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/doge/testnet/txs/raw/txid/7d05ed18af07cec3f268c1c3acd7011c983eaf1e3b95aa17f8937d134729f353').then(function(d) {console.log(d)});
    
    
    
    const https = require('https');
    
    var options = {
      "method": "GET",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/doge/testnet/txs/raw/txid/7d05ed18af07cec3f268c1c3acd7011c983eaf1e3b95aa17f8937d134729f353",
      "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/doge/testnet/txs/raw/txid/7d05ed18af07cec3f268c1c3acd7011c983eaf1e3b95aa17f8937d134729f353');
    $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/txs/raw/txid/7d05ed18af07cec3f268c1c3acd7011c983eaf1e3b95aa17f8937d134729f353")
    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/doge/testnet/txs/raw/txid/7d05ed18af07cec3f268c1c3acd7011c983eaf1e3b95aa17f8937d134729f353'
    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/doge/testnet/txs/raw/txid/7d05ed18af07cec3f268c1c3acd7011c983eaf1e3b95aa17f8937d134729f353")
      .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/doge/testnet/txs/raw/txid/7d05ed18af07cec3f268c1c3acd7011c983eaf1e3b95aa17f8937d134729f353")
    }
    

    Response Body

    {
        "payload": {
            "hex": "0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d96307010000006a47304402206f71b8e34ca542fce412d56920fa8131d56bfeb477cd4f727eb4a7cc2cbf634502202292e942a7caf97f7d2ffa925958066583b88bc4b1cab808e3a627c16cdd8b1c012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f010000006b4830450221009d25959314bd2cc34e73228c7793bf537fbc014db36e3de48537844ac05f97010220696473a40c3c5eca86e5a6c8f7e5a177e369385ec1cb187f665f7ec6d2604924012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000"
        }
    }
    
    Info

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

    HTTP Request

    GET /v1/bc/doge/${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:

    7d05ed18af07cec3f268c1c3acd7011c983eaf1e3b95aa17f8937d134729f353

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

    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 “sudogeain” indexes. These sudogeains 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 sudogeain i if the wallet has sudogeains. For example, the path of the fourth address generated is m/3 for a non-sudogeain wallet. The path of the fourth address at sudogeain 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 sudogeain indexes = [0, 1]. Sudogeain index 0 represents the external chain (of account 0) and will discover all k keypairs that look like: m/0’/0/k. Sudogeain 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 doge), you can submit the extended public key of m/44’/0’/0’. (which can only be derived from your master private key) with sudogeain indexes = [0, 1]. Sudogeain index 0 represents the external chain (of account 0) and will discover all k keypairs in m/44’/0’/0’/0/k. Sudogeain 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/doge/mainnet/wallets/ \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
        "walletName" : "demowallet",
        "addresses": ["no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c", "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y"]
    }'
    
    #### hd wallet
    curl -X POST \
      https://api.cryptoapis.io/v1/bc/doge/mainnet/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/doge/mainnet/wallets HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    {
        "walletName" : "demowallet",
        "addresses" : ["no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c", "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y"]
    }
    
    #### hd wallet
    POST /v1/bc/doge/mainnet/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/doge/mainnet/wallets/",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n\t\"walletName\" : \"demowallet\",\n\t\"addresses\" : [\"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\", \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\"]\n}"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    // hd wallet
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/doge/mainnet/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/doge/mainnet/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: 
       ["no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c", "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y"] }));
    req.end();
    
    // hd wallet
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/doge/mainnet/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/doge/mainnet/wallets/');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    $request->setBody('{
        "walletName" : "demowallet",
        "addresses" : ["no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c", "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y"]
    }');
    
    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/doge/mainnet/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/doge/mainnet/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\" : [\"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\", \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\"]\n}"
    
    response = http.request(request)
    puts response.read_body
    
    #### hd wallet
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/doge/mainnet/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\" : [\"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\", \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\"]\n}"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/doge/mainnet/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/doge/mainnet/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\" : [\"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\", \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\"]\n}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/doge/mainnet/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/doge/mainnet/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/doge/mainnet/wallets"
    
        payload := strings.NewReader("{\n\t\"walletName\" : \"demowallet\",\n\t\"addresses\" : [\"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\", \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\"]\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/doge/mainnet/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": {
          "addresses": [
            "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c", 
            "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y"],
          "walletName": "demowallet"
      }
    }
    
    // hd wallet
    {
      "payload": {
          "addresses": [
            {
                "address": "nrJZpzhP5baL6KirRMqLE5oWFJA25V279a",
                "path": "M/0H/0/0"
            },
            {
                "address": "nd5BuBGLh1ZABMoad4y4eKnMyVijNmsdmZ",
                "path": "M/0H/0/1"
            },
            {
                "address": "nqY2rTUj3EyTvoU5h86pHosLKCuFobgrWP",
                "path": "M/0H/0/2"
            }
          ],
          "walletName": "demohdwallet"
      }
    }
    
    HTTP Request

    POST /v1/bc/doge/${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 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/doge/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/doge/testnet/wallets/hd \
      -H 'Content-Type: application/json'
      -H 'X-API-Key: my-api-key'
    
    
    
    #### normal wallet
    GET /v1/bc/doge/testnet/wallets HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    #### hd wallet
    GET /v1/bc/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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",
              "specialwallet"
      ],
      "meta": {
          "totalCount": 2,
          "results": 2
      }
    }
    
    // hd wallet
    {
      "payload": [
              "demohdwallet",
              "specialhdwallet"
      ],
      "meta": {
          "totalCount": 2,
          "results": 2
      }
    }
    
    HTTP Request

    GET /v1/bc/doge/${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/doge/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/doge/testnet/wallets/hd/demohdwallet \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    
    
    #### normal wallet
    GET /v1/bc/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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": "nrJZpzhP5baL6KirRMqLE5oWFJA25V279a",
                  "balance": "8.33576859"
              },
              {
                  "address": "nd5BuBGLh1ZABMoad4y4eKnMyVijNmsdmZ",
                  "balance": "24.3555436"
              },
              {
                  "address": "nqY2rTUj3EyTvoU5h86pHosLKCuFobgrWP",
                  "balance": "0.00000000"
              }
          ],
          "totalBalance": "32.69131219"
      },
      "meta": {
          "totalCount": 3,
          "limit": 50,
          "results": 3
      }
    }
    // hd wallet
    {
        "payload": {
            "walletName": "demohdwallet",
            "addresses": [
                {
                    "address": "nrJZpzhP5baL6KirRMqLE5oWFJA25V279a",
                    "path": "M/0H/0/0",
                    "balance": "8.33576859"
                },
                {
                    "address": "nd5BuBGLh1ZABMoad4y4eKnMyVijNmsdmZ",
                    "path": "M/0H/0/1",
                    "balance": "24.3555436"
                },
                {
                    "address": "nqY2rTUj3EyTvoU5h86pHosLKCuFobgrWP",
                    "path": "M/0H/0/2",
                    "balance": "0.00000000"
                },
                {
                    "address": "DQHPZtoJycFdfuA3mz9XkVy4AKEsXUmSB8",
                    "path": "M/0H/0/3",
                    "balance": "0.00000000"
                },
                {
                    "address": "DDscUU6GAkUuj4sWMq8jeTHaMgu31yGEkq",
                    "path": "M/0H/0/4",
                    "balance": "0.00000000"
                },
                {
                    "address": "DAbKn9Ex52bPHr27TPS4bTHUsL5MaXP3bq",
                    "path": "M/0H/0/5",
                    "balance": "0.00000000"
                }
            ],
            "totalBalance": "32.69131219"
        }
    }
    
    HTTP Request

    GET /v1/bc/doge/${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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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": [
                  "D8UotBUco4bUUeVDyxW5H5FAeaeXxLoT2Q",
                  "DUBQ1z7PPKh5UoV655s1dufZ3fM6sYZCV1",
              ]
          },
          "address_info": {
            "privateKey": "fbada21ca0ffdc41841942bfc82471d7d5de15bf5509e15f43a407a37ffce0e3",
            "publicKey": "029ab0e6232e53d9e76de8f70f0571af8122ead67eb8dfb03c2337f3814a0ab027",
            "address": "DD3sdHFuigtR6p5UrYnJckmLwYnAxqWc3N",
            "wif": "QX3rf1NqUU6TReFKanhygXcKAtMWFCc2c6hYfs6BWfCxzvTvJBF8"
        }
      }
    }
    
    // hd wallet
    {
      "payload": {
          "walletName": "demohdwallet",
          "addresses": [
              {
                  "address": "DQHPZtoJycFdfuA3mz9XkVy4AKEsXUmSB8",
                  "path": "M/0H/0/3"
              },
              {
                  "address": "DDscUU6GAkUuj4sWMq8jeTHaMgu31yGEkq",
                  "path": "M/0H/0/4"
              },
              {
                  "address": "DAbKn9Ex52bPHr27TPS4bTHUsL5MaXP3bq",
                  "path": "M/0H/0/5"
              }
          ]
      }
    }
    
    HTTP Request

    POST /v1/bc/doge/${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/doge/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/doge/mainnet/wallets/hd/demohdwallet \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    
    
    #### normal wallet
    DELETE /v1/bc/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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

    DELETE /v1/bc/doge/${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/doge/testnet/wallets/hd/import\
      -H 'content-type: application/json' \
      -H 'authorization: my-api-key' \
      -d '{
            "walletName": "testImportWallet",
            "password": "SECRET123456",
            "privateKey": "8aeb39b5f9b0xxxxxxxc7001c1cecc112712c9448b",
            "address": "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c"
        }'
    
    
    POST /v1/bc/doge/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": "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c"
    }
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/doge/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\": \"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\"\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/doge/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: 'no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c' }));
    req.end();
    
    
    &lt;?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/doge/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": "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c"
    }');
    
    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/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\": \"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\"\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\": \"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\"\n}"
    
    headers = {
        'authorization': "my-api-key",
        'content-type': "application/json"
        }
    
    conn.request("POST", "/v1/bc/doge/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\": \"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\"\n}");
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/doge/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/doge/testnet/wallets/hd/import"
    
        payload := strings.NewReader("{\n    \"walletName\": \"testImportWallet\",\n    \"password\": \"SECRET123456\",\n    \"privateKey\": \"8aeb39b5f9b0xxxxxxxc7001c1cecc112712c9448b\",\n    \"address\": \"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\"\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": "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c"
                }
            ]
        }
    }
    
    
    HTTP Request

    POST /v1/bc/doge/${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 DOGE 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/doge/testnet/txs/create \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
          "inputs": [{
              "address": "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c",
            "value": 121.309
          }],
          "outputs": [{
              "address": "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y",
              "value": 121.309
          }],
          "fee":  {
              "value": 1.00023141
          }
      }'
    
    
    POST /v1/bc/doge/testnet/txs/create HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    {
          "inputs": [{
              "address": "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c",
            "value": 121.309
          }],
          "outputs": [{
              "address": "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y",
              "value": 121.309
          }],
          "fee":  {
              "value": 1.00023141
          }
      }
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/doge/testnet/txs/create",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
     "data": "{\n      \"inputs\": [{\n          \"address\": \"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\",\n        \"value\": 121.309\n      }],\n      \"outputs\": [{\n          \"address\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\n          \"value\": 121.309\n      }],\n      \"fee\":  {\n          \"value\": 1.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/doge/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: 'no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c',
           value: 121.309 } ],
      outputs: 
       [ { address: 'nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y',
           value: 121.309 } ],
      fee: { value: 1.00023141 } }));
    req.end();
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/doge/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": "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c",
            "value": 121.309
          }],
          "outputs": [{
              "address": "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y",
              "value": 121.309
          }],
          "fee":  {
              "value": 1.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/doge/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\": \"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\",\n        \"value\": 121.309\n      }],\n      \"outputs\": [{\n          \"address\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\n          \"value\": 121.309\n      }],\n      \"fee\":  {\n          \"value\": 1.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\": \"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\",\n        \"value\": 121.309\n      }],\n      \"outputs\": [{\n          \"address\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\n          \"value\": 121.309\n      }],\n      \"fee\":  {\n          \"value\": 1.00023141\n      }\n  }"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/doge/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\": \"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\",\n        \"value\": 121.309\n      }],\n      \"outputs\": [{\n          \"address\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\n          \"value\": 121.309\n      }],\n      \"fee\":  {\n          \"value\": 1.00023141\n      }\n  }");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/doge/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/doge/testnet/txs/create"
    
        payload := strings.NewReader("{\n      \"inputs\": [{\n          \"address\": \"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\",\n        \"value\": 121.309\n      }],\n      \"outputs\": [{\n          \"address\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\n          \"value\": 121.309\n      }],\n      \"fee\":  {\n          \"value\": 1.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": "0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d963070100000000ffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f0100000000ffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000"
      }
    }
    

    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 dogecoin). Provide this in a partially-filled out TX request object.

    HTTP Request

    POST /v1/bc/doge/${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.

    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

    Sample Data

    
    curl -X POST \
      https://api.cryptoapis.io/v1/bc/doge/testnet/txs/sign \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
        "hex":"0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d963070100000000ffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f0100000000ffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000",
        "wifs" : [
                  "ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6"
        ]
    }'
    
    
    POST /v1/bc/doge/testnet/txs/sign HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    {
        "hex":"0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d963070100000000ffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f0100000000ffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000",
        "wifs" : [
                  "ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6"
        ]
    }
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/doge/testnet/txs/sign",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n    \"hex\":\"0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d963070100000000ffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f0100000000ffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000\",\n    \"wifs\" : [\n              \"ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6\"\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/doge/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: '0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d963070100000000ffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f0100000000ffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000',
      wifs: [ 'ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6' ] }));
    req.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/doge/testnet/txs/sign');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    $request->setBody('{
        "hex":"0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d963070100000000ffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f0100000000ffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000",
        "wifs" : [
                  "ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6"
        ]
    }');
    
    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/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\":\"0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d963070100000000ffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f0100000000ffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000\",\n    \"wifs\" : [\n              \"ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6\"\n    ]\n}"
    
    response = http.request(request)
    puts response.read_body
    
    
    
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    payload = "{\n    \"hex\":\"0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d963070100000000ffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f0100000000ffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000\",\n    \"wifs\" : [\n              \"ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6\"\n    ]\n}"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/doge/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\":\"0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d963070100000000ffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f0100000000ffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000\",\n    \"wifs\" : [\n              \"ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6\"\n    ]\n}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/doge/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/doge/testnet/txs/sign"
    
          payload := strings.NewReader("{\n    \"hex\":\"0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d963070100000000ffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f0100000000ffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000\",\n    \"wifs\" : [\n              \"ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6\"\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": "0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d96307010000006a47304402206f71b8e34ca542fce412d56920fa8131d56bfeb477cd4f727eb4a7cc2cbf634502202292e942a7caf97f7d2ffa925958066583b88bc4b1cab808e3a627c16cdd8b1c012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f010000006b4830450221009d25959314bd2cc34e73228c7793bf537fbc014db36e3de48537844ac05f97010220696473a40c3c5eca86e5a6c8f7e5a177e369385ec1cb187f665f7ec6d2604924012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000",
            "complete": true
        }
    }
    
    Info

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

    HTTP Request

    POST /v1/bc/doge/${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 Dogecoin Blockchain.

    Broadcast a Signed Transaction

    Sample Data

    
    curl -X POST \
      https://api.cryptoapis.io/v1/bc/doge/testnet/txs/send/ \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
        "hex" : "0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d96307010000006a47304402206f71b8e34ca542fce412d56920fa8131d56bfeb477cd4f727eb4a7cc2cbf634502202292e942a7caf97f7d2ffa925958066583b88bc4b1cab808e3a627c16cdd8b1c012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f010000006b4830450221009d25959314bd2cc34e73228c7793bf537fbc014db36e3de48537844ac05f97010220696473a40c3c5eca86e5a6c8f7e5a177e369385ec1cb187f665f7ec6d2604924012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000"
    }'
    
    
    POST /v1/bc/doge/testnet/txs/send HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    {
        "hex" : "0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d96307010000006a47304402206f71b8e34ca542fce412d56920fa8131d56bfeb477cd4f727eb4a7cc2cbf634502202292e942a7caf97f7d2ffa925958066583b88bc4b1cab808e3a627c16cdd8b1c012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f010000006b4830450221009d25959314bd2cc34e73228c7793bf537fbc014db36e3de48537844ac05f97010220696473a40c3c5eca86e5a6c8f7e5a177e369385ec1cb187f665f7ec6d2604924012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000"
    }
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/doge/testnet/txs/send",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n\t\"hex\" : \"0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d96307010000006a47304402206f71b8e34ca542fce412d56920fa8131d56bfeb477cd4f727eb4a7cc2cbf634502202292e942a7caf97f7d2ffa925958066583b88bc4b1cab808e3a627c16cdd8b1c012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f010000006b4830450221009d25959314bd2cc34e73228c7793bf537fbc014db36e3de48537844ac05f97010220696473a40c3c5eca86e5a6c8f7e5a177e369385ec1cb187f665f7ec6d2604924012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000\"\n}"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/doge/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: '0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d96307010000006a47304402206f71b8e34ca542fce412d56920fa8131d56bfeb477cd4f727eb4a7cc2cbf634502202292e942a7caf97f7d2ffa925958066583b88bc4b1cab808e3a627c16cdd8b1c012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f010000006b4830450221009d25959314bd2cc34e73228c7793bf537fbc014db36e3de48537844ac05f97010220696473a40c3c5eca86e5a6c8f7e5a177e369385ec1cb187f665f7ec6d2604924012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000' }));
    req.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/doge/testnet/txs/send');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    $request->setBody('{
        "hex" : "0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d96307010000006a47304402206f71b8e34ca542fce412d56920fa8131d56bfeb477cd4f727eb4a7cc2cbf634502202292e942a7caf97f7d2ffa925958066583b88bc4b1cab808e3a627c16cdd8b1c012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f010000006b4830450221009d25959314bd2cc34e73228c7793bf537fbc014db36e3de48537844ac05f97010220696473a40c3c5eca86e5a6c8f7e5a177e369385ec1cb187f665f7ec6d2604924012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000"
    }');
    
    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/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\" : \"0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d96307010000006a47304402206f71b8e34ca542fce412d56920fa8131d56bfeb477cd4f727eb4a7cc2cbf634502202292e942a7caf97f7d2ffa925958066583b88bc4b1cab808e3a627c16cdd8b1c012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f010000006b4830450221009d25959314bd2cc34e73228c7793bf537fbc014db36e3de48537844ac05f97010220696473a40c3c5eca86e5a6c8f7e5a177e369385ec1cb187f665f7ec6d2604924012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000\"\n}"
    
    response = http.request(request)
    puts response.read_body
    
    
    
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    payload = "{\n\t\"hex\" : \"0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d96307010000006a47304402206f71b8e34ca542fce412d56920fa8131d56bfeb477cd4f727eb4a7cc2cbf634502202292e942a7caf97f7d2ffa925958066583b88bc4b1cab808e3a627c16cdd8b1c012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f010000006b4830450221009d25959314bd2cc34e73228c7793bf537fbc014db36e3de48537844ac05f97010220696473a40c3c5eca86e5a6c8f7e5a177e369385ec1cb187f665f7ec6d2604924012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000\"\n}"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/doge/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\" : \"0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d96307010000006a47304402206f71b8e34ca542fce412d56920fa8131d56bfeb477cd4f727eb4a7cc2cbf634502202292e942a7caf97f7d2ffa925958066583b88bc4b1cab808e3a627c16cdd8b1c012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f010000006b4830450221009d25959314bd2cc34e73228c7793bf537fbc014db36e3de48537844ac05f97010220696473a40c3c5eca86e5a6c8f7e5a177e369385ec1cb187f665f7ec6d2604924012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000\"\n}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/doge/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/doge/testnet/txs/send"
    
        payload := strings.NewReader("{\n\t\"hex\" : \"0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d96307010000006a47304402206f71b8e34ca542fce412d56920fa8131d56bfeb477cd4f727eb4a7cc2cbf634502202292e942a7caf97f7d2ffa925958066583b88bc4b1cab808e3a627c16cdd8b1c012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f010000006b4830450221009d25959314bd2cc34e73228c7793bf537fbc014db36e3de48537844ac05f97010220696473a40c3c5eca86e5a6c8f7e5a177e369385ec1cb187f665f7ec6d2604924012102062f7d2ed743290127e66bb631195391e8233948922cc06006c0fbc5c859bf2dffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000\"\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": "7d05ed18af07cec3f268c1c3acd7011c983eaf1e3b95aa17f8937d134729f353"
      }
    }
    

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

    HTTP Request

    POST /v1/bc/doge/${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/doge/testnet/txs/new \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
       "createTx":{
          "inputs":[
             {
                "address":"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c",
                "value":15.222
             }
          ],
          "outputs":[
             {
                "address":"nrJZpzhP5baL6KirRMqLE5oWFJA25V279a",
                "value":15.222
             }
          ],
          "fee":{
                "value":1.0
             }
          },
             "wifs":[
                "ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6"
         ]
    }'
    
    POST /v1/bc/doge/testnet/txs/new HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    {
       "createTx":{
          "inputs":[
             {
                "address":"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c",
                "value":15.222
             }
          ],
          "outputs":[
             {
                "address":"nrJZpzhP5baL6KirRMqLE5oWFJA25V279a",
                "value":15.222
             }
          ],
          "fee":{
                "value":1.0
             }
          },
             "wifs":[
                "ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6"
         ]
    }
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/doge/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\":\"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\",\n            \"value\":15.222\n         }\n      ],\n      \"outputs\":[\n         {\n            \"address\":\"nrJZpzhP5baL6KirRMqLE5oWFJA25V279a\",\n            \"value\":15.222\n         }\n      ],\n      \"fee\":{\n            \"value\":1.0\n         }\n      },\n         \"wifs\":[\n            \"ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6\"\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/doge/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: 'no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c', value: 15.222 } ],
         outputs: [ { address: 'nrJZpzhP5baL6KirRMqLE5oWFJA25V279a', value: 15.222 } ],
         fee: { value: 1 } },
      wifs: [ 'ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6' ] }));
    req.end();
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/doge/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":"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c",
                "value":15.222
             }
          ],
          "outputs":[
             {
                "address":"nrJZpzhP5baL6KirRMqLE5oWFJA25V279a",
                "value":15.222
             }
          ],
          "fee":{
                "value":1.0
             }
          },
             "wifs":[
                "ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6"
         ]
    }');
    
    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/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\":\"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\",\n            \"value\":15.222\n         }\n      ],\n      \"outputs\":[\n         {\n            \"address\":\"nrJZpzhP5baL6KirRMqLE5oWFJA25V279a\",\n            \"value\":15.222\n         }\n      ],\n      \"fee\":{\n            \"value\":1.0\n         }\n      },\n         \"wifs\":[\n            \"ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6\"\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\":\"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\",\n            \"value\":15.222\n         }\n      ],\n      \"outputs\":[\n         {\n            \"address\":\"nrJZpzhP5baL6KirRMqLE5oWFJA25V279a\",\n            \"value\":15.222\n         }\n      ],\n      \"fee\":{\n            \"value\":1.0\n         }\n      },\n         \"wifs\":[\n            \"ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6\"\n     ]\n}"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/doge/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\":\"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\",\n            \"value\":15.222\n         }\n      ],\n      \"outputs\":[\n         {\n            \"address\":\"nrJZpzhP5baL6KirRMqLE5oWFJA25V279a\",\n            \"value\":15.222\n         }\n      ],\n      \"fee\":{\n            \"value\":1.0\n         }\n      },\n         \"wifs\":[\n            \"ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6\"\n     ]\n}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/doge/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/doge/testnet/txs/new"
    
        payload := strings.NewReader("{\n   \"createTx\":{\n      \"inputs\":[\n         {\n            \"address\":\"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\",\n            \"value\":15.222\n         }\n      ],\n      \"outputs\":[\n         {\n            \"address\":\"nrJZpzhP5baL6KirRMqLE5oWFJA25V279a\",\n            \"value\":15.222\n         }\n      ],\n      \"fee\":{\n            \"value\":1.0\n         }\n      },\n         \"wifs\":[\n            \"ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6\"\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":"48e871fcd5baa129123de2c50736b0162d47d059e5335d607bf851ca7b39269a"
      }
    }
    

    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 Doge Blockchain. For more information, see the examples.

    HTTP Request

    POST /v1/bc/doge/${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/doge/mainnet/txs/hdwallet \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
        "walletName": "demohdwallet",
        "password" : "8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32",
        "outputs": [{
            "address": "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y",
            "value": 12.004
        }],
        "fee":  {
            "value": 1.00023141
        }
    }'
    
    POST /v1/bc/doge/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": "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y",
            "value": 12.004
        }],
        "fee":  {
            "value": 1.00023141
        }
    }
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/doge/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\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\n        \"value\": 12.004\n    }],\n    \"fee\":  {\n        \"value\": 1.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/doge/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: 'nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y', value: 12.004 } ],
      fee: { value: 1.00023141 } }));
    req.end();
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/doge/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": "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y",
            "value": 12.004
        }],
        "fee":  {
            "value": 1.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/doge/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\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\n        \"value\": 12.004\n    }],\n    \"fee\":  {\n        \"value\": 1.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\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\n        \"value\": 12.004\n    }],\n    \"fee\":  {\n        \"value\": 1.00023141\n    }\n}"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/doge/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\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\n        \"value\": 12.004\n    }],\n    \"fee\":  {\n        \"value\": 1.00023141\n    }\n}");
    
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/doge/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/doge/mainnet/txs/hdwallet"
    
        payload := strings.NewReader("{\n    \"walletName\": \"demohdwallet\",\n    \"password\" : \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\",\n    \"outputs\": [{\n        \"address\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\n        \"value\": 12.004\n    }],\n    \"fee\":  {\n        \"value\": 1.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": "699b11e72e1ec72560f952627cd2d29b61854c97afa513c81d8e21d22f0f8b6e"
        }
    }
    

    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.

    HTTP Request

    POST /v1/bc/doge/${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*": 1.00023141
        }
    }
    
    Decode a Raw Transaction

    Sample Data

    
    curl -X POST \
     https://api.cryptoapis.io/v1/bc/doge/testnet/txs/decode \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
        "hex": "0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d963070100000000ffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f0100000000ffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000"
    }'
    
    
    
    POST /v1/bc/doge/testnet/txs/decode HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    {
        "hex": "0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d963070100000000ffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f0100000000ffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000"
    }
    
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/doge/testnet/txs/decode",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n\t\"hex\": \"0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d963070100000000ffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f0100000000ffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000\"\n}"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/doge/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: '0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d963070100000000ffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f0100000000ffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000' }));
    req.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/doge/testnet/txs/decode');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    $request->setBody('{
        "hex": "0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d963070100000000ffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f0100000000ffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000"
    }');
    
    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/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\": \"0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d963070100000000ffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f0100000000ffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000\"\n}"
    
    response = http.request(request)
    puts response.read_body
    
    
    
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    payload = "{\n\t\"hex\": \"0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d963070100000000ffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f0100000000ffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000\"\n}"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/doge/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\": \"0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d963070100000000ffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f0100000000ffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000\"\n}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/doge/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/doge/testnet/txs/decode"
    
        payload := strings.NewReader("{\n\t\"hex\": \"0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d963070100000000ffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f0100000000ffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000\"\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": "9043243419df1d97d9655a77f9c369cf5ed4ab7d1c5978570668625a179152bc",
            "hash": "9043243419df1d97d9655a77f9c369cf5ed4ab7d1c5978570668625a179152bc",
            "size": 160,
            "vsize": 160,
            "version": 1,
            "locktime": 0,
            "vin": [
                {
                    "txid": "0763d9d2f71799d05de908066d4812476f2c5bdcc780b42132aad51cc94b9ccc",
                    "sequence": 4294967295,
                    "vout": 1,
                    "scriptSig": {
                        "asm": "",
                        "hex": ""
                    }
                },
                {
                    "txid": "2fe7a328abc82325dbe26c5f19b3ffd32a8c18efb490e52cf0f5faaa8ed0cdd1",
                    "sequence": 4294967295,
                    "vout": 1,
                    "scriptSig": {
                        "asm": "",
                        "hex": ""
                    }
                }
            ],
            "vout": [
                {
                    "value": "121.309",
                    "n": 0,
                    "scriptPubKey": {
                        "asm": "OP_DUP OP_HASH160 fff5827ee63cc9e8073f7ffb221c57efe1756a60 OP_EQUALVERIFY OP_CHECKSIG",
                        "hex": "76a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac",
                        "reqSigs": 1,
                        "type": "pubkeyhash",
                        "addresses": [
                            "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y"
                        ]
                    }
                },
                {
                    "value": "20.56630577",
                    "n": 1,
                    "scriptPubKey": {
                        "asm": "OP_DUP OP_HASH160 cedde8f2a0b38593095aaca585dfebf137fb2941 OP_EQUALVERIFY OP_CHECKSIG",
                        "hex": "76a914cedde8f2a0b38593095aaca585dfebf137fb294188ac",
                        "reqSigs": 1,
                        "type": "pubkeyhash",
                        "addresses": [
                            "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c"
                        ]
                    }
                }
            ]
        }
    }
    
    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/doge/${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:

    0100000002cc9c4bc91cd5aa3221b480c7dc5b2c6f4712486d0608e95dd09917f7d2d963070100000000ffffffffd1cdd08eaafaf5f02ce590b4ef188c2ad3ffb3195f6ce2db2523c8ab28a3e72f0100000000ffffffff0220d80ed3020000001976a914fff5827ee63cc9e8073f7ffb221c57efe1756a6088ac31b1957a000000001976a914cedde8f2a0b38593095aaca585dfebf137fb294188ac00000000

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

    Refund a Transaction

    Sample Data

    curl -X POST \
      https://api.cryptoapis.io/v1/bc/doge/testnet/txs/refund \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
        "txid" : "cd3a08445cc2da8f29211b3768f407d60f5f7788522fa16ba9644b81469f00e3",
        "wif": "cmXDdmmET1......M35vSTy9xGEKbCbaJ",
      "fee": 0.08922678
    }'
    
    POST /v1/bc/doge/testnet/txs/refund HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    {
        "txid" : "cd3a08445cc2da8f29211b3768f407d60f5f7788522fa16ba9644b81469f00e3",
        "wif": "cmXDdmmET1......M35vSTy9xGEKbCbaJ",
      "fee": 0.08922678
    }
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/doge/testnet/txs/refund",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n\t\"txid\" : \"cd3a08445cc2da8f29211b3768f407d60f5f7788522fa16ba9644b81469f00e3\",\n\t\"wif\": \"cmXDdmmET1......M35vSTy9xGEKbCbaJ\",\n\t\"fee\": 0.08922678\n}"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "/v1/bc/doge/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: 'cd3a08445cc2da8f29211b3768f407d60f5f7788522fa16ba9644b81469f00e3',
      wif: 'cmXDdmmET1......M35vSTy9xGEKbCbaJ',fee: 0.08922678}));
    req.end();
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/doge/testnet/txs/refund');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    $request->setBody('{
        "txid" : "cd3a08445cc2da8f29211b3768f407d60f5f7788522fa16ba9644b81469f00e3",
      "wif": "cmXDdmmET1......M35vSTy9xGEKbCbaJ",
      "fee": 0.08922678
    }');
    
    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/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\" : \"cd3a08445cc2da8f29211b3768f407d60f5f7788522fa16ba9644b81469f00e3\",\n\t\"wif\": \"cmXDdmmET1......M35vSTy9xGEKbCbaJ\",\n\t\"fee\": 0.08922678\n}"
    
    response = http.request(request)
    puts response.read_body
    
    
    
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    payload = "{\n\t\"txid\" : \"cd3a08445cc2da8f29211b3768f407d60f5f7788522fa16ba9644b81469f00e3\",\n\t\"wif\": \"cmXDdmmET1......M35vSTy9xGEKbCbaJ\",\n\t\"fee\": 0.08922678\n}"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/doge/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\" : \"cd3a08445cc2da8f29211b3768f407d60f5f7788522fa16ba9644b81469f00e3\",\n\t\"wif\": \"cmXDdmmET1......M35vSTy9xGEKbCbaJ\",\n\t\"fee\": 0.08922678\n}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/doge/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/doge/testnet/txs/refund"
    
        payload := strings.NewReader("{\n\t\"txid\" : \"cd3a08445cc2da8f29211b3768f407d60f5f7788522fa16ba9644b81469f00e3\",\n\t\"wif\": \"cmXDdmmET1......M35vSTy9xGEKbCbaJ\",\n\t\"fee\": 0.08922678\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":"0adc1e3bbe130754a0d6f746c3f9f72bae4361917dd236ab3d14109ad4a3990c"
      }
    }
    

    The Refund a Transaction Endpoint allows users easily to return the amount in doge 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/doge/${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": ... } }

    New Transaction Endpoint

    Sample Data

    
    curl -X POST \
      https://api.cryptoapis.io/v1/bc/doge/testnet/txs/size \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
          "inputs": [{
              "address": "2NCKD4zZR82GeRvcbW5VdvkranSQjt13YC3  ",
            "value": 121.309
          }],
          "outputs": [{
              "address": "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y",
              "value": 121.309
          }],
          "fee":  {
              "value": 1.00023141
          }
      }'
    
    
    POST /v1/bc/doge/testnet/txs/size HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    {
          "inputs": [{
              "address": "2NCKD4zZR82GeRvcbW5VdvkranSQjt13YC3  ",
            "value": 121.309
          }],
          "outputs": [{
              "address": "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y",
              "value": 121.309
          }],
          "fee":  {
              "value": 1.00023141
          }
      }
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/doge/testnet/txs/size",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
     "data": "{\n      \"inputs\": [{\n          \"address\": \"2NCKD4zZR82GeRvcbW5VdvkranSQjt13YC3  \",\n        \"value\": 121.309\n      }],\n      \"outputs\": [{\n          \"address\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\n          \"value\": 121.309\n      }],\n      \"fee\":  {\n          \"value\": 1.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/doge/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: '2NCKD4zZR82GeRvcbW5VdvkranSQjt13YC3  ',
           value: 121.309 } ],
      outputs: 
       [ { address: 'nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y',
           value: 121.309 } ],
      fee: { value: 1.00023141 } }));
    req.end();
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/doge/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": "2NCKD4zZR82GeRvcbW5VdvkranSQjt13YC3  ",
            "value": 121.309
          }],
          "outputs": [{
              "address": "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y",
              "value": 121.309
          }],
          "fee":  {
              "value": 1.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/doge/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\": \"2NCKD4zZR82GeRvcbW5VdvkranSQjt13YC3  \",\n        \"value\": 121.309\n      }],\n      \"outputs\": [{\n          \"address\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\n          \"value\": 121.309\n      }],\n      \"fee\":  {\n          \"value\": 1.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\": \"2NCKD4zZR82GeRvcbW5VdvkranSQjt13YC3  \",\n        \"value\": 121.309\n      }],\n      \"outputs\": [{\n          \"address\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\n          \"value\": 121.309\n      }],\n      \"fee\":  {\n          \"value\": 1.00023141\n      }\n  }"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/doge/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\": \"2NCKD4zZR82GeRvcbW5VdvkranSQjt13YC3  \",\n        \"value\": 121.309\n      }],\n      \"outputs\": [{\n          \"address\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\n          \"value\": 121.309\n      }],\n      \"fee\":  {\n          \"value\": 1.00023141\n      }\n  }");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/doge/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/doge/testnet/txs/size"
    
        payload := strings.NewReader("{\n      \"inputs\": [{\n          \"address\": \"2NCKD4zZR82GeRvcbW5VdvkranSQjt13YC3  \",\n        \"value\": 121.309\n      }],\n      \"outputs\": [{\n          \"address\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\n          \"value\": 121.309\n      }],\n      \"fee\":  {\n          \"value\": 1.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": 117
        }
    }
    
    HTTP Request

    POST /v1/bc/doge/${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/doge/testnet/wallets/hd/txs/size \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
            "walletName": "demohdwallet",
            "password": "8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32",
            "outputs": [
              {
                "address": "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y",
                "value": 0.007
              }
            ]
          }'
    
    
    POST /v1/bc/doge/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": "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y",
            "value": 0.007 
        }]
    }
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/doge/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\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\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/doge/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\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\n          \"value\": 0.007\n        }],\n}");
    req.end();
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/doge/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": "nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y",
    "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/doge/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\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\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\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\n          \"value\": 0.007\n        }],\n}"
    
    headers = {
      'Content-Type': "application/json",
      'X-API-Key': "my-api-key"
    }
    
    conn.request("POST", "/v1/bc/doge/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\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\n          \"value\": 0.007\n        }],\n}"");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/doge/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/doge/testnet/wallets/hd/txs/size"
    
        payload := strings.NewReader("{\n        \"walletName\": \"demohdwallet\",\n        \"password\" : \"8a0690d2cd4fad1371090225217bb1425b3700210f51be6111eb225d5142ac32\",\n\"outputs\": [{\n          \"address\": \"nsXYgWCuBVSYxD1rWz543EFkfxcPV9PC2y\",\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/doge/${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/doge/testnet/txs/fee' \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key'
    
    
    
    GET /v1/bc/doge/testnet/txs/fee 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/doge/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/doge/testnet/txs/fee",
      "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/doge/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/doge/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/doge/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/doge/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/doge/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": "56.00000003",
            "average": "1.19760446",
            "min_fee_per_byte": "0.00000001",
            "average_fee_per_byte": "0.00287925",
            "max_fee_per_byte": "0.13274336",
            "average_bytes": "415", //deprecated
            "recommended": "1.01796242", //deprecated
            "slow_fee_per_byte": "0.00150489", 
            "standard_fee_per_byte": "0.00271739",
            "fast_fee_per_byte": "0.00511753",
            "unit": "doge"
        }
    }
    
    
    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 doge!

    HTTP Request

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

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

    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/doge/mainnet/wallets/hd/xpub' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
        -d '{
            "password": "SECRET123456"
        }'
    
    
    POST /v1/bc/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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/doge/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":"dgpv54buBJQLj88AzS5XoyhSAckH6nZso3ZENWbHqdZZrcTprnYwQDgCZTcwngKnXWza9mjRWqXaiEZF9Vf5CHmLfgG5KQcPr3n2kYRaXQzduCK",
            "xpub":"dgub8oUvWzLEHGnWHHjgrDKQHUHsZLwWdAawf7NVzjxYejWqQqfdozDyCm2bMvxieS4GLDypMtFbQ4nqDyZkHcNiD6ujEvD3V3LxukiGeaSvaaq",
            "wif": "QP37Td4TrHJs3j4AMCqBMDmagM77CiB5LoLUK7nDwFLguvGwzKEp"
        }
    }
    
    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/doge/${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/doge/mainnet/wallets/hd/xpub/addresses?limit=5' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
        -d '{
        "xpub":"dgub8rUhDtD3YFGZTUphBfpBbzvFxSMKQXYLzg87Me2ta78r2SdVLmypBUkkxrrn9RTnchsyiJSkHZyLWxD13ibBiXtuFWktBoDaGaZjQUBLNLs"
    }'
    
    
    POST /v1/bc/doge/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":"dgub8rUhDtD3YFGZTUphBfpBbzvFxSMKQXYLzg87Me2ta78r2SdVLmypBUkkxrrn9RTnchsyiJSkHZyLWxD13ibBiXtuFWktBoDaGaZjQUBLNLs"
    }
    
    
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n\t\"xpub\":\"dgub8rUhDtD3YFGZTUphBfpBbzvFxSMKQXYLzg87Me2ta78r2SdVLmypBUkkxrrn9RTnchsyiJSkHZyLWxD13ibBiXtuFWktBoDaGaZjQUBLNLs\"\n}"
    });
    
    $.post('https://api.cryptoapis.io/v1/bc/doge/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/doge/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: 'dgub8rUhDtD3YFGZTUphBfpBbzvFxSMKQXYLzg87Me2ta78r2SdVLmypBUkkxrrn9RTnchsyiJSkHZyLWxD13ibBiXtuFWktBoDaGaZjQUBLNLs' }));
    request.end();
    
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/doge/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":"dgub8rUhDtD3YFGZTUphBfpBbzvFxSMKQXYLzg87Me2ta78r2SdVLmypBUkkxrrn9RTnchsyiJSkHZyLWxD13ibBiXtuFWktBoDaGaZjQUBLNLs"
    }');
    
    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/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\":\"dgub8rUhDtD3YFGZTUphBfpBbzvFxSMKQXYLzg87Me2ta78r2SdVLmypBUkkxrrn9RTnchsyiJSkHZyLWxD13ibBiXtuFWktBoDaGaZjQUBLNLs\"\n}"
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/doge/mainnet/wallets/hd/xpub/addresses?limit=5'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    
    payload = "{\n\t\"xpub\":\"dgub8rUhDtD3YFGZTUphBfpBbzvFxSMKQXYLzg87Me2ta78r2SdVLmypBUkkxrrn9RTnchsyiJSkHZyLWxD13ibBiXtuFWktBoDaGaZjQUBLNLs\"\n}"
    
    response = requests.post(url, payload, headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    RequestBody body = RequestBody.create(mediaType, "{\n\t\"xpub\":\"dgub8rUhDtD3YFGZTUphBfpBbzvFxSMKQXYLzg87Me2ta78r2SdVLmypBUkkxrrn9RTnchsyiJSkHZyLWxD13ibBiXtuFWktBoDaGaZjQUBLNLs\"\n}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/doge/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/doge/mainnet/wallets/hd/xpub/addresses?limit=5"
        payload := strings.NewReader("{\n\t\"xpub\":\"dgub8rUhDtD3YFGZTUphBfpBbzvFxSMKQXYLzg87Me2ta78r2SdVLmypBUkkxrrn9RTnchsyiJSkHZyLWxD13ibBiXtuFWktBoDaGaZjQUBLNLs\"\n}")
    
        req, _ := http.NewRequest("POST", url, payload)
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    }
    
    

    Response Body

    {
        "payload": [
            "DBus3bamQjgJULBJtYXpEzDWQRwF5iwxgC",
            "DAcDAtJRztxBHyA6D6h8du1HguyTR43Mas",
            "D8K3KyDQ9FXeC3ADCuWW7cnWC7RvjHjV8H",
            "D6RRdXkUbb3pazkYGXAXwbJY5iC8Tyqwzh",
            "DTdrvUHbk5oMyi62tM7LqrjAcXfqB7eaad"
        ],
        "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/doge/${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/doge/mainnet/wallets/hd/xpub/addresses/transactions' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
        -d '{
        "xpub":"dgub8rUhDtD3YFGZTUphBfpBbzvFxSMKQXYLzg87Me2ta78r2SdVLmypBUkkxrrn9RTnchsyiJSkHZyLWxD13ibBiXtuFWktBoDaGaZjQUBLNLs"
    }'
    
    
    POST /v1/bc/doge/mainnet/wallets/hd/xpub/addresses/transactions HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    {
        "xpub":"dgub8rUhDtD3YFGZTUphBfpBbzvFxSMKQXYLzg87Me2ta78r2SdVLmypBUkkxrrn9RTnchsyiJSkHZyLWxD13ibBiXtuFWktBoDaGaZjQUBLNLs"
    }
    
    
    $.ajaxSetup({
      headers:{
        "Content-Type": "application/json" ,
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n\t\"xpub\":\"dgub8rUhDtD3YFGZTUphBfpBbzvFxSMKQXYLzg87Me2ta78r2SdVLmypBUkkxrrn9RTnchsyiJSkHZyLWxD13ibBiXtuFWktBoDaGaZjQUBLNLs\"\n}"
    });
    
    $.post('https://api.cryptoapis.io/v1/bc/doge/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/doge/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: 'dgub8rUhDtD3YFGZTUphBfpBbzvFxSMKQXYLzg87Me2ta78r2SdVLmypBUkkxrrn9RTnchsyiJSkHZyLWxD13ibBiXtuFWktBoDaGaZjQUBLNLs' }));
    request.end();
    
    
    
    &lt;?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/doge/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":"dgub8rUhDtD3YFGZTUphBfpBbzvFxSMKQXYLzg87Me2ta78r2SdVLmypBUkkxrrn9RTnchsyiJSkHZyLWxD13ibBiXtuFWktBoDaGaZjQUBLNLs"
    }');
    
    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/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\":\"dgub8rUhDtD3YFGZTUphBfpBbzvFxSMKQXYLzg87Me2ta78r2SdVLmypBUkkxrrn9RTnchsyiJSkHZyLWxD13ibBiXtuFWktBoDaGaZjQUBLNLs\"\n}"
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/doge/mainnet/wallets/hd/xpub/addresses/transactions'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    
    payload = "{\n\t\"xpub\":\"dgub8rUhDtD3YFGZTUphBfpBbzvFxSMKQXYLzg87Me2ta78r2SdVLmypBUkkxrrn9RTnchsyiJSkHZyLWxD13ibBiXtuFWktBoDaGaZjQUBLNLs\"\n}"
    
    response = requests.post(url, payload, headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    RequestBody body = RequestBody.create(mediaType, "{\n\t\"xpub\":\"dgub8rUhDtD3YFGZTUphBfpBbzvFxSMKQXYLzg87Me2ta78r2SdVLmypBUkkxrrn9RTnchsyiJSkHZyLWxD13ibBiXtuFWktBoDaGaZjQUBLNLs\"\n}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/doge/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/doge/mainnett/wallets/hd/xpub/addresses/transactions"
        payload := strings.NewReader("{\n\t\"xpub\":\"dgub8rUhDtD3YFGZTUphBfpBbzvFxSMKQXYLzg87Me2ta78r2SdVLmypBUkkxrrn9RTnchsyiJSkHZyLWxD13ibBiXtuFWktBoDaGaZjQUBLNLs\"\n}")
    
        req, _ := http.NewRequest("POST", url, payload)
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    }
    

    Response Body

    {
        "payload": [],
        "meta": {
            "totalCount": 0,
            "index": 0,
            "limit": 100,
            "results": 0
        }
    }
    
    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/doge/${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/doge/testnet/wallets/hd/xpub/details' \
        -H 'Content-Type: application/json' \
        -H 'X-API-Key: my-api-key'
        -d '{
        "xpub":"tpubD9FL9DbTJTAXib3eQx3CUYq9P7vBcK1D8JoxpV1bkEjAZa2Fsjg349BxEkCizVaibSUnkscCuqwJj68vWakiBmwe4S64XMT8QvK4DNwk8f4"
    }'
    
    
    POST /v1/bc/doge/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/doge/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/doge/testnet/wallets/hd/xpub/details",
      "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: 'tpubD9FL9DbTJTAXib3eQx3CUYq9P7vBcK1D8JoxpV1bkEjAZa2Fsjg349BxEkCizVaibSUnkscCuqwJj68vWakiBmwe4S64XMT8QvK4DNwk8f4' }));
    request.end();
    
    
    
    &lt;?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/doge/testnet/wallets/hd/xpub/details');
    $request->setMethod(HTTP_METH_POST);
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    $request->setBody('{
        "xpub":"tpubD9FL9DbTJTAXib3eQx3CUYq9P7vBcK1D8JoxpV1bkEjAZa2Fsjg349BxEkCizVaibSUnkscCuqwJj68vWakiBmwe4S64XMT8QvK4DNwk8f4"
    }');
    
    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/wallets/hd/xpub/details")
    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\":\"tpubD9FL9DbTJTAXib3eQx3CUYq9P7vBcK1D8JoxpV1bkEjAZa2Fsjg349BxEkCizVaibSUnkscCuqwJj68vWakiBmwe4S64XMT8QvK4DNwk8f4\"\n}"
    response = http.request(request)
    puts response.read_body
    
    
    
    import requests
    url = 'https://api.cryptoapis.io/v1/bc/doge/testnet/wallets/hd/xpub/details'
    headers = {
      "Content-Type": "application/json",
      "X-API-Key": "my-api-key"
    }
    
    payload = "{\n\t\"xpub\":\"tpubD9FL9DbTJTAXib3eQx3CUYq9P7vBcK1D8JoxpV1bkEjAZa2Fsjg349BxEkCizVaibSUnkscCuqwJj68vWakiBmwe4S64XMT8QvK4DNwk8f4\"\n}"
    
    response = requests.post(url, payload, headers)
    
    
    
    OkHttpClient client = new OkHttpClient();
    RequestBody body = RequestBody.create(mediaType, "{\n\t\"xpub\":\"tpubD9FL9DbTJTAXib3eQx3CUYq9P7vBcK1D8JoxpV1bkEjAZa2Fsjg349BxEkCizVaibSUnkscCuqwJj68vWakiBmwe4S64XMT8QvK4DNwk8f4\"\n}");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/doge/testnet/wallets/hd/xpub/details")
      .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/doge/testnet/wallets/hd/xpub/details"
        payload := strings.NewReader("{\n\t\"xpub\":\"tpubD9FL9DbTJTAXib3eQx3CUYq9P7vBcK1D8JoxpV1bkEjAZa2Fsjg349BxEkCizVaibSUnkscCuqwJj68vWakiBmwe4S64XMT8QvK4DNwk8f4\"\n}")
    
        req, _ := http.NewRequest("POST", url, payload)
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    }
    
    

    Response Body

    {
        "payload": {
            "totalBalance": {
                "amount": "40",
                "unit": "DOGE"
            },
            "transactions": [
                {
                    "txid": "ba07a3b55be4da1880361bffa0f245efa04cb569cd0e22d432a81ee902c619e6",
                    "index": 1,
                    "version": 1,
                    "size": 323,
                    "vsize": 323,
                    "locktime": 0,
                    "datetime": "2020-06-09 08:54:18 UTC",
                    "time": "2020-06-09 08:54:18 UTC",
                    "blockhash": "c356326ab1294122ee50b4d800ad601d867bea6d8946ada72cc5f27a5610b7c6",
                    "blockheight": 2564082,
                    "blocktime": "2020-06-09 08:54:18 UTC",
                    "timestamp": 1591692858,
                    "txins": [
                        {
                            "txout": "0231b1fe93cacf1f74e95ac1e1021124f88fe0e8d5768b6b03fa230a9e4322c4",
                            "vout": 0,
                            "amount": "100",
                            "addresses": [
                                "nZ6sGYnckCa85hefQzYT7d7XgJk6DZ2k6F"
                            ],
                            "script": {
                                "asm": "30440220435aac4575327cc1e6b6eb55a944127f87567d7f66072fef1c4d81ddb2e365f502200f481e83167447a3611c0f43ced0d08220fcab64d22d21e6a2d81597e2a9a289[ALL] 02ad4df041b6404f64ebbaa197a433bcecf52653a92f2fded308d7c2bfd7a66e32",
                                "hex": "4730440220435aac4575327cc1e6b6eb55a944127f87567d7f66072fef1c4d81ddb2e365f502200f481e83167447a3611c0f43ced0d08220fcab64d22d21e6a2d81597e2a9a289012102ad4df041b6404f64ebbaa197a433bcecf52653a92f2fded308d7c2bfd7a66e32"
                            },
                            "votype": "pubkeyhash"
                        }
                    ],
                    "txouts": [
                        {
                            "amount": "10",
                            "type": "scripthash",
                            "spent": false,
                            "addresses": [
                                "2NAWrucEfhPLeuRoTCMxsBuvBxZixgUXAaV"
                            ],
                            "script": {
                                "asm": "OP_HASH160 bd6f324df957a83a489abc778b9b88a5460d49ac OP_EQUAL",
                                "hex": "a914bd6f324df957a83a489abc778b9b88a5460d49ac87",
                                "reqsigs": 1
                            }
                        },
                        {
                            "amount": "10",
                            "type": "pubkeyhash",
                            "spent": false,
                            "addresses": [
                                "nVP4jLn7W6Bw8RvL4QkTVuenvFP1BePkvb"
                            ],
                            "script": {
                                "asm": "OP_DUP OP_HASH160 0d081519e33370a96edf3a063c1196c74a9865c7 OP_EQUALVERIFY OP_CHECKSIG",
                                "hex": "76a9140d081519e33370a96edf3a063c1196c74a9865c788ac",
                                "reqsigs": 1
                            }
                        },
                        {
                            "amount": "10",
                            "type": "scripthash",
                            "spent": false,
                            "addresses": [
                                "2NDTThYSdFhyFyUGx21WgemqnVeDSs1TrKS"
                            ],
                            "script": {
                                "asm": "OP_HASH160 ddb2f3f0484ce297898b92557e0ea0cf1a75ef1c OP_EQUAL",
                                "hex": "a914ddb2f3f0484ce297898b92557e0ea0cf1a75ef1c87",
                                "reqsigs": 1
                            }
                        },
                        {
                            "amount": "10",
                            "type": "pubkeyhash",
                            "spent": false,
                            "addresses": [
                                "nnAESRfUi89WmpJZKPruhTY4kJUKQwd5Nh"
                            ],
                            "script": {
                                "asm": "OP_DUP OP_HASH160 c514ead8ad8490b863b2c644911f591a7944a4c2 OP_EQUALVERIFY OP_CHECKSIG",
                                "hex": "76a914c514ead8ad8490b863b2c644911f591a7944a4c288ac",
                                "reqsigs": 1
                            }
                        },
                        {
                            "amount": "50",
                            "type": "pubkeyhash",
                            "spent": false,
                            "addresses": [
                                "nZ6sGYnckCa85hefQzYT7d7XgJk6DZ2k6F"
                            ],
                            "script": {
                                "asm": "OP_DUP OP_HASH160 35d85cba811c816bfa96a6208a3fb8605efb2b7c OP_EQUALVERIFY OP_CHECKSIG",
                                "hex": "76a91435d85cba811c816bfa96a6208a3fb8605efb2b7c88ac",
                                "reqsigs": 1
                            }
                        }
                    ]
                }
            ]
        },
        "meta": {
            "totalCount": 1,
            "index": 0,
            "results": 1
        }
    }
    
    Info

    Get Pub Details Endpoint allows you to get transactions associated with the specified extended public key and the total balance of the results. Supported BIP formats are: bip39, bip44, bip49 and bip84. 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 you are looking for the details 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 you are looking for the details 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 you are looking for the details from addresses in ALL (P2PKH, P2SH) 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/doge/${NETWORK}/wallets/hd/xpub/details

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

    Payment Forwarding

    Payment Forwarding is an automatic way to move any received funds to another wallet, it's mainly used to move funds once received to cold wallets. Moving funds from hot wallets to cold wallets is a common practice in the market, it's used by all exchanges and wallets. You can subscribe for payment forwarding for any wallet/address you own, in the subscription you mention where to move the funds and how to notify you once done. Crypto APIs will monitor the wallet/address you have subscription for and once any funds are received, Crypto APIs will move them to the target wallet/address then notify you by sending a call to the URL you have specified. commerce without necessarily requiring extensive setup barriers, like registering new accounts. In that spirit, our Payment Forwarding API is the easiest way to accept—and consolidate—payments securely without forcing your users to create accounts and jump through unnecessary loops. It’s also a generic way to automatically transfer value from one address to another. One of the well-known benefits of cryptocurrency is the ability to allow users to partake in online commerce without necessarily requiring extensive setup barriers, like registering new accounts. In that spirit, our Payment Forwarding API is the easiest way to accept—and consolidate—payments securely without forcing your users to create accounts and jump through unnecessary loops. It’s also a generic way to automatically transfer value from one address to another. While there are many possible use cases, the two we hear most about are: A way to generate payment-specific addresses for which funds will automatically transfer to a main merchant address. Great for automatic merchandise (whether physical or virtual) processing.

    We do not take a fee on payment forwarding, other than the required miner fee; payments are free. However, as part of your own services, you can include a fee (either fixed or a percentage) that will also be automatically transfered to your own address in the same transaction. Fee-based business models are thus easily achieved, and moreover, easily auditable via the blockchain.

    Create Payment Forwarding Automation

    Sample Data

    
    curl -X POST \
      https://api.cryptoapis.io/v1/bc/doge/testnet/payments \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
        "wallet": "demohdwallet",
        "callback": "http://example.com/paymet_forwarding_hook",
        "from": "nrJZpzhP5baL6KirRMqLE5oWFJA25V279a",
        "to": "nd5BuBGLh1ZABMoad4y4eKnMyVijNmsdmZ",
        "password": "SECRET123456",
        "confirmations": 2,
        "fee": 1.0
    }'
    
    curl -X POST \
      https://api.cryptoapis.io/v1/bc/doge/testnet/payments/wif \
      -H 'Content-Type: application/json' \
      -H 'X-API-Key: my-api-key' \
      -d '{
        "callback": "http://example.com/paymet_forwarding_hook",
        "from": "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c",
        "to": "nd5BuBGLh1ZABMoad4y4eKnMyVijNmsdmZ",
        "wif": "ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6",
        "confirmations": 2,
        "fee": 1.0
    }'
    
    
    
    
    POST /v1/bc/doge/testnet/payments HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    {
        "wallet": "demohdwallet",
        "callback": "http://example.com/paymet_forwarding_hook",
        "from": "nrJZpzhP5baL6KirRMqLE5oWFJA25V279a",
        "to": "nd5BuBGLh1ZABMoad4y4eKnMyVijNmsdmZ",
        "password" : "SECRET123456",
        "confirmations": 2,
        "fee": 1.0
    }
    
    POST /v1/bc/doge/testnet/payments/wif HTTP/1.1
    Host: api.cryptoapis.io
    Content-Type: application/json
    X-API-Key: my-api-key
    
    {
        "callback": "http://example.com/paymet_forwarding_hook",
        "from": "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c",
        "to": "nd5BuBGLh1ZABMoad4y4eKnMyVijNmsdmZ",
        "wif" : "ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6",
        "confirmations": 2,
        "fee": 1.0
    }
    
    
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/doge/testnet/payments",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n       \"callback\": \"http://example.com/paymet_forwarding_hook\",\n    \"from\": \"nrJZpzhP5baL6KirRMqLE5oWFJA25V279a\",\n    \"to\": \"nd5BuBGLh1ZABMoad4y4eKnMyVijNmsdmZ\",\n    \"wif\" : \"SECRET123456\",\n    \"confirmations\": 2,\n \"fee\": 1.0\n}\n"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    var settings = {
      "async": true,
      "crossDomain": true,
      "url": "https://api.cryptoapis.io/v1/bc/doge/testnet/payments/wif",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "X-API-Key": "my-api-key"
      },
      "processData": false,
      "data": "{\n       \"callback\": \"http://example.com/paymet_forwarding_hook\",\n    \"from\": \"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\",\n    \"to\": \"nd5BuBGLh1ZABMoad4y4eKnMyVijNmsdmZ\",\n    \"wif\" : \"ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6\",\n    \"confirmations\": 2,\n \"fee\": 1.0\n}\n"
    }
    
    $.ajax(settings).done(function (response) {
      console.log(response);
    });
    
    
    
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "https://api.cryptoapis.io/v1/bc/doge/testnet/payments",
      "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({ wallet: 'demohdwallet',
      callback: 'http://example.com/paymet_forwarding_hook',
      from: 'nrJZpzhP5baL6KirRMqLE5oWFJA25V279a',
      to: 'nd5BuBGLh1ZABMoad4y4eKnMyVijNmsdmZ',
      password: 'SECRET123456',
      confirmations: 2,
      fee: 1.0 }));
    req.end();
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": "api.cryptoapis.io",
      "path": "https://api.cryptoapis.io/v1/bc/doge/testnet/payments/wif",
      "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({
      callback: 'http://example.com/paymet_forwarding_hook',
      from: 'no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c',
      to: 'nd5BuBGLh1ZABMoad4y4eKnMyVijNmsdmZ',
      wif: 'ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6',
      confirmations: 2,
      fee: 1.0 }));
    req.end();
    
    
    
    &lt?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/doge/testnet/payments');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    $request->setBody('{
        "wallet": "demohdwallet",
        "callback": "http://example.com/paymet_forwarding_hook",
        "from": "nrJZpzhP5baL6KirRMqLE5oWFJA25V279a",
        "to": "nd5BuBGLh1ZABMoad4y4eKnMyVijNmsdmZ",
        "password" : "SECRET123456",
        "confirmations": 2,
        "fee": 1.0
    }
    ');
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    ?>
    
    &lt?php
    
    $request = new HttpRequest();
    $request->setUrl('https://api.cryptoapis.io/v1/bc/doge/testnet/payments/wif');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'Content-Type' => 'application/json',
      'X-API-Key' => 'my-api-key'
    ));
    
    $request->setBody('{
        "callback": "http://example.com/paymet_forwarding_hook",
        "from": "no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c",
        "to": "nd5BuBGLh1ZABMoad4y4eKnMyVijNmsdmZ",
        "wif" : "ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6",
        "confirmations": 2,
        "fee": 1.0
    }
    ');
    
    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/payments")
    
    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    \"wallet\": \"demohdwallet\",\n    \"callback\": \"http://example.com/paymet_forwarding_hook\",\n    \"from\": \"nrJZpzhP5baL6KirRMqLE5oWFJA25V279a\",\n    \"to\": \"nd5BuBGLh1ZABMoad4y4eKnMyVijNmsdmZ\",\n    \"password\" : \"SECRET123456\",\n    \"confirmations\": 2,\n \"fee\": 1.0\n}\n"
    
    response = http.request(request)
    puts response.read_body
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.cryptoapis.io/v1/bc/doge/testnet/payments/wif")
    
    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      \"callback\": \"http://example.com/paymet_forwarding_hook\",\n    \"from\": \"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\",\n    \"to\": \"nd5BuBGLh1ZABMoad4y4eKnMyVijNmsdmZ\",\n    \"wif\" : \"ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6\",\n    \"confirmations\": 2,\n \"fee\": 1.0\n}\n"
    
    response = http.request(request)
    puts response.read_body
    
    
    
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    payload = "{\n    \"wallet\": \"demohdwallet\",\n    \"callback\": \"http://example.com/paymet_forwarding_hook\",\n    \"from\": \"nrJZpzhP5baL6KirRMqLE5oWFJA25V279a\",\n    \"to\": \"nd5BuBGLh1ZABMoad4y4eKnMyVijNmsdmZ\",\n    \"password\" : \"SECRET123456\",\n    \"confirmations\": 2,\n \"fee\": 1.0\n}\n"
    
    headers = {
        'Content-Type': "application/json",
        'X-API-Key': 'my-api-key'
        }
    
    conn.request("POST", "/v1/bc/doge/testnet/payments", payload, headers)
    
    res = conn.getresponse()
    data = res.read()
    
    print(data.decode("utf-8"))
    
    import http.client
    
    conn = http.client.HTTPConnection("https://api.cryptoapis.io")
    
    payload = "{\n       \"callback\": \"http://example.com/paymet_forwarding_hook\",\n    \"from\": \"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\",\n    \"to\": \"nd5BuBGLh1ZABMoad4y4eKnMyVijNmsdmZ\",\n    \"wif\" : \"ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6\",\n    \"confirmations\": 2,\n \"fee\": 1.0\n}\n"
    
    headers = {
        'Content-Type': "application/json",
        'X-API-Key': 'my-api-key'
        }
    
    conn.request("POST", "/v1/bc/doge/testnet/payments/wif", 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    \"wallet\": \"demohdwallet\",\n    \"callback\": \"http://example.com/paymet_forwarding_hook\",\n    \"from\": \"nrJZpzhP5baL6KirRMqLE5oWFJA25V279a\",\n    \"to\": \"nd5BuBGLh1ZABMoad4y4eKnMyVijNmsdmZ\",\n    \"password\" : \"SECRET123456\",\n    \"confirmations\": 2,\n \"fee\": 1.0\n}\n");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/doge/testnet/payments")
      .post(body)
      .addHeader("Content-Type", "application/json")
      .addHeader("X-API-Key", "my-api-key")
      .build();
    
    Response response = client.newCall(request).execute();
    
    OkHttpClient client = new OkHttpClient();
    
    MediaType mediaType = MediaType.parse("application/json");
    RequestBody body = RequestBody.create(mediaType, "{\n        \"callback\": \"http://example.com/paymet_forwarding_hook\",\n    \"from\": \"no3yJMxBSKzq6wuUNLN7cUssfPGTiRbb5c\",\n    \"to\": \"nd5BuBGLh1ZABMoad4y4eKnMyVijNmsdmZ\",\n    \"wif\" : \"ckDxktqwNyxW1YQpvgWFne2FoUWTSZ9eCpM7Nn7PaWrDRicNgxA6\",\n    \"confirmations\": 2,\n \"fee\": 1.0\n}\n");
    Request request = new Request.Builder()
      .url("https://api.cryptoapis.io/v1/bc/doge/testnet/payments/wif")
      .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/doge/testnet/payments"
    
          payload := strings.NewReader("{\n    \"wallet\": <