Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

rpc call wallet_get_pretty_transaction call failed and why do we need this api? #489

Closed
hackfisher opened this issue Jul 11, 2014 · 2 comments
Assignees

Comments

@hackfisher
Copy link
Contributor

https://bitsharestalk.org/index.php?topic=5551.0

so, i tried 
$r = $rpc->wallet_get_pretty_transaction($tx);
and 
$r = $rpc->wallet_get_pretty_transaction(json_encode($tx));
both failed

i find signed_transaction structure in transaction.hpp
Code: [Select]
struct signed_transaction : public transaction
   {
      transaction_id_type                     id()const;
      size_t                                  data_size()const;
      void                                    sign( const fc::ecc::private_key& signer, const digest_type& chain_id );

      vector<fc::ecc::compact_signature> signatures;
   };
and i am coufused, beacuse i counldn't find transaction_id_type in the result of wallet_transfer

can any one help me with this problem please?how to get tx id from the result of wallet_transfer?
@bytemaster
Copy link
Contributor

I think we may need to return a pair<id, trx> rather than just the trx object.

@vikramrajkumar vikramrajkumar self-assigned this Jul 12, 2014
@vikramrajkumar
Copy link
Contributor

Command removed for now: 23cd035...b5c782b

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants