Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

RPC endpoint should accept and return block and transaction in JSON format #6634

Closed
shuse2 opened this issue Aug 6, 2021 · 1 comment
Closed

Comments

@shuse2
Copy link
Collaborator

shuse2 commented Aug 6, 2021

Description

Update block and transaction to be returned as JSON format for the fixed part.
Keep header.assets[].data or transaction.params to be encoded so that endpoint remains generic to any modules.

Motivation

Fixed part of the block and transaction can be returned in JSON format.
For example,

{
  "id": "0e4ffc051b353926102eea29ebc4f90c068e81fec380ed7d09f5ebc9ac853ead",
  "senderPublicKey": "7c74abbcf4e52893fc0d785c0d270758210398483bd2ef33343ac4e67d6ae61a",
  "nonce": "23",
  "fee": 100000000",
  "moduleID": 2,
  "commandID": 0,
  params: "3e63d6cf859a64fbd64a"
}

This will allow to read the output at least for the fixed part.

@shuse2
Copy link
Collaborator Author

shuse2 commented Jul 4, 2022

This is already resolved in #6947

@shuse2 shuse2 closed this as completed Jul 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant