BitShares Forum

Main => General Discussion => Topic started by: alt on April 29, 2015, 06:09:02 am

Title: how to get the send address?
Post by: alt on April 29, 2015, 06:09:02 am
I get a transaction from UNKNOWN, how can I return money to him?
Code: [Select]
{u'block_num': 2405006,
 u'created_time': u'2015-04-29T05:27:40',
 u'extra_addresses': [],
 u'fee': {u'amount': 50000, u'asset_id': 0},
 u'index': 371,
 u'is_confirmed': True,
 u'is_market': False,
 u'is_virtual': False,
 u'ledger_entries': [{u'amount': {u'amount': 1000000, u'asset_id': 359},
                      u'from_account': None,
                      u'memo': u'',
                      u'memo_from_account': None,
                      u'to_account': u'BTS6AwgEDxjpedzuvicV8jUn9yz8yUpmxobXDNzGJG8fR5GsA7fYt'}],
 u'received_time': u'2015-04-29T05:27:40',
 u'record_id': u'71fac9cadafc4054601b854224543f5645bb55f8',
 u'trx': {u'expiration': u'2015-04-29T06:34:53',
          u'operations': [{u'data': {u'amount': 1000000,
                                     u'balance_id': u'BTSMuo3zkLDEqUJJdDstQByf9nUkgxWXqdHQ',
                                     u'claim_input_data': u''},
                           u'type': u'withdraw_op_type'},
                          {u'data': {u'amount': 50000,
                                     u'balance_id': u'BTSQJeXgzagpmZKNy2jmoZApJMenjyUZXqjf',
                                     u'claim_input_data': u''},
                           u'type': u'withdraw_op_type'},
                          {u'data': {u'amount': 1000000,
                                     u'condition': {u'asset_id': 359,
                                                    u'data': {u'memo': None,
                                                              u'owner': u'BTS6wJym2gbfkgJSe8AZe6M8xy9c52bxKddJ'},
                                                    u'slate_id': 0,
                                                    u'type': u'withdraw_signature_type'}},
                           u'type': u'deposit_op_type'}],
          u'reserved': None,
Title: Re: how to get the send address?
Post by: xeroc on April 29, 2015, 06:58:33 am
In the transaction there is a "withdraw_type" operation .. in there there is a balanceID (this is NOT an address) .. but you can get the owner key for that balanceid via
Code: [Select]
blockchain_get_balance <balanceid>
the "owner" address is stated in there .. you should be safe just sending the funds back there ..

remark: DO NOT SEND FUNDS TO A BALANCE ID!!!
Title: Re: how to get the send address?
Post by: alt on April 29, 2015, 07:14:25 am
In the transaction there is a "withdraw_type" operation .. in there there is a balanceID (this is NOT an address) .. but you can get the owner key for that balanceid via
Code: [Select]
blockchain_get_balance <balanceid>
the "owner" address is stated in there .. you should be safe just sending the funds back there ..

remark: DO NOT SEND FUNDS TO A BALANCE ID!!!
thanks, I have connect to the sender,

he said he  sent with client v0.9
he see cny.transwiser is unregister, and he still sent,
and see the trx history, the receiver is UNKNOWN.
he's client is synced ok.

from my client, I saw the send is UNKNOWN

something must wrong .

Title: Re: how to get the send address?
Post by: xeroc on April 29, 2015, 08:14:23 am
ehm .. I don't understand ... how can you send to an unregistered id? Did he have a local 'contact' for transwiser?