Litecoin Mempool support added

Litecoin Mempool support added

Mempool ingestion and pre-processing action assessment has been activated for the Litecoin 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 Litecoin mempool will update every 30 seconds, using the snapshot found within our Litecoin Core 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": "4", // Litecoin = 4
    },
})
.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": "d975668b75106dd58df62c8acd673e0022ddd6861fba134eadcdbea9366420b5",
    "tx_vout": 1,
    "action_type": "Attack",
    "currency_id": 4,
    "involved_droids": [
      17,
      36
    ],
    "player_id": 1,
    "player_username": "Abstrct",
    "droid_id": 17,
    "droid_name": "Cmdr",
    "actor": {
      "id": 17,
      "name": "Cmdr",
    },
    "target": {
      "id": 36,
      "name": "coblee",
    },
    "value": 1215000,
    "timestamp": "2017-04-07T15:26:29.189017+00:00"
  }
]

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