Author Topic: Lacking cancel_order in wallet_api?  (Read 463 times)

0 Members and 1 Guest are viewing this topic.

Offline botfund

  • Full Member
  • ***
  • Posts: 174
    • View Profile
  • BitShares: botfund
Lacking cancel_order in wallet_api?
« on: October 09, 2015, 01:41:06 am »
I didn't find cancel_order in wallet_api whereas I found signed_transaction cancel_order(object_id_type order_id, bool broadcast = false) in https://github.com/cryptonomex/graphene/blob/master/libraries/wallet/wallet.cpp.

Is it intentional or will be added later? I noticed web wallet has this ability using js libraries.

Offline botfund

  • Full Member
  • ***
  • Posts: 174
    • View Profile
  • BitShares: botfund
Re: Lacking cancel_order in wallet_api?
« Reply #1 on: October 09, 2015, 02:36:44 am »
Well, I figured it out by using below in wallet_cli:

begin_builder_transaction
add_operation_to_builder_transaction 0 [2,{"fee":{"amount":0,"asset_id":"1.3.0"},"fee_paying_account":"1.2.xxxxxx","order":"1.7.xxxxxx"}]
sign_builder_transaction 0 true