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

Adding epoch information in the get-smart-contract-token-chain-data API response #280

Merged
merged 2 commits into from
Jan 6, 2025

Conversation

KryptSai
Copy link
Contributor

@KryptSai KryptSai commented Jan 2, 2025

Closes #279

This PR enhances the /api/get-smart-contract-token-chain-data API by including the epoch timestamp in its response.

{
  "status": true,
  "message": "Fetched latest block smart contract data",
  "result": null,
  "SCTDataReply": [
    {
      "BlockNo": 1,
      "BlockId": "1-ff4c752fe1d265a8ed53b74baa1ae2c0074b4bfa108eb2d1d4f4c514973ba940",
      "SmartContractData": "{\"Type\":0,\"PrivPWD\":\"mypassword\",\"img_file\":\"/home/rubix/Sai-Rubix/rubixgoplatform/linux/image.png\"}",
      "Epoch": 1735808514
    }
  ]
}

core/diagnostic.go Outdated Show resolved Hide resolved
core/model/diagnostic.go Outdated Show resolved Hide resolved
@KryptSai KryptSai requested a review from arnabghose997 January 3, 2025 10:38
Copy link
Collaborator

@arnabghose997 arnabghose997 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@arnabghose997 arnabghose997 merged commit a211f24 into development Jan 6, 2025
2 of 3 checks passed
@arnabghose997 arnabghose997 deleted the sai/adding-epoch-get-scdata branch January 6, 2025 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding epoch information in the /api/get-smart-contract-token-chain-data API response
3 participants