Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token modified_timestamp not returned correctly when the token is deleted #10406

Open
bilyana-gospodinova opened this issue Feb 17, 2025 · 0 comments · May be fixed by #10440
Open

Token modified_timestamp not returned correctly when the token is deleted #10406

bilyana-gospodinova opened this issue Feb 17, 2025 · 0 comments · May be fixed by #10440
Assignees
Labels
bug Type: Something isn't working rest Area: REST API
Milestone

Comments

@bilyana-gospodinova
Copy link
Contributor

Description

The REST endpoint /tokens/{tokenId} is queried. When a token is deleted, the deleted flag is returned correctly but the modified_timestamp field in the response does not reflect when the token was actually deleted (which was the last action for the token).

Steps to reproduce

Example:
Testnet, /tokens/0.0.5510676

Response:

{
  ...
  "created_timestamp": "1739491260.622885000",
  ...
  "deleted": true,
  ...
  "modified_timestamp": "1739491260.622885000",
  ...
  "token_id": "0.0.5510676",
 ...
}

When we fetch all transactions for this token via /tokens/0.0.5510676/nfts/1/transactions
Response:

{
  "transactions": [
    {
      "consensus_timestamp": "1739491263.081180149",
      "nonce": 0,
      "transaction_id": "0.0.1532-1739491250-657063084",
      "type": "TOKENMINT",
      "is_approval": false,
      "receiver_account_id": "0.0.5510675",
      "sender_account_id": null
    },
    {
      "consensus_timestamp": "1739491265.455047574",
      "nonce": 0,
      "transaction_id": "0.0.1532-1739491252-155042006",
      "type": "TOKENDELETION",
      "is_approval": false,
      "receiver_account_id": null,
      "sender_account_id": null
    }
  ],
  "links": {
    "next": null
  }
}

The token was created in block 15730790, minted in 15730791 and deleted in 15730792. The modified_timestamp shows only the creation timestamp.

Additional context

No response

Hedera network

No response

Version

v0.123.0

Operating system

None

@bilyana-gospodinova bilyana-gospodinova added bug Type: Something isn't working rest Area: REST API labels Feb 17, 2025
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Mirror Node Feb 17, 2025
@steven-sheehy steven-sheehy moved this from 📋 Backlog to 🏃‍♀ Sprint backlog in Mirror Node Feb 17, 2025
@steven-sheehy steven-sheehy added this to the 0.125.0 milestone Feb 17, 2025
@edwin-greene edwin-greene self-assigned this Feb 19, 2025
@edwin-greene edwin-greene moved this from 🏃‍♀ Sprint backlog to 👷 In progress in Mirror Node Feb 19, 2025
@edwin-greene edwin-greene moved this from 👷 In progress to 👀 In review in Mirror Node Feb 20, 2025
@rbarker-dev rbarker-dev moved this to 👷 In progress in Mirror Node Test - DO NOT USE Feb 20, 2025
@steven-sheehy steven-sheehy moved this from 👷 In progress to 👀 In review in Mirror Node Test - DO NOT USE Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type: Something isn't working rest Area: REST API
Projects
Status: 👀 In review
Development

Successfully merging a pull request may close this issue.

3 participants