Guides
Dash CoreDash PlatformDash.orgDash User DocsLog In
Guides
These docs are for v0.14.0. Click to read the latest docs for v0.25-redirect.

JSON-RPC Endpoints

Detailed endpoint reference

Overview

The endpoints described on this page provide access to information from the Core chain (layer 1).

🚧

gRPC Migration

The remaining JSON-RPC endpoints will be migrated to gRPC in a future release

Required Parameters

All valid JSON-RPC requests require the inclusion the parameters listed in the following table.

NameTypeDescription
methodStringName of the endpoint
idIntegerRequest id (returned in the response to differentiate results from the same endpoint)
jsonrpcStringJSON-RPC version ("2.0")

Additional information may be found in the JSON-RPC 2.0 specification.

Endpoint Details

getAddressSummary

Returns: a summary of details related to the provided address(es)
Parameters:

NameTypeRequiredDescription
addressString or Array of StringsYesDash address(es)

Example Request and Response

curl --request POST \
  --url http://seed.evonet.networks.dash.org:3000/ \
  --header 'content-type: application/json' \
  --data '{
      "method":"getAddressSummary",
      "id":1,
      "jsonrpc":"2.0",
      "params":{
        "address": [
          "yPan6DeKoRSzvLBXvdWijh5rWzJGPYUr9B",
          "ySnJVXXx9FtKUBTkovPaPPqCkTMNzDLPCu"
        ]
      }
    }'
var request = require("request");

var options = {
  method: 'POST',
  url: 'http://seed.evonet.networks.dash.org:3000',
  headers: {'content-type': 'application/json'},
  body: '{"method":"getAddressSummary","id":1,"jsonrpc":"2.0","params":{"address": ["yPan6DeKoRSzvLBXvdWijh5rWzJGPYUr9B", "ySnJVXXx9FtKUBTkovPaPPqCkTMNzDLPCu"]}}'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
var XMLHttpRequest = require('xhr2');
var data = '{"method":"getAddressSummary","id":1,"jsonrpc":"2.0","params":{"address": ["yPan6DeKoRSzvLBXvdWijh5rWzJGPYUr9B", "ySnJVXXx9FtKUBTkovPaPPqCkTMNzDLPCu"]}}';

var xhr = new XMLHttpRequest();

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://seed.evonet.networks.dash.org:3000");
xhr.setRequestHeader("content-type", "application/json");

xhr.send(data);
import requests
import json

url = "http://seed.evonet.networks.dash.org:3000/"
headers = {'content-type': 'application/json'}

payload_json = {
    "method": "getAddressSummary",
    "id": 1,
    "jsonrpc": "2.0",
    "params":{
      "address": [
        "yPan6DeKoRSzvLBXvdWijh5rWzJGPYUr9B",
        "ySnJVXXx9FtKUBTkovPaPPqCkTMNzDLPCu"
      ]
    }
}

response = requests.request("POST", url, data=json.dumps(payload_json), headers=headers)

print(response.text)
require 'uri'
require 'net/http'

url = URI("http://seed.evonet.networks.dash.org:3000/")
http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'

request.body = '{
    "method":"getAddressSummary",
    "id":1,
    "jsonrpc":"2.0",
    "params":{
      "address": [
        "yPan6DeKoRSzvLBXvdWijh5rWzJGPYUr9B",
        "ySnJVXXx9FtKUBTkovPaPPqCkTMNzDLPCu"
      ]
    }
}'

response = http.request(request)
puts response.read_body
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "addrStr": [
      "yPan6DeKoRSzvLBXvdWijh5rWzJGPYUr9B",
      "ySnJVXXx9FtKUBTkovPaPPqCkTMNzDLPCu"
    ],
    "balance": 0,
    "balanceSat": 0,
    "totalReceived": 0.001,
    "totalReceivedSat": 100000,
    "totalSent": 0.001,
    "totalSentSat": 100000,
    "unconfirmedBalance": 0,
    "unconfirmedBalanceSat": 0,
    "unconfirmedTxApperances": 0,
    "unconfirmedAppearances": 0,
    "txApperances": 2,
    "txAppearances": 2,
    "transactions": [
      "c78df31795184aa6582318bd748e1367d0e45d22428aed902dd7ad2e1b6940d8",
      "2fc47fd031c2c4577ddc7248aded5b1b1c4338b2c408c33f480cad9ece61d1fc"
    ]
  }
}

