api.diviproject.org



Base url

https://api.diviproject.org/v1



Resources



Transaction

Definition

[GET] /transactions/:hash

Params

Example request

[GET] /transactions/1ce4a95938b178e16df9efdbe5e105309e6d705bcc92b09f0fad1b7b1e69a9ec

Example response

{
  "txid": "1ce4a95938b178e16df9efdbe5e105309e6d705bcc92b09f0fad1b7b1e69a9ec",
  "version": 1,
  "locktime": 0,
  "vin": [
    {
      "txid": "480c76cbee31d9097a1c65b67ceee00dda3a413757929403f016fe2df4f6d316",
      "vout": 1,
      "scriptSig": {
        "asm": "304402204c37257ff348a61009b9dbeb9b1aa1d843e16313b5f918daff47b6a5bd028e9102203fc925943559500309f14fd3155437d9c043d8f022c9f91a60a065a2ffb038b101 023d4ab62219f660cddd81aa2b78fb71d6a021d884c93e734d310d57bea66fe810",
        "hex": "47304402204c37257ff348a61009b9dbeb9b1aa1d843e16313b5f918daff47b6a5bd028e9102203fc925943559500309f14fd3155437d9c043d8f022c9f91a60a065a2ffb038b10121023d4ab62219f660cddd81aa2b78fb71d6a021d884c93e734d310d57bea66fe810"
      },
      "value": 138082.75,
      "valueSat": 13808275000000,
      "address": "DE7pydi7sh9v66VFd1vg2sWMcWbs37dEG6",
      "sequence": 4294967295
    }
  ],
  "vout": [
    {
      "value": 128081.75,
      "valueSat": 12808175000000,
      "n": 0,
      "scriptPubKey": {
        "asm": "OP_DUP OP_HASH160 c65a17ec146f1aab94c93a04e68b3f7404694345 OP_EQUALVERIFY OP_CHECKSIG",
        "hex": "76a914c65a17ec146f1aab94c93a04e68b3f740469434588ac",
        "reqSigs": 1,
        "type": "pubkeyhash",
        "addresses": [
          "DPDtG3ThP1cPSGhPdPgCw23JLbmFDhoti6"
        ]
      },
      "spentTxId": "bbd39b5c71c0fe3cdb8b06d480a711c4c5dac13758e5458c4028a6d68e2f422b",
      "spentIndex": 0,
      "spentHeight": 594138
    },
    {
      "value": 10000,
      "valueSat": 1000000000000,
      "n": 1,
      "scriptPubKey": {
        "asm": "OP_DUP OP_HASH160 5b0b816415e05dc69b843cc1534a44a5b482a4c7 OP_EQUALVERIFY OP_CHECKSIG",
        "hex": "76a9145b0b816415e05dc69b843cc1534a44a5b482a4c788ac",
        "reqSigs": 1,
        "type": "pubkeyhash",
        "addresses": [
          "DDSVp8Hvarrkj8UwUfnqKsbygAQ1zuTDCs"
        ]
      }
    }
  ],
  "blockhash": "3496a18157406fd17000e83a41e4ec9d0ff32f733877b41f6ad501f583e7dfc9",
  "height": 594138,
  "confirmations": 6,
  "time": 1574076259,
  "blocktime": 1574076259,
  "size": 225
}



Address deltas

Definition

[GET] /addresses/:address

Params

Query

Example request

[GET] /addresses/D5s3rx6YsaEwLY47rgLeLtBBy7gGzZQhkP

Example response

