BitShares Forum

Main => General Discussion => Topic started by: botfund on October 09, 2015, 01:41:06 am

Title: Lacking cancel_order in wallet_api?
Post by: botfund 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 (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.
Title: Re: Lacking cancel_order in wallet_api?
Post by: botfund 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