API Documentation

Path:

/api/v2/getBlocksForged/:delegatePublicKey/:year/csv

Returns:

Returns as a CSV formatted for cointracking.info. Remove "USD" column before importing.

All times are UTC and can be manually updated to US timezones using Excel formulas.

"Type","USD",Buy","Cur.","Sell","Cur.","Fee","Cur.","Exchange","Group","Comment","Date"
"Mining","20.02",2.10000000,"ARK",,,,,,,"Forged Block","2017-10-26 2:07:04+00:00"

Path:

/api/v2/getOutgoingTransactions/:senderPublicKey

Returns:

Returns all outgoing transactions for a given Ark address along with their timestamp and market price in USD (using that day's closing price). Ark is shown in integer format. Time shown in Unix timestamp (UTC).

Just a side note, the start/end dates are padded with an extra 24 hours to account for timezone differences. Dates stored in the DB are in UTC, so you'll need to offset by your timezone and trim off dates you don't want to use.

{
    "data": [
      {
          "amount": "96503951",
          "fee": "10000000",
          "marketPrice": "7.30",
          "dateTime": "2018-01-01 21:08:02+00:00",
          "vendorField": "Payout from arkmoon",
          "timestamp": 1514840882
      },
    ],
    "status": "success"
}

No transactions found with that senderPublicKey. Returns "failure" status.

{
    "data": [],
    "status": "failure"
}

Path:

/api/v2/getOutgoingTransactions/:senderPublicKey/csv

Returns:

Same as above, but returns as a CSV formatted for cointracking.info import. Remove "USD" column before importing.

All times are UTC.

"Type","USD","Buy","Cur.","Sell","Cur.","Fee","Cur.","Exchange","Group","Comment","Date"
"Gift",1863.72,,,266.62728087,ARK,0.10000000,ARK,,,"Payout from arkmoon","2017-12-31 0:48:02+00:00"

Path:

/api/v2/getIncomingTransactions/:recipientId

Returns:

Returns all incoming transactions for a given Ark address along with their timestamp and market price in USD (using that day's closing price). Ark is shown in integer format. Time shown in Unix timestamp (UTC).

Just a side note, the start/end dates are padded with an extra 24 hours to account for timezone differences. Dates stored in the DB are in UTC, so you'll need to offset by your timezone and trim off dates you don't want to use.

{
    "data": [
      {
          "amount": "96503951",
          "fee": "10000000",
          "marketPrice": "7.30",
          "dateTime": "2018-01-01 21:08:02+00:00",
          "vendorField": "Payout from arkmoon",
          "timestamp": 1514840882
      },
    ],
    "status": "success"
}

No transactions found with that recipientId. Returns "failure" status.

{
    "data": [],
    "status": "failure"
}

Path:

/api/v2/getIncomingTransactions/:recipientId/csv

Returns:

Same as above, but returns as a CSV formatted for cointracking.info import. Remove "USD" column before importing.

All times are UTC.

"Type","USD","Buy","Cur.","Sell","Cur.","Fee","Cur.","Exchange","Group","Comment","Date"
"Gift",1863.72,,,266.62728087,ARK,0.10000000,ARK,,,"Payout from arkmoon","2017-12-31 0:48:02+00:00"