You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type represents the type of whole short form whereas txType represents literally the type of tx such short form contains. It is one of the following:
"pocketnetteam"
"money"
"referal"
"answer"
"comment"
"subscriber"
"commentscore"
"contentscore"
"privatecontent"
"boost"
"repost"
txData and relatedContent follows the structure below.
{
hash,
txType,
?address, # address of tx creator
?blockNum, # number of tx in block
?height,
?account, # short form of the account, see below
?value, # any number related to tx, e.x. comment score, transferred money, etc
?desctiption # caption or first few lines of content
}
Short form Account Structure:
{
avatar,
name,
badge,
reputation
}
The reason why the most fields are optional is to optimize amount of data transferred to clients. E.x. address is optional because if client is asking for all events for a certain address, all relatedContent will have address the same as requested one so it is unnecessary to send it back to client. Probably the good idea will be to allow client to specify which fields it really needs so node can generalize the behavior of constructing such structures.
Account:
Content:
The text was updated successfully, but these errors were encountered: