Defcoin Mempool support added

Defcoin Mempool support added

Mempool ingestion and pre-processing action assessment has been activated for the Defcoin currency. This allows developers to see potential pending actions including registration/sync actions, item purchases, and even attacks.

The actions visible by the /mempool endpoint are only estimates, no payouts or inventory changes occur based on these transactions until they are subsequently found in a confirmed block.

The Defcoin mempool will update every 30 seconds, using the snapshot found within our Defcoin-QT node. The mempool may not know all transactions across the network and should not be considered as an exact replica of actions to be processed.

Example
// Mempool (GET https://api.coindroids.com/mempool)

jQuery.ajax({
    url: "https://api.coindroids.com/mempool",
    type: "GET",
    data: {
        "currency_id": "2", // Defcoin = 2
    },
})
.done(function(data, textStatus, jqXHR) {
    console.log("HTTP Request Succeeded: " + jqXHR.status);
    console.log(data);
})
.fail(function(jqXHR, textStatus, errorThrown) {
    console.log("HTTP Request Failed");
})
.always(function() {
    /* ... */
});


Response

[
  {
    "txid": "fdc32d33598142df70e5119d3a5cd67b66e5aaf112661d69d1328df0cfa4d4a5",
    "tx_vout": 0,
    "action_type": "Item Purchase",
    "currency_id": 2,
    "involved_droids": [
      1
    ],
    "player_id": 1,
    "player_username": "Abstrct",
    "droid_id": 7,
    "droid_name": "Cmdr",
    "actor": {
      "id": 7,
      "name": "Cmdr",
      "avatar_links": [
        "img.jpg",
        "img.png"
      ]
    },
    "target": {
      "id": 30,
      "name": "Health Pack 10",
      "avatar_links": [
        ""
      ]
    },
    "value": 10000,
    "timestamp": "2017-07-25T16:28:33.87787+00:00"
  }
]

The /mempool endpoint is not currently utilized in the front-end of Coindroids.