Open zyuhel opened 5 years ago
/api/chatrooms
response./api/chatrooms/...
response the last transaction details should be moved to a nested property:
{
lastTransaction: {
id: ...,
type: ....
},
participants: [...]
}
withPayments
param is not clear: does it rely on type
or amount > 0
?withPayments
? Transfers are the first class citizens in the chats now, so I can hardly imagine uses cases when withPayments
needs to be false
.
orderBy
- order by field, same as in transaction list API, by default = timestamp:desc&
The responses received from these endpoints are not equal:
/api/chatrooms/U123456
/api/chatrooms/U123456?orderBy=timestamp:desc
Missing property height
.
/api/chatrooms/U111111/U222222
- ok
/api/chatrooms/U111111
- no height
Still not clear what withPayments
or withoutPayments
does.
Payments means ADM transfers (type 0
), or messages with rich text of ETH/DOGE/etc (type 8
).
I think public KVS records of participants (as public ETH and DOGE addresses) should also be returned with some kind of parameter like fetchKVS
. It will help to make transaction lists with names (user friendly).
limit
— limit field, same as in transactions list API, default HUI_HUI
I think default should be 25
.
Here will go discussion regarding Chatrooms aip