stellar-deprecated / stellard

INACTIVE. Server in the Stellar network. Maintains the distributed ledger. Introduces and validates transactions. This repo is not in active development, it is being replaced by stellar-core.
Other
271 stars 60 forks source link

tx method lacks date field #140

Closed mpj closed 9 years ago

mpj commented 9 years ago

The response from the tx endpoint does not contain a date field. I expect that it should, but there might be some reason for it not to. Starting this issue to get clarity.

Made the following request to https://live.stellar.org:9002 a few minutes ago: Request:

{
      "method": "tx",
      "params": [
        {
                "transaction": "6A7DEC5081C93CAA44AE2FD737D6D9AED4E06DC274131071FBBE264A0B4A7671"
        }
      ]
    }

Response:

{
    "result": {
      "Account": "gGWyX658pKeAsEre2WCuwa6kSuNi7v7saZ",
      "Amount": "18000000",
      "Destination": "gUrUn9DrX9vsAgnijuQq96BfyBZVYkLRcU",
      "DestinationTag": 758904178,
      "Fee": "12",
      "Flags": 2147483648,
      "Sequence": 279,
      "SigningPubKey": "94E11C798E4FE283F805D7558489382B32960DE4E641470F1C887472366FA82F",
      "TransactionType": "Payment",
      "TxnSignature": "510085C49F7333E73AF16678DB56FF5AB30E2357826CC931952C4BE45CE702CA13806F52055145E40A30C59072620A3B3C0EAAA4421D51F3A69FC9D2F5ADB403",
      "hash": "6A7DEC5081C93CAA44AE2FD737D6D9AED4E06DC274131071FBBE264A0B4A7671",
      "inLedger": 1425925,
      "ledger_index": 1425925,
      "meta": {
        "AffectedNodes": [
          {
            "ModifiedNode": {
              "FinalFields": {
                "Account": "gGWyX658pKeAsEre2WCuwa6kSuNi7v7saZ",
                "Balance": "40196628",
                "Flags": 0,
                "InflationDest": "g4eRqgZfzfj3132y17iaf2fp6HQj1gofjt",
                "OwnerCount": 0,
                "Sequence": 280
              },
              "LedgerEntryType": "AccountRoot",
              "LedgerIndex": "44FE0AAA32218A741F4232D61AF276ABF0858EED23A027AC469246C9A8DCFDB0",
              "PreviousFields": {
                "Balance": "58196640",
                "Sequence": 279
              },
              "PreviousTxnID": "12E86D977EDBCCA26BE226E1F3B38EACEC60ABA1412A97E7C658E54D8B4C1BA5",
              "PreviousTxnLgrSeq": 1425923
            }
          },
          {
            "ModifiedNode": {
              "FinalFields": {
                "Account": "gUrUn9DrX9vsAgnijuQq96BfyBZVYkLRcU",
                "Balance": "1249937405712",
                "Flags": 0,
                "InflationDest": "gKYjV5dtzYkEUzT4d158cvWkGD6E4e1ANk",
                "OwnerCount": 0,
                "Sequence": 243942
              },
              "LedgerEntryType": "AccountRoot",
              "LedgerIndex": "B031CE94A6DCEA9EA0D6B5A0497AB79C99526D15B0B6192A040970E16550AFEC",
              "PreviousFields": {
                "Balance": "1249919405712"
              },
              "PreviousTxnID": "447571F6A0562C5142607AAA8F2D022F30ABDE874DBCA447BDB1363C9C366AF8",
              "PreviousTxnLgrSeq": 1425925
            }
          }
        ],
        "TransactionIndex": 3,
        "TransactionResult": "tesSUCCESS"
      },
      "status": "success",
      "validated": true
    }
  }
jedmccaleb commented 9 years ago

No it doesn't have a date. Currently you would have to look up the ledger it occurred in and use that date.