getBestBlockHash

Returns: the block hash of the chaintip
Parameters: none

Example Request and Response

curl --request POST \
  --url http://seed.evonet.networks.dash.org:3000/ \
  --header 'content-type: application/json' \
  --data '{
      "method":"getBestBlockHash",
      "id":1,
      "jsonrpc":"2.0",
      "params":{}
    }'
var request = require("request");

var options = {
  method: 'POST',
  url: 'http://seed.evonet.networks.dash.org:3000',
  headers: {'content-type': 'application/json'},
  body: '{"method":"getBestBlockHash","id":1,"jsonrpc":"2.0"}'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
var XMLHttpRequest = require('xhr2');
var data = '{"method":"getBestBlockHash","id":1,"jsonrpc":"2.0"}';

var xhr = new XMLHttpRequest();

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://seed.evonet.networks.dash.org:3000");
xhr.setRequestHeader("content-type", "application/json");

xhr.send(data);
import requests
import json

url = "http://seed.evonet.networks.dash.org:3000/"
headers = {'content-type': 'application/json'}

payload_json = {
    "method": "getBestBlockHash",
    "id": 1,
    "jsonrpc": "2.0",
    "params": {}
}

response = requests.request("POST", url, data=json.dumps(payload_json), headers=headers)

print(response.text)
require 'uri'
require 'net/http'

url = URI("http://seed.evonet.networks.dash.org:3000/")
http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'

request.body = '{
    "method":"getBestBlockHash",
    "id":1,
    "jsonrpc":"2.0",
    "params":{ }
}'

response = http.request(request)
puts response.read_body
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "000001c61729f702adae5266adf68f378211a5ea33970683724894f0e1bae56d"
}

getBlockHash

Returns: the block hash for the given height
Parameters:

NameTypeRequiredDescription
heightIntegerYesBlock height

Example Request and Response

curl --request POST \
  --url http://seed.evonet.networks.dash.org:3000/ \
  --header 'content-type: application/json' \
  --data '{
      "method":"getBlockHash",
      "id":1,
      "jsonrpc":"2.0",
      "params": {
        "height": 1
       }
    }'
import requests
import json

url = "http://seed.evonet.networks.dash.org:3000/"
headers = {'content-type': 'application/json'}

payload_json = {
    "method": "getBlockHash",
    "id": 1,
    "jsonrpc": "2.0",
    "params": {
        "height": 100
    }
}

response = requests.request("POST", url, data=json.dumps(payload_json), headers=headers)

print(response.text)
require 'uri'
require 'net/http'

url = URI("http://seed.evonet.networks.dash.org:3000/")
http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'

request.body = '{
    "method":"getBlockHash",
    "id":1,
    "jsonrpc":"2.0",
    "params":{
        "height":100
    }
}'

response = http.request(request)
puts response.read_body
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "13d210271ede6692c39244c613a6d3aab8bdb71be2c0d269749f6a202ec5e324"
}

getMnListDiff

Returns: a masternode list diff for the provided block hashes
Parameters:

NameTypeRequiredDescription
baseBlockHashStringYesBlock hash for the starting block
blockHashStringYesBlock hash for the ending block

Example Request and Response

curl --request POST \
  --url http://seed.evonet.networks.dash.org:3000/ \
  --header 'content-type: application/json' \
  --data '{
      "method":"getMnListDiff",
      "id":1,
      "jsonrpc":"2.0",
      "params": {
        "baseBlockHash": "000028374d1bdcf0fd9c88b32f73f5cb931671ed61a6836cda508b38f89ad980",
        "blockHash": "000001c61729f702adae5266adf68f378211a5ea33970683724894f0e1bae56d"
      }
    }'
import requests
import json

url = "http://seed.evonet.networks.dash.org:3000/"
headers = {'content-type': 'application/json'}

payload_json = {
    "method":"getMnListDiff",
    "id":1,
    "jsonrpc":"2.0",
    "params": {
        "baseBlockHash": "0000248ff415f1a3155b30c4041bdb681c25a69a319b83676f878d8214441e0b",
        "blockHash": "000001c61729f702adae5266adf68f378211a5ea33970683724894f0e1bae56d"
    }
}  

response = requests.request("POST", url, data=json.dumps(payload_json), headers=headers)

print(response.text)
require 'uri'
require 'net/http'

url = URI("http://seed.evonet.networks.dash.org:3000/")
http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'

request.body = '{
    "method":"getMnListDiff",
    "id":1,
    "jsonrpc":"2.0",
    "params": {
        "baseBlockHash": "0000248ff415f1a3155b30c4041bdb681c25a69a319b83676f878d8214441e0b",
        "blockHash": "000001c61729f702adae5266adf68f378211a5ea33970683724894f0e1bae56d"
    }
}'

response = http.request(request)
puts response.read_body
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "baseBlockHash": "000028374d1bdcf0fd9c88b32f73f5cb931671ed61a6836cda508b38f89ad980",
    "blockHash": "000001c61729f702adae5266adf68f378211a5ea33970683724894f0e1bae56d",
    "cbTxMerkleTree": "0200000002ae436fd5b784556551f5c7d328154560c970e5bb72e9bad62a9a3b69e8b6765708d50dd305e6ffefcaf63b633052328645b94aa20b85b484ce6e27f193a68a690103",
    "cbTx": "03000500010000000000000000000000000000000000000000000000000000000000000000ffffffff050235130105ffffffff0200c11a3d050000001976a91416b93a3b9168a20605cc3cda62f6135a3baa531a88ac00c11a3d050000001976a91416b93a3b9168a20605cc3cda62f6135a3baa531a88ac00000000260100351300001f34fc81526a4525c8860ad6f4a9e242b67995a77a28ef84c662e6fccd9436ac",
    "deletedMNs": [],
    "mnList": [
      {
        "proRegTxHash": "9a10460e6414889e46e1a132a55a8cbb2ac8bf5095ada34892c16dadc5810f83",
        "confirmedHash": "00002a4ab528605d24f3da41fa95cb705da61465207ccfc1fd8586c6262d362a",
        "service": "34.222.46.203:20001",
        "pubKeyOperator": "02a9a65cd9b228d3d79aec818213eafe37eb5c564337a4bd405cb6048aa92b612c70fdc5949ff8bd2a038a9f020672c6",
        "votingAddress": "yP31544VWmsSjLUyun8u84ecpYfYuiE43W",
        "isValid": true
      },
      {
        "proRegTxHash": "d716bf38d6aad3a1b48d375cbdcd8ba9729f0caa258f56f40242912eddc15ce4",
        "confirmedHash": "00002a4ab528605d24f3da41fa95cb705da61465207ccfc1fd8586c6262d362a",
        "service": "35.167.1.167:20001",
        "pubKeyOperator": "90c20febc30d1565453f6b50770df7716304df570aabcb73e2ff058541ec5166f8d3ee67ae769b67e489e1c019b67544",
        "votingAddress": "yiKQqUVMbY3vXCnJ5hpQmvqwd4G1LhXwv5",
        "isValid": true
      },
      {
        "proRegTxHash": "b7c633363ac1fa9a0e2142cbff0fbc002f9bf157beb1b5be75cd4eda3b3f1d6c",
        "confirmedHash": "00002a4ab528605d24f3da41fa95cb705da61465207ccfc1fd8586c6262d362a",
        "service": "54.190.26.164:20001",
        "pubKeyOperator": "15d2a4d88e3c0f543b5447f9ea9e218901c4413308109d935d9fdafa2bb2463dc8a04d9ae8b5825d8f76552e9874393a",
        "votingAddress": "yWUZKFYbnRQ1rzj59t86WedtWonbE4BUgo",
        "isValid": true
      },
      {
        "proRegTxHash": "f40e33f8a324ae03677a6fd8d348903d1944ed3e49882819421537385a8a35db",
        "confirmedHash": "00001f266c286dabf1b3d21c3d74b553449f36851c07fec28b7217e859084238",
        "service": "34.218.66.230:20001",
        "pubKeyOperator": "04feab7e24867c7cdd05e66cec3590e31a753ac7f96130704a6b20054e0b56098d4b9b287f6d56cd421271aaa35daa26",
        "votingAddress": "yiv8RLA4Qiivg39Fk1CbiAbSy2gjYcJKan",
        "isValid": true
      },
      {
        "proRegTxHash": "1916e5c4cea747eecd862f215fd89dece234ef4a60cfc4e8f9ec92ac3ad8c0c8",
        "confirmedHash": "00002a4ab528605d24f3da41fa95cb705da61465207ccfc1fd8586c6262d362a",
        "service": "54.245.150.218:20001",
        "pubKeyOperator": "06f64812ad5b76bc1afe1888e6a396fe07054509c20dc765e04f0c2019334120c3e7b1b82357354d818b4f78bf86fa2f",
        "votingAddress": "yaRxyJoxguKKe9z53zTucg3e9SDJd4KxiK",
        "isValid": true
      },
      {
        "proRegTxHash": "1226705f0ee9611a98cfffaf77572e2530c253e7ac9f8a67012a461efa57efbd",
        "confirmedHash": "00002a4ab528605d24f3da41fa95cb705da61465207ccfc1fd8586c6262d362a",
        "service": "34.222.243.95:20001",
        "pubKeyOperator": "8bdd067141601be5780048c07d1604008c01607456492bea3abf935f8ebd574a8ff9f16d5b3c3f1d6a4f08e7fbae7c62",
        "votingAddress": "ydUjb4BAQeJf6fxDEC7n1LeYRHo8MWVT6x",
        "isValid": true
      }
    ],
    "deletedQuorums": [],
    "newQuorums": [
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "00000047818648589afcc2ed70aaef033b76f017bfab12f96fe64309411d801d",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "966cceb6ecccd8c434beee6e538fe53cda9d8d72b65ac8a63d1933b73671ce9edbbfa45ef878e688176d0753c3793c36"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "0000014a4f152f0967d611375511ef47454b62a98ca3896c21aca6b1d1887322",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "0ff13bdc8e2aa03929e0a809f51ca388a5ab7e310034d62c8580116f5a558fb522ef58ff620f5a49946b7ecc73e2ff69"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "000001197b385d1203c4462f128a46fdd19838267b2beb5a6f1f32ef32dcc133",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "0a767014eef7b7e3dc46f46f6933b7b45d36ff3a285991bb172b530eb73c195946955c9e0b258e2cce83b0289d71c33a"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "000000047769c284231c4ce002cd8f976ae5a8d248f168a71ea98d5f94bdd433",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "0a0d716e5fd28935109bf4291ad438ec02d3c0e87acd4c172dec93822e373c978673c7c39aa100fd71fc403cb79153d5"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "0000010801525f1e57ba82466ac28951ba923d649ae7377d5234dd0e4e20e444",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "05fca8c16532a367da0e73b4b53c430635854d4e59fa814049558f1be6970b98adfba8c0f836b5b65653be1fb34e81f8"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "00000125ba41adc2205c1e8adc814bbf77a00e654e83d86b35e53dfac15a3845",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "917ed28a60e5e00056350c7e927e873e61b531ec60b9b10a958843006a9c8adb90a7f8bf8886dc3e7c28a54320fabef1"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "0000007b01feb305e1b5325925dc8d1c13e3371cbdbc4eea677f68d6e086e947",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "15d0a1fea708059ffe1570f6ee5a6c3e6c835f21d37cc55fad9caf493ae983ba033d356dc1de151209d4e18538b156a1"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "000000f1255d44fb070ed748ae9e5fede15024a081a8acc3b839ce8b2ba14a70",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "91cefd6b51b082828ca164ad8b0dc143bc4c431e370de0829ed8707378ab2e228fb561782f732a4345b4cafd6747b475"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "0000008f92785c346b38a94a7a373733bc4e4f7064aaa3041dd1b6a86b917f7d",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "86b1d725b026fd5e79296104439eb395b2237de2c864c7c2a2e5f1cda39c1a6c90f4bfd7898ae32bf9cdd32bc7ad1404"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "00000100ab30c3092b2d33f7ec013e6899acf864ce289350346ceca9f0a9927f",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "0e29bb92b5638da22827c83e75852cb69d6342daf08c6cbbd1be96a99d881b5f98a2cdb1842d8bc3e04f736cb0a1e3ff"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "000001ec77603463070547f553df735551fc000dc7785c5adfed7d757c415383",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "113445850b07bd2a65222dd21331404650136889526d12221e799d3f5a0703e5b0edb70f2463aa3b466b51d287f53296"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "00000113d83d24d8b264c02b23649671a8624ae0d810e1bc25507f529bd22e8b",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "93cf226f0bdd9c48510910d54a26cd6009e98e4a2f2c33511a9c4ab39c0128b4f5e66ab17203233716157d3b1202ac46"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "000001498690a569663d15d0268f788c531b2f9347932dc3344fc1528c28e89e",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "841f10acabde4246bef85e99226f623f8029a1ec8bf30255fb64627c34909b57435d77e9a7e0501ab6176861f299d72d"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "000000e37aeb9aef3a98900c0b588db48439bc56fd7f7ae3be023361f9d6d5a8",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "950475b0617d622d06b192b4cf7d2782fda8b3c4bd3d32b2767e4e83a1c0e5e256938236421fcd7ebcfe303f60d8981f"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "000003440780432b7855ee5b7a0717f712ca3f668a1d749f7e3fd2f1cd2cadb4",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "91f675218c326caf3ca51ed2b017fbe7479c88046680dafd76d280ad78e43f066d29ffbec52c11700d78bab7bc3c1e05"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "000000059b154abb42031fd8cec94322fcdba2cf77402e0d57ccf8adf173b7ba",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "89f8f37f5121c541c1fa01a58443b57135c522aa8187c17f5a63ac2174e907562ecd6863ef432646cd7bb8ffe5e63bf6"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "0000036ff469a1278c80f7a3101887fbeff752c2f76777a08e466bc9f9f1c5be",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "0835b4e2ba7bb0ceb1588b1441af0dbf7060dff35dac97a591727e2535823feb2784588e499b85277b5c56577a2d3890"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "0000003d0641a351f153ed4b672eadf1549324388fda824fd096445d2e8178c5",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "09a1a5f0b3a4f4f24e006e289ced712809f9352e50b7787fe1b92e5445a2c353560ddeb5a4d5b931e3375493f78bfb39"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "0000010fed8e007a5b28d975668dc9720a8d3af180014cbf3a675ca5cd73afc6",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "12ed08ec43e92158d45d3a81b4e0e0a319527d56f34872c7703718542d39afcbb2fb43462e5390a351481833e35d114c"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "00000294602e87e5a2b7491ea009c62b9855254513cc80e4195969ad999178e7",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "0e722532fc9beea6a56f5a5e54428abb389a11f101f91eb31ee5c6ffb8fea51b08aa9e18ba15ff066634c2b2ed82c3b5"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "000002c4973242529a2e8b752ebff9d2212d569d26d9fc31e2f02f172b0ab7ee",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "0d40d96fc83b4e8cb50a4c1403d2633941032fc167bd6c4cd67fba0d75cd8268c28f5399e8fffc092d24aefa5030e625"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "0000002501edf46e9284450e97edb18c74b33d092869ae04e54539d6f7991bf8",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "97fb126d626f1cbb1bbd0b2ce737a9237e5000b8239d431f3e0e87974bb9938ff45c74e5c270ba88ba9c2e44194dd2b9"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "0000068c0426cdc4e858f070c722098fcfded1a5448b35b7acbb5326307e3cf9",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "82f20d917a7325d7d89d191364666330d7cbe8d5871934b1df9bf51cc37ed0ae36b076234044b69e7f39f1496a5759b8"
      },
      {
        "version": 1,
        "llmqType": 1,
        "quorumHash": "0000002044e43004114b301aa3b36f1aec64f79b22231e8b8003a63cef3199fe",
        "signersCount": 50,
        "validMembersCount": 50,
        "quorumPublicKey": "111ac846cc414c1bf6ed31921e3421f637c65f80db8c9fdf8ca9e08e06e568dc1b040fd7a09e38567f4a9ef8c8ee891c"
      }
    ],
    "merkleRootMNList": "ac3694cdfce662c684ef287aa79579b642e2a9f4d60a86c825456a5281fc341f"
  }
}

