transaction fields have incosistent names
Closed this issue · 1 comments
PawelPodkalicki commented
Transaction send_one
and send_many
in get_messsage
response have incosistent names.
Sender has fields node
, user
, sender_address
.
Recipent has fields destination_node
, destination_user
, target_address
.
Prefix destination_
and target_
should be unified. Please, also consider, if all data is needed - (node and user is redundant, if address is provided).
{
"id": "0001:00000003:0002",
"type": "send_one",
"node": "1",
"user": "0",
"msg_id": "2",
"time": "1531475677",
"destination_node": "1",
"destination_user": "1",
"sender_fee": "0.00000010000",
"sender_address": "0001-00000000-9B6F",
"target_address": "0001-00000001-8B4E",
"amount": "0.00000000001",
"message": "0000000000000000000000000000000000000000000000000000000000000000",
"signature": "021E38E2036038C5482B345538A0F319C05A2DBFDE11B7B6060C80093D02836ED83CBA7C002BA5D659B347ECDEE58ADE9792F7D2A76C53AF2429182C64B5C906",
"size": "125"
}
{
"id": "0001:00000003:0003",
"type": "send_many",
"node": "1",
"user": "0",
"sender_address": "0001-00000000-9B6F",
"msg_id": "3",
"time": "1531475683",
"transactions_conuter": "2",
"sender_fee": "0.10000000000",
"transactions": [{
"destination_node": "1",
"destination_user": "1",
"target_address": "0001-00000001-8B4E",
"amount": "100.00000000000"
}, {
"destination_node": "1",
"destination_user": "2",
"target_address": "0001-00000002-BB2D",
"amount": "100.00000000000"
}
],
"signature": "74932FF469F9C4C8CAA2811967F6B1C8DFDEA0F69D4B25C234BC5C141F96625CE50D8450FBA260B0A1242DFA2BD2D0517B996F0572C932FE39483702CBA60B02",
"size": "109"
}
PawelPodkalicki commented
destination_
was unified to target_