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

0 Members and 1 Guest are viewing this topic.

Offline botfund

  • Full Member
  • ***
  • Posts: 174
    • View Profile
  • BitShares: botfund
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

Offline botfund

  • Full Member
  • ***
  • Posts: 174
    • View Profile
  • BitShares: botfund
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.