getUTXO

Returns: unspent outputs for the given address
Parameters:

NameTypeRequiredDescription
addressString or ArrayYesA string containing an address OR an array of addresses
fromIntegerNoStart of range in the ordered list of latest UTXO
toIntegerNoEnd of range in the ordered list of latest UTXO
fromHeightIntegerNoLowest block height to include
toHeightIntegerNoBlock height to end on

Example Request and Response

curl --request POST \
  --url http://seed.evonet.networks.dash.org:3000/ \
  --header 'content-type: application/json' \
  --data '{
      "method":"getUTXO",
      "id":1,
      "jsonrpc":"2.0",
      "params": {
        "address": [
          "yWfKKt8JCGJWZRsNGe2ZJ43pUpmxEKiqwL",
          "yN7E9PWBT9c5NBJnzHBU3ZfwzFpQZG9Wpe"
        ],
        "from": 0,
        "to": 5,
        "fromHeight": 1000,
        "toHeight": 20000
      }
    }'
import requests
import json

url = "http://seed.evonet.networks.dash.org:3000/"
headers = {'content-type': 'application/json'}

payload_json = {
    "method":"getUTXO",
    "id":1,
    "jsonrpc":"2.0",
    "params": {
        "address": [
            "yeVomBV7cQgdEqUsm3vWxQsLgrwqw7viRH",
            "yN7E9PWBT9c5NBJnzHBU3ZfwzFpQZG9Wpe"
          ],
        "from": 0,
        "to": 5,
        "fromHeight": 5000,
        "toHeight": 20000
    }
}