[
  {
    "satoshis": 54000000000,
    "txid": "4b9739a1960265c5e3177f8623d69fc7af983aecce387f9422210c09722d47f7",
    "index": 2,
    "blockindex": 1,
    "height": 603881,
    "address": "D5s3rx6YsaEwLY47rgLeLtBBy7gGzZQhkP"
  },
  {
    "satoshis": 54000000000,
    "txid": "77333bd67bd870f9d810f0210c11beac1393f5cedf72554b3a30a6c814c0439a",
    "index": 2,
    "blockindex": 1,
    "height": 603598,
    "address": "D5s3rx6YsaEwLY47rgLeLtBBy7gGzZQhkP"
  },
  {
    "satoshis": 54000000000,
    "txid": "f9532be62ded599d90f1086f1db1c7a8b764f5a3b882f362cc7d1a8d26fe577c",
    "index": 2,
    "blockindex": 1,
    "height": 601258,
    "address": "D5s3rx6YsaEwLY47rgLeLtBBy7gGzZQhkP"
  },
  {
    "satoshis": 54000000000,
    "txid": "3a9c3e0fc474188939a52c32a014eca0343e4181deee146c0736da24e5ceef86",
    "index": 2,
    "blockindex": 1,
    "height": 601140,
    "address": "D5s3rx6YsaEwLY47rgLeLtBBy7gGzZQhkP"
  },
  {
    "satoshis": 54000000000,
    "txid": "68cbb8185b0683cc68721ada174efe7fde0ab7b2e9fde6551237b125269d67da",
    "index": 3,
    "blockindex": 1,
    "height": 599995,
    "address": "D5s3rx6YsaEwLY47rgLeLtBBy7gGzZQhkP"
  },
  {
    "satoshis": 54000000000,
    "txid": "7abebf100c2be2d984eea4b8cac343259a35573c2d99e859b1883646e95a64fe",
    "index": 2,
    "blockindex": 1,
    "height": 599144,
    "address": "D5s3rx6YsaEwLY47rgLeLtBBy7gGzZQhkP"
  },
  {
    "satoshis": 54000000000,
    "txid": "947b69fffbb314dc23eb7aadf76aada253289085b64cec030b77a961ab6523d4",
    "index": 2,
    "blockindex": 1,
    "height": 598817,
    "address": "D5s3rx6YsaEwLY47rgLeLtBBy7gGzZQhkP"
  },
  {
    "satoshis": 54000000000,
    "txid": "bd8170a1637d4e6677120e48f898c1555b4bdf5bcff953c0c875c2624962b301",
    "index": 2,
    "blockindex": 1,
    "height": 598712,
    "address": "D5s3rx6YsaEwLY47rgLeLtBBy7gGzZQhkP"
  },
  {
    "satoshis": 54000000000,
    "txid": "68290b641ebad2e2eb832bf8fa9b5913d6bb32b66c7d9f312283964fa9022afc",
    "index": 2,
    "blockindex": 1,
    "height": 597282,
    "address": "D5s3rx6YsaEwLY47rgLeLtBBy7gGzZQhkP"
  },
  {
    "satoshis": 54000000000,
    "txid": "d338dd01a3a4012e0fe817c648c52e04404095b2be69de0fc0e6e0889fffd222",
    "index": 2,
    "blockindex": 1,
    "height": 596956,
    "address": "D5s3rx6YsaEwLY47rgLeLtBBy7gGzZQhkP"
  },
  {
    "satoshis": 54000000000,
    "txid": "fce81a8cc290322fae0af8143ac8b8b9ee21cbc90238b77c64e6af891699d03d",
    "index": 2,
    "blockindex": 1,
    "height": 596741,
    "address": "D5s3rx6YsaEwLY47rgLeLtBBy7gGzZQhkP"
  }
]



Address mempool

Definition

[GET] /addresses/:address/mempool

Params

Example request

[GET] /addresses/D8nY3gkemtk9DFR1YfMn45jWXTqUNwMCvj/mempool

Example response

[
  {
    "address": "D8nY3gkemtk9DFR1YfMn45jWXTqUNwMCvj",
    "txid": "14238298baa933936d99fa8256492e355824b7bc6555a4dc708833ef9a281b63",
    "index": 0,
    "satoshis": 2937017981725,
    "timestamp": 1574654206
  },
  {
    "address": "D8nY3gkemtk9DFR1YfMn45jWXTqUNwMCvj",
    "txid": "6e43e373985cb0da8b82d60cbc61a247b131e05bcfa2b1f32029a1360937e757",
    "index": 0,
    "satoshis": -2937017981725,
    "timestamp": 1574716995,
    "prevtxid": "14238298baa933936d99fa8256492e355824b7bc6555a4dc708833ef9a281b63",
    "prevout": 0
  }
]



Address balance

Definition

[GET] /addresses/:address/balance

Params

Example request

[GET] /addresses/D5s3rx6YsaEwLY47rgLeLtBBy7gGzZQhkP/balance

Example response

{
  "balance": 121762000000000,
  "received": 121762000000000
}



Address utxos

Definition

[GET] /addresses/:address/utxos

Params

Example request

[GET] /addresses/DRrBeDp7zj6m7VPEDsdfr7zbBQNhUkESAs/utxos

Example response

[
  {
    "address": "DRrBeDp7zj6m7VPEDsdfr7zbBQNhUkESAs",
    "txid": "323abc5fc7117400aded604fab9cdd46b5a3f9b4b6e0f686e27969c96d237d0a",
    "outputIndex": 1,
    "script": "76a914e327d468d3821ba3991c23ad1713908b65f42ca588ac",
    "satoshis": 1800150000000,
    "height": 604704
  },
  {
    "address": "DRrBeDp7zj6m7VPEDsdfr7zbBQNhUkESAs",
    "txid": "9a4b1f5d1103c9dfd546c17fa3fab58e1239908f2d4c2eec0c2cb60f076c18eb",
    "outputIndex": 1,
    "script": "76a914e327d468d3821ba3991c23ad1713908b65f42ca588ac",
    "satoshis": 1729600000000,
    "height": 604655
  },
  {
    "address": "DRrBeDp7zj6m7VPEDsdfr7zbBQNhUkESAs",
    "txid": "5409b7e5bff290e889c6e20dffb57ca596729f36d15adc596f958584a8162b00",
    "outputIndex": 1,
    "script": "76a914e327d468d3821ba3991c23ad1713908b65f42ca588ac",
    "satoshis": 1136800000000,
    "height": 604647
  },
  {
    "address": "DRrBeDp7zj6m7VPEDsdfr7zbBQNhUkESAs",
    "txid": "82dd931a17eaaa36f6910aebe667afc4e750abc2a7a181e0cf4e0993dd45b55b",
    "outputIndex": 1,
    "script": "76a914e327d468d3821ba3991c23ad1713908b65f42ca588ac",
    "satoshis": 1045600000000,
    "height": 604635
  }
]



List masternodes

Definition

[GET] /masternodes/

Example request

[GET] /masternodes/

Example response

[
  {
    "network": "ipv4",
    "txhash": "13e66ccb958c31917cf81a199ef50ea5b0ebdfa99173b09fc2e33ac5570f6413",
    "outidx": 0,
    "status": "ENABLED",
    "addr": "DKjRT4bcTo3aKjSSLGYGeiS2c53Hco3DMW",
    "version": 70915,
    "lastseen": 1574638236,
    "activetime": 1850606,
    "lastpaid": 1574634837,
    "tier": "GOLD"
  },
  {
    "network": "ipv4",
    "txhash": "536172a14e9030065cc3b82504a54f5dad91173c39dd925c99c9fc70c01db20d",
    "outidx": 1,
    "status": "ENABLED",
    "addr": "DKaVRLHMA342wFU2WUJLsokxiVwawkP5Yr",
    "version": 70915,
    "lastseen": 1574638234,
    "activetime": 2414257,
    "lastpaid": 0,
    "tier": "COPPER"
  },
  {
    "network": "ipv4",
    "txhash": "a69814b33ab67c6188be9860a426bd4df71f9222bac0bca8116e8cc8666f317b",
    "outidx": 1,
    "status": "ENABLED",
    "addr": "DUSRVTE25F4uBcXwUWKu8mfPZ9vNKL1fte",
    "version": 70915,
    "lastseen": 1574638279,
    "activetime": 6562391,
    "lastpaid": 0,
    "tier": "COPPER"
  }
]



Masternode

Definition

[GET] /masternodes/:address

Params

Example request

[GET] /masternodes/DKjRT4bcTo3aKjSSLGYGeiS2c53Hco3DMW

Example response

{
  "network": "ipv4",
  "txhash": "13e66ccb958c31917cf81a199ef50ea5b0ebdfa99173b09fc2e33ac5570f6413",
  "outidx": 0,
  "status": "ENABLED",
  "addr": "DKjRT4bcTo3aKjSSLGYGeiS2c53Hco3DMW",
  "version": 70915,
  "lastseen": 1574638236,
  "activetime": 1850606,
  "lastpaid": 1574638442,
  "tier": "GOLD"
}



Latest blocks

Definition

[GET] /blocks/

Example request

[GET] /blocks/

Example response

[
  {
    "hash": "c8c0814d188d2601c466955efdd50346db968fb336d483b462003487bdee7f2a",
    "height": 603442,
    "size": 480,
    "time": 1574638616
  },
  {
    "hash": "b535d15daae225f2ef656ec91cb17e259d134ac0e6e3b18663b9a74d19034ed3",
    "height": 603441,
    "size": 480,
    "time": 1574638602
  },
  {
    "hash": "9e01d1331282797cf0055ca6f19e8f2839178dcac9f25a88265a7ca17c1e351c",
    "height": 603440,
    "size": 513,
    "time": 1574638581
  },
  {
    "hash": "e02c7e4d9a00a6624e9ff6e977e403b3ddbe38eccfe6b8e2e0d449e5e2aacf88",
    "height": 603439,
    "size": 513,
    "time": 1574638532
  },
  {
    "hash": "63eb56883c0a94f7fe927bb8406c88b2efec871ce4358b2f8a667b1bfd248344",
    "height": 603438,
    "size": 479,
    "time": 1574638471
  }
]



Block

Definition

[GET] /blocks/:block

Params

Example request

[GET] /blocks/9e01d1331282797cf0055ca6f19e8f2839178dcac9f25a88265a7ca17c1e351c

or

[GET] /blocks/603440

Example response

{
  "hash": "9e01d1331282797cf0055ca6f19e8f2839178dcac9f25a88265a7ca17c1e351c",
  "confirmations": 10,
  "size": 513,
  "height": 603440,
  "version": 4,
  "merkleroot": "92dde15b357c9805ca6260b2d1bddf316beaed2c7ff57dfb6e43c55b01d7664c",
  "acc_checkpoint": "0000000000000000000000000000000000000000000000000000000000000000",
  "tx": [
    "3d8aee8af148a518b810e2a538a2cef98d55925efdc0220942ff2edeed036caf",
    "d32232cc654f8f0d7cc3e84aab0bb6e43efb75780cfb560f50d4da8fac0ba845"
  ],
  "time": 1574638581,
  "nonce": 0,
  "bits": "1b094695",
  "difficulty": 7065.2265448,
  "chainwork": "000000000000000000000000000000000000000000000000761c740352767b40",
  "previousblockhash": "e02c7e4d9a00a6624e9ff6e977e403b3ddbe38eccfe6b8e2e0d449e5e2aacf88",
  "nextblockhash": "b535d15daae225f2ef656ec91cb17e259d134ac0e6e3b18663b9a74d19034ed3",
  "moneysupply": 1368620994.3453326
}



Price

Definition

[GET] /price

Example request

[GET] /price

Example response

{
  "ticker": "DIVI",
  "name": "Divi",
  "rank": 141,
  "totalSupply": 1674930004.61936,
  "quotes": {
    "BTC": {
      "price": 0.0000014328404710786045,
      "marketCap": 2399.907496842493,
      "volume": 15.590765888263917,
      "change": {
        "1h": -1.03594327,
        "24h": -0.28260764,
        "7d": 1.46814186
      },
      "lastUpdated": "2020-05-13T20:46:35.000Z"
    },
    "USD": {
      "price": 0.0131852097643,
      "marketCap": 22084303.45142623,
      "volume": 143468.531753648,
      "change": {
        "1h": 0.109536,
        "24h": 3.7795,
        "7d": 0.577765
      },
      "lastUpdated": "2020-05-13T20:46:11.000Z"
    }
  }
}



Add node

Definition

[GET] /addnode

Example request

[GET] /addnode

Example response

addnode=144.202.3.95
addnode=157.245.167.98
addnode=167.99.236.169
addnode=206.189.21.184
addnode=62.75.217.32
addnode=188.68.35.116
addnode=47.115.122.142
addnode=68.183.232.145
addnode=104.156.245.48
addnode=165.22.200.83
addnode=64.225.69.43
addnode=192.99.166.221
addnode=139.59.39.29
addnode=188.166.9.179
addnode=134.209.207.116
addnode=134.209.82.197
addnode=134.209.89.213
addnode=134.209.91.22
addnode=128.199.56.244
addnode=68.183.13.215
addnode=142.93.140.187
addnode=209.97.161.138
addnode=167.71.78.104
addnode=167.71.70.28
addnode=167.71.66.173
addnode=51.68.196.235
addnode=167.71.75.221
addnode=165.22.207.188
addnode=128.199.57.140
addnode=68.183.2.100
addnode=167.71.14.183
addnode=167.71.74.210
addnode=128.199.39.120
addnode=134.209.88.245
addnode=142.93.131.117
addnode=178.128.253.203
addnode=167.71.78.165
addnode=167.99.80.91
addnode=157.245.65.37
addnode=167.172.223.223
addnode=128.199.213.132
addnode=51.79.74.163
addnode=206.189.76.241
addnode=64.227.35.223
addnode=157.245.64.205
addnode=104.156.245.48
addnode=68.183.3.134
addnode=167.172.34.164
addnode=167.71.66.220
addnode=167.71.75.160
addnode=167.71.71.92
addnode=157.245.76.245
addnode=178.62.210.78
addnode=167.172.41.64
addnode=167.172.37.22
addnode=178.62.253.118
addnode=167.71.2.189
addnode=128.199.44.67
addnode=165.22.250.140
addnode=134.209.95.241
addnode=193.87.75.148
addnode=134.209.176.114
addnode=165.22.200.195
addnode=68.183.13.243
addnode=167.71.12.210
addnode=91.134.187.150
addnode=178.62.210.160
addnode=128.199.60.160
addnode=157.245.225.143
addnode=134.209.92.38
addnode=142.93.131.19
addnode=134.122.99.115
addnode=138.68.22.109
addnode=165.22.194.59
addnode=167.71.220.205
addnode=104.248.95.34
addnode=104.248.135.16
addnode=139.59.13.21
addnode=142.93.237.231
addnode=145.239.3.140
addnode=178.62.204.217
addnode=178.128.113.128
addnode=24.94.190.90
addnode=70.181.144.99
addnode=178.128.212.141
addnode=178.128.253.58
addnode=62.138.22.176