response = requests.request("POST", url, data=json.dumps(payload_json), headers=headers)

print(response.text)
require 'uri'
require 'net/http'

url = URI("http://seed.evonet.networks.dash.org:3000/")
http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'

request.body = '{
    "method":"getUTXO",
    "id":1,
    "jsonrpc":"2.0",
    "params": {
        "address": [
            "yeVomBV7cQgdEqUsm3vWxQsLgrwqw7viRH",
            "yN7E9PWBT9c5NBJnzHBU3ZfwzFpQZG9Wpe"
          ],
        "from": 0,
        "to": 5,
        "fromHeight": 5000,
        "toHeight": 20000
    }
}'

response = http.request(request)
puts response.read_body
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "totalItems": 1,
    "from": 0,
    "to": 1,
    "fromHeight": 1000,
    "items": [
      {
        "address": "yWfKKt8JCGJWZRsNGe2ZJ43pUpmxEKiqwL",
        "txid": "c78df31795184aa6582318bd748e1367d0e45d22428aed902dd7ad2e1b6940d8",
        "outputIndex": 2,
        "script": "76a91471734c2117e141f687deabc1aa7e232867b776ca88ac",
        "satoshis": 79320,
        "height": 4887
      }
    ]
  }
}

Code Reference

Implementation details related to the information on this page can be found in: