BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
wallet.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 Cryptonomex, Inc., and contributors.
3  *
4  * The MIT License
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
7  * of this software and associated documentation files (the "Software"), to deal
8  * in the Software without restriction, including without limitation the rights
9  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10  * copies of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in
14  * all copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22  * THE SOFTWARE.
23  */
24 #pragma once
25 
26 #include <fc/optional.hpp>
28 #include <graphene/app/api.hpp>
30 #include "wallet_structs.hpp"
31 
32 namespace fc
33 {
34  void to_variant( const account_multi_index_type& accts, variant& vo, uint32_t max_depth );
35  void from_variant( const variant &var, account_multi_index_type &vo, uint32_t max_depth );
36 }
37 
38 namespace graphene { namespace wallet {
39 
44 object* create_object( const variant& v );
45 
51 {
52  public:
53  // Variables
54  fc::signal<void(bool)> lock_changed;
55  std::shared_ptr<detail::wallet_api_impl> my;
56 
57  // Methods
58  wallet_api( const wallet_data& initial_data, const fc::api<login_api>& rapi );
59  virtual ~wallet_api();
60 
61  bool copy_wallet_file( const string& destination_filename )const;
62 
63  fc::ecc::private_key derive_private_key( const string& prefix_string, uint32_t sequence_number ) const;
64 
69  variant info()const;
73  variant_object about() const;
78  optional<signed_block_with_info> get_block( uint32_t num )const;
82  uint64_t get_account_count()const;
88  vector<account_object> list_my_accounts()const;
101  map<string, account_id_type, std::less<>> list_accounts( const string& lowerbound, uint32_t limit )const;
109  vector<asset> list_account_balances( const string& account_name_or_id )const;
119  vector<extended_asset_object> list_assets( const string& lowerbound, uint32_t limit )const;
124  uint64_t get_asset_count()const;
125 
134  vector<operation_detail> get_account_history( const string& account_name_or_id, uint32_t limit )const;
135 
144  vector<operation_detail> get_relative_account_history( const string& account_name_or_id, uint32_t stop,
145  uint32_t limit, uint32_t start )const;
146 
156  full_account get_full_account( const string& name_or_id )const;
157 
167  vector<bucket_object> get_market_history( const string& symbol, const string& symbol2, uint32_t bucket,
168  const time_point_sec& start, const time_point_sec& end )const;
169 
188  vector<limit_order_object> get_account_limit_orders( const string& name_or_id,
189  const string& base,
190  const string& quote,
191  uint32_t limit = 101,
192  const optional<limit_order_id_type>& ostart_id = {},
193  const optional<price>& ostart_price = optional<price>() )const;
194 
202  vector<limit_order_object> get_limit_orders( const string& a, const string& b, uint32_t limit )const;
203 
210  vector<call_order_object> get_call_orders( const string& asset_symbol_or_id, uint32_t limit )const;
211 
218  vector<force_settlement_object> get_settle_orders( const string& a, uint32_t limit )const;
219 
227  vector<collateral_bid_object> get_collateral_bids( const string& asset_symbol_or_id, uint32_t limit = 100,
228  uint32_t start = 0 )const;
229 
238 
250  const flat_set<uint16_t>& operation_types,
251  uint32_t start, uint32_t limit )const;
252 
260 
266  account_object get_account( const string& account_name_or_id ) const;
267 
272  extended_asset_object get_asset( const string& asset_symbol_or_id ) const;
273 
280  asset_bitasset_data_object get_bitasset_data( const string& asset_symbol_or_id )const;
281 
287  optional<variant> get_htlc( const htlc_id_type& htlc_id ) const;
288 
293  account_id_type get_account_id( const string& account_name_or_id ) const;
294 
299  string get_account_name( const string& account_name_or_id ) const
300  { return get_account( account_name_or_id ).name; }
301 
307  asset_id_type get_asset_id( const string& asset_symbol_or_id ) const;
308 
314  string get_asset_symbol( const string& asset_symbol_or_id ) const
315  { return get_asset( asset_symbol_or_id ).symbol; }
316 
322  string get_asset_name( const string& asset_symbol_or_id ) const
323  { return get_asset_symbol( asset_symbol_or_id ); }
324 
336  variant get_object( const object_id_type& id ) const;
337 
345  string get_wallet_filename() const;
346 
353  string get_private_key( const public_key_type& pubkey )const;
354 
370  const operation& op )const;
380  uint32_t operation_index,
381  const operation& new_op )const;
391  const string& fee_asset = GRAPHENE_SYMBOL )const;
409  bool broadcast = true )const;
410 
421  const vector<public_key_type>& signing_keys = vector<public_key_type>(),
422  bool broadcast = true )const;
423 
428  pair<transaction_id_type,signed_transaction> broadcast_transaction( const signed_transaction& tx )const;
429 
448  const time_point_sec& expiration = time_point::now() + fc::minutes(1),
449  uint32_t review_period_seconds = 0,
450  bool broadcast = true
451  )const;
452 
469  const string& account_name_or_id,
470  const time_point_sec& expiration = time_point::now() + fc::minutes(1),
471  uint32_t review_period_seconds = 0,
472  bool broadcast = true
473  )const;
474 
482 
489  bool is_new()const;
490 
497  bool is_locked()const;
498 
502  void lock()const;
503 
515  void unlock( const string& password )const;
516 
528  void set_password( const string& password )const;
529 
536  map<public_key_type, string> dump_private_keys()const;
537 
545  string help()const;
546 
551  string gethelp( const string& method )const;
552 
566  bool load_wallet_file( const string& wallet_filename = "" )const;
567 
572  void quit()const;
573 
584  void save_wallet_file( const string& wallet_filename = "" )const;
585 
593  void set_wallet_filename( const string& wallet_filename )const;
594 
603 
616  vector<brain_key_info> derive_owner_keys_from_brain_key( const string& brain_key,
617  uint32_t number_of_desired_keys = 1 ) const;
618 
626  bool is_public_key_registered( const string& public_key ) const;
627 
633  string serialize_transaction( const signed_transaction& tx ) const;
634 
646  bool import_key( const string& account_name_or_id, const string& wif_key )const;
647 
655  map<string, bool, std::less<>> import_accounts( const string& filename, const string& password )const;
656 
668  bool import_account_keys( const string& filename, const string& password,
669  const string& src_account_name, const string& dest_account_name )const;
670 
679  vector< signed_transaction > import_balance( const string& account_name_or_id, const vector<string>& wif_keys,
680  bool broadcast )const;
681 
690  string normalize_brain_key( const string& s ) const;
691 
717  signed_transaction register_account( const string& name,
718  const public_key_type& owner,
719  const public_key_type& active,
720  const string& registrar_account,
721  const string& referrer_account,
722  uint32_t referrer_percent,
723  bool broadcast = false )const;
724 
733  signed_transaction upgrade_account( const string& account_name_or_id, bool broadcast )const;
734 
755  signed_transaction create_account_with_brain_key( const string& brain_key,
756  const string& account_name,
757  const string& registrar_account,
758  const string& referrer_account,
759  bool broadcast = false )const;
760 
773  signed_transaction transfer( const string& from,
774  const string& to,
775  const string& amount,
776  const string& asset_symbol_or_id,
777  const string& memo,
778  bool broadcast = false )const;
779 
793  pair<transaction_id_type,signed_transaction> transfer2( const string& from,
794  const string& to,
795  const string& amount,
796  const string& asset_symbol_or_id,
797  const string& memo ) const {
798  auto trx = transfer( from, to, amount, asset_symbol_or_id, memo, true );
799  return std::make_pair(trx.id(),trx);
800  }
801 
802 
808  transaction_id_type get_transaction_id( const signed_transaction& trx )const { return trx.id(); }
809 
810 
818  memo_data sign_memo( const string& from, const string& to, const string& memo )const;
819 
825  string read_memo( const memo_data& memo )const;
826 
827 
835  signed_message sign_message( const string& signer, const string& message )const;
836 
846  bool verify_message( const string& message, const string& account, int32_t block, const string& msg_time,
847  const fc::ecc::compact_signature& sig )const;
848 
854  bool verify_signed_message( const signed_message& message )const;
855 
861  bool verify_encapsulated_message( const string& message )const;
862 
864 
873  bool set_key_label( const public_key_type& key, const string& label )const;
874 
880  string get_key_label( const public_key_type& key )const;
881 
888  public_key_type create_blind_account( const string& label, const string& brain_key )const;
889 
897  vector<asset> get_blind_balances( const string& key_or_label )const;
902  map<string, public_key_type, std::less<>> get_blind_accounts()const;
907  map<string, public_key_type, std::less<>> get_my_blind_accounts()const;
913  public_key_type get_public_key( const string& label )const;
915 
921  vector<blind_receipt> blind_history( const string& key_or_account )const;
922 
934  blind_receipt receive_blind_transfer( const string& confirmation_receipt,
935  const string& opt_from,
936  const string& opt_memo )const;
937 
947  blind_confirmation transfer_to_blind( const string& from_account_name_or_id,
948  const string& asset_symbol_or_id,
949  const vector<pair<string, string>>& to_amounts,
950  bool broadcast = false )const;
951 
961  blind_confirmation transfer_from_blind( const string& from_blind_account_key_or_label,
962  const string& to_account_name_or_id,
963  const string& amount,
964  const string& asset_symbol_or_id,
965  bool broadcast = false )const;
966 
976  blind_confirmation blind_transfer( const string& from_key_or_label,
977  const string& to_key_or_label,
978  const string& amount,
979  const string& symbol_or_id,
980  bool broadcast = false )const;
981 
1022  signed_transaction sell_asset( const string& seller_account,
1023  const string& amount_to_sell,
1024  const string& symbol_or_id_to_sell,
1025  const string& min_to_receive,
1026  const string& symbol_or_id_to_receive,
1027  uint32_t timeout_sec = 0,
1028  bool fill_or_kill = false,
1029  bool broadcast = false )const;
1030 
1045  signed_transaction borrow_asset( const string& borrower, const string& amount_to_borrow,
1046  const string& asset_symbol_or_id,
1047  const string& amount_of_collateral, bool broadcast = false )const;
1048 
1064  signed_transaction borrow_asset_ext( const string& borrower, const string& amount_to_borrow,
1065  const string& asset_symbol_or_id,
1066  const string& amount_of_collateral,
1068  bool broadcast = false )const;
1069 
1076  signed_transaction cancel_order( const limit_order_id_type& order_id, bool broadcast = false ) const;
1077 
1100  signed_transaction create_asset( const string& issuer,
1101  const string& symbol,
1102  uint8_t precision,
1103  const asset_options& common,
1104  const optional<bitasset_options>& bitasset_opts,
1105  bool broadcast = false )const;
1106 
1116  signed_transaction issue_asset( const string& to_account, const string& amount,
1117  const string& symbol_or_id,
1118  const string& memo,
1119  bool broadcast = false )const;
1120 
1137  signed_transaction update_asset( const string& symbol_or_id,
1138  const optional<string>& new_issuer,
1139  const asset_options& new_options,
1140  bool broadcast = false )const;
1141 
1153  signed_transaction update_asset_issuer( const string& symbol_or_id,
1154  const string& new_issuer,
1155  bool broadcast = false )const;
1156 
1170  signed_transaction update_bitasset( const string& symbol_or_id,
1171  const bitasset_options& new_options,
1172  bool broadcast = false )const;
1173 
1185  signed_transaction update_asset_feed_producers( const string& symbol_or_id,
1186  const flat_set<string>& new_feed_producers,
1187  bool broadcast = false )const;
1188 
1211  signed_transaction publish_asset_feed( const string& publishing_account,
1212  const string& symbol_or_id,
1213  const price_feed& feed,
1214  bool broadcast = false )const;
1215 
1230  signed_transaction fund_asset_fee_pool( const string& from,
1231  const string& symbol_or_id,
1232  const string& amount,
1233  bool broadcast = false )const;
1234 
1248  signed_transaction claim_asset_fee_pool( const string& symbol_or_id,
1249  const string& amount,
1250  bool broadcast = false )const;
1251 
1262  signed_transaction reserve_asset( const string& from,
1263  const string& amount,
1264  const string& symbol_or_id,
1265  bool broadcast = false )const;
1266 
1284  signed_transaction global_settle_asset( const string& symbol_or_id,
1285  const price& settle_price,
1286  bool broadcast = false )const;
1287 
1306  signed_transaction settle_asset( const string& account_to_settle,
1307  const string& amount_to_settle,
1308  const string& symbol_or_id,
1309  bool broadcast = false )const;
1310 
1327  signed_transaction bid_collateral( const string& bidder, const string& debt_amount,
1328  const string& debt_symbol_or_id,
1329  const string& additional_collateral, bool broadcast = false )const;
1330 
1351  signed_transaction whitelist_account( const string& authorizing_account,
1352  const string& account_to_list,
1354  bool broadcast = false )const;
1355 
1366  signed_transaction create_committee_member( const string& owner_account,
1367  const string& url,
1368  bool broadcast = false )const;
1369 
1383  map<string, witness_id_type, std::less<>> list_witnesses( const string& lowerbound, uint32_t limit )const;
1384 
1398  map<string, committee_member_id_type, std::less<>> list_committee_members(
1399  const string& lowerbound, uint32_t limit )const;
1400 
1405  witness_object get_witness( const string& owner_account )const;
1406 
1411  committee_member_object get_committee_member( const string& owner_account )const;
1412 
1423  signed_transaction create_witness( const string& owner_account,
1424  const string& url,
1425  bool broadcast = false )const;
1426 
1437  signed_transaction update_witness( const string& witness_name,
1438  const string& url,
1439  const string& block_signing_key,
1440  bool broadcast = false )const;
1441 
1442 
1457  const string& owner_account,
1458  const time_point_sec& work_begin_date,
1459  const time_point_sec& work_end_date,
1460  const share_type& daily_pay,
1461  const string& name,
1462  const string& url,
1463  const variant& worker_settings,
1464  bool broadcast = false
1465  )const;
1466 
1476  const string& account,
1477  const worker_vote_delta& delta,
1478  bool broadcast = false
1479  )const;
1480 
1496  signed_transaction htlc_create( const string& source, const string& destination,
1497  const string& amount, const string& asset_symbol_or_id, const string& hash_algorithm,
1498  const string& preimage_hash, uint32_t preimage_size,
1499  uint32_t claim_period_seconds, const string& memo, bool broadcast = false ) const;
1500 
1501  /****
1502  * Update a hashed time lock contract
1503  *
1504  * @param htlc_id The object identifier of the HTLC on the blockchain
1505  * @param issuer Who is performing this operation (and paying the fee)
1506  * @param preimage the preimage that should evaluate to the preimage_hash
1507  * @return the signed transaction
1508  */
1509  signed_transaction htlc_redeem( const htlc_id_type& htlc_id, const string& issuer, const string& preimage,
1510  bool broadcast = false ) const;
1511 
1512  /*****
1513  * Increase the timelock on an existing HTLC
1514  *
1515  * @param htlc_id The object identifier of the HTLC on the blockchain
1516  * @param issuer Who is performing this operation (and paying the fee)
1517  * @param seconds_to_add how many seconds to add to the existing timelock
1518  * @param broadcast true to broadcast to the network
1519  * @return the signed transaction
1520  */
1521  signed_transaction htlc_extend( const htlc_id_type& htlc_id, const string& issuer, uint32_t seconds_to_add,
1522  bool broadcast = false ) const;
1523 
1530  vector< vesting_balance_object_with_info > get_vesting_balances( const string& account_name )const;
1531 
1542  const string& witness_name,
1543  const string& amount,
1544  const string& asset_symbol_or_id,
1545  bool broadcast = false )const;
1546 
1564  signed_transaction vote_for_committee_member( const string& voting_account,
1565  const string& committee_member,
1566  bool approve,
1567  bool broadcast = false )const;
1568 
1586  signed_transaction vote_for_witness( const string& voting_account,
1587  const string& witness,
1588  bool approve,
1589  bool broadcast = false )const;
1590 
1609  signed_transaction set_voting_proxy( const string& account_to_modify,
1610  const optional<string>& voting_account,
1611  bool broadcast = false )const;
1612 
1634  signed_transaction set_desired_witness_and_committee_member_count( const string& account_to_modify,
1635  uint16_t desired_number_of_witnesses,
1636  uint16_t desired_number_of_committee_members,
1637  bool broadcast = false )const;
1638 
1647  signed_transaction sign_transaction( const signed_transaction& tx, bool broadcast = false )const;
1648 
1660  const vector<public_key_type>& signing_keys = vector<public_key_type>(),
1661  bool broadcast = true )const;
1662 
1663 
1671  flat_set<public_key_type> get_transaction_signers( const signed_transaction& tx ) const;
1672 
1679  vector<flat_set<account_id_type>> get_key_references( const vector<public_key_type>& keys ) const;
1680 
1697  operation get_prototype_operation( const string& operation_type )const;
1698 
1711  const string& proposing_account,
1712  const time_point_sec& expiration_time,
1713  const variant_object& changed_values,
1714  bool broadcast = false )const;
1715 
1726  const string& proposing_account,
1727  const time_point_sec& expiration_time,
1728  const variant_object& changed_values,
1729  bool broadcast = false )const;
1730 
1740  const string& fee_paying_account,
1741  const string& proposal_id,
1742  const approval_delta& delta,
1743  bool broadcast /* = false */
1744  )const;
1745 
1753  order_book get_order_book( const string& base, const string& quote, uint32_t limit = 50 )const;
1754 
1767  bool broadcast = false )const;
1768 
1769  void dbg_make_uia( const string& creator, const string& symbol )const;
1770  void dbg_make_mia( const string& creator, const string& symbol )const;
1771  void dbg_push_blocks( const string& src_filename, uint32_t count )const;
1772  void dbg_generate_blocks( const string& debug_wif_key, uint32_t count )const;
1773  void dbg_stream_json_objects( const string& filename )const;
1774  void dbg_update_object( const variant_object& update )const;
1775 
1776  void flood_network( const string& prefix, uint32_t number_of_transactions )const;
1777 
1778  void network_add_nodes( const vector<string>& nodes )const;
1779  vector< variant > network_get_connected_peers()const;
1780 
1784  blind_confirmation blind_transfer_help( const string& from_key_or_label,
1785  const string& to_key_or_label,
1786  const string& amount,
1787  const string& symbol,
1788  bool broadcast = false,
1789  bool to_temp = false )const;
1790 
1791 
1792  std::map< string, std::function< string( const variant&, const fc::variants& ) >, std::less<> >
1793  get_result_formatters() const;
1794 
1795  void encrypt_keys()const;
1796 
1811  signed_transaction account_store_map( const string& account, const string& catalog, bool is_to_remove,
1812  const flat_map<string, optional<string>>& key_values, bool broadcast )const;
1813 
1824  vector<account_storage_object> get_account_storage( const string& account, const string& catalog )const;
1825 
1826 };
1827 
1828 } }
1829 
1830 extern template class fc::api<graphene::wallet::wallet_api>;
1831 
1833  (help)
1834  (gethelp)
1835  (info)
1836  (about)
1837  (begin_builder_transaction)
1838  (add_operation_to_builder_transaction)
1839  (replace_operation_in_builder_transaction)
1840  (set_fees_on_builder_transaction)
1841  (preview_builder_transaction)
1842  (sign_builder_transaction)
1843  (sign_builder_transaction2)
1844  (broadcast_transaction)
1845  (propose_builder_transaction)
1846  (propose_builder_transaction2)
1847  (remove_builder_transaction)
1848  (is_new)
1849  (is_locked)
1850  (lock)(unlock)(set_password)
1851  (dump_private_keys)
1852  (list_my_accounts)
1853  (list_accounts)
1854  (list_account_balances)
1855  (list_assets)
1856  (get_asset_count)
1857  (import_key)
1858  (import_accounts)
1859  (import_account_keys)
1860  (import_balance)
1861  (suggest_brain_key)
1862  (derive_owner_keys_from_brain_key)
1863  (register_account)
1864  (upgrade_account)
1865  (create_account_with_brain_key)
1866  (sell_asset)
1867  (borrow_asset)
1868  (borrow_asset_ext)
1869  (cancel_order)
1870  (transfer)
1871  (transfer2)
1872  (get_transaction_id)
1873  (create_asset)
1874  (update_asset)
1875  (update_asset_issuer)
1876  (update_bitasset)
1877  (get_htlc)
1878  (update_asset_feed_producers)
1879  (publish_asset_feed)
1880  (issue_asset)
1881  (get_asset)
1882  (get_asset_id)
1883  (get_asset_name)
1884  (get_asset_symbol)
1885  (get_bitasset_data)
1886  (fund_asset_fee_pool)
1887  (claim_asset_fee_pool)
1888  (reserve_asset)
1889  (global_settle_asset)
1890  (settle_asset)
1891  (bid_collateral)
1892  (whitelist_account)
1893  (create_committee_member)
1894  (get_witness)
1895  (get_committee_member)
1896  (list_witnesses)
1897  (list_committee_members)
1898  (create_witness)
1899  (update_witness)
1900  (create_worker)
1901  (update_worker_votes)
1902  (htlc_create)
1903  (htlc_redeem)
1904  (htlc_extend)
1905  (get_vesting_balances)
1906  (withdraw_vesting)
1907  (vote_for_committee_member)
1908  (vote_for_witness)
1909  (set_voting_proxy)
1910  (set_desired_witness_and_committee_member_count)
1911  (get_account)
1912  (get_account_id)
1913  (get_account_name)
1914  (get_block)
1915  (get_account_count)
1916  (get_account_history)
1917  (get_relative_account_history)
1918  (get_account_history_by_operations)
1919  (get_collateral_bids)
1920  (is_public_key_registered)
1921  (get_full_account)
1922  (get_market_history)
1923  (get_global_properties)
1924  (get_dynamic_global_properties)
1925  (get_object)
1926  (get_private_key)
1927  (load_wallet_file)
1929  (get_account_limit_orders)
1930  (get_limit_orders)
1931  (get_call_orders)
1932  (get_settle_orders)
1933  (save_wallet_file)
1934  (serialize_transaction)
1935  (sign_transaction)
1936  (sign_transaction2)
1937  (add_transaction_signature)
1938  (get_transaction_signers)
1939  (get_key_references)
1940  (get_prototype_operation)
1941  (propose_parameter_change)
1942  (propose_fee_change)
1943  (approve_proposal)
1944  (dbg_make_uia)
1945  (dbg_make_mia)
1946  (dbg_push_blocks)
1947  (dbg_generate_blocks)
1948  (dbg_stream_json_objects)
1949  (dbg_update_object)
1950  (flood_network)
1951  (network_add_nodes)
1952  (network_get_connected_peers)
1953  (sign_memo)
1954  (read_memo)
1955  (sign_message)
1956  (verify_message)
1957  (verify_signed_message)
1958  (verify_encapsulated_message)
1959  (set_key_label)
1960  (get_key_label)
1961  (get_public_key)
1962  (get_blind_accounts)
1963  (get_my_blind_accounts)
1964  (get_blind_balances)
1965  (create_blind_account)
1966  (transfer_to_blind)
1967  (transfer_from_blind)
1968  (blind_transfer)
1969  (blind_history)
1970  (receive_blind_transfer)
1971  (get_order_book)
1972  (account_store_map)
1973  (get_account_storage)
1974  (quit)
1975  )
graphene::wallet::wallet_api::set_key_label
bool set_key_label(const public_key_type &key, const string &label) const
Definition: wallet.cpp:1409
graphene::wallet::wallet_api::is_public_key_registered
bool is_public_key_registered(const string &public_key) const
Definition: wallet.cpp:483
graphene::wallet::wallet_api::get_vesting_balances
vector< vesting_balance_object_with_info > get_vesting_balances(const string &account_name) const
Definition: wallet.cpp:966
graphene::wallet::detail::normalize_brain_key
string normalize_brain_key(string s)
Definition: wallet_sign.cpp:68
graphene::wallet::wallet_api::begin_builder_transaction
transaction_handle_type begin_builder_transaction() const
Definition: wallet.cpp:505
graphene::wallet::wallet_api::receive_blind_transfer
blind_receipt receive_blind_transfer(const string &confirmation_receipt, const string &opt_from, const string &opt_memo) const
Definition: wallet.cpp:1829
graphene::wallet::wallet_api::sign_builder_transaction
signed_transaction sign_builder_transaction(transaction_handle_type transaction_handle, bool broadcast=true) const
Definition: wallet.cpp:535
graphene::wallet::account_history_operation_detail
Definition: wallet_structs.hpp:316
graphene::wallet::wallet_api::network_add_nodes
void network_add_nodes(const vector< string > &nodes) const
Definition: wallet.cpp:1076
graphene::wallet::wallet_api::create_account_with_brain_key
signed_transaction create_account_with_brain_key(const string &brain_key, const string &account_name, const string &registrar_account, const string &referrer_account, bool broadcast=false) const
Definition: wallet.cpp:779
fc::variant_object
An order-perserving dictionary of variant's.
Definition: variant_object.hpp:20
graphene::wallet::wallet_api::serialize_transaction
string serialize_transaction(const signed_transaction &tx) const
Definition: wallet.cpp:490
graphene::wallet::wallet_api::list_assets
vector< extended_asset_object > list_assets(const string &lowerbound, uint32_t limit) const
Definition: wallet.cpp:192
graphene::protocol::extension< options_type >
graphene::wallet::wallet_api::create_asset
signed_transaction create_asset(const string &issuer, const string &symbol, uint8_t precision, const asset_options &common, const optional< bitasset_options > &bitasset_opts, bool broadcast=false) const
Definition: wallet.cpp:800
graphene::wallet::wallet_api::sign_transaction
signed_transaction sign_transaction(const signed_transaction &tx, bool broadcast=false) const
Definition: wallet.cpp:1017
graphene::wallet::wallet_api::unlock
void unlock(const string &password) const
Definition: wallet.cpp:1265
graphene::wallet::wallet_api::get_bitasset_data
asset_bitasset_data_object get_bitasset_data(const string &asset_symbol_or_id) const
Definition: wallet.cpp:589
graphene::wallet::wallet_api::get_transaction_signers
flat_set< public_key_type > get_transaction_signers(const signed_transaction &tx) const
Definition: wallet.cpp:1029
graphene::wallet::wallet_api::get_asset
extended_asset_object get_asset(const string &asset_symbol_or_id) const
Definition: wallet.cpp:582
graphene::chain::dynamic_global_property_object
Maintains global state information (committee_member list, current fees)
Definition: global_property_object.hpp:62
graphene::wallet::wallet_api::transfer_from_blind
blind_confirmation transfer_from_blind(const string &from_blind_account_key_or_label, const string &to_account_name_or_id, const string &amount, const string &asset_symbol_or_id, bool broadcast=false) const
Definition: wallet.cpp:1495
graphene::wallet::wallet_api::about
variant_object about() const
Definition: wallet.cpp:758
graphene::wallet::wallet_api::~wallet_api
virtual ~wallet_api()
graphene::wallet::wallet_api::is_locked
bool is_locked() const
Definition: wallet.cpp:1240
graphene::wallet::wallet_api::dbg_stream_json_objects
void dbg_stream_json_objects(const string &filename) const
Definition: wallet.cpp:1066
graphene::wallet::wallet_api::list_committee_members
map< string, committee_member_id_type, std::less<> > list_committee_members(const string &lowerbound, uint32_t limit) const
Definition: wallet.cpp:912
graphene::wallet::wallet_api::get_limit_orders
vector< limit_order_object > get_limit_orders(const string &a, const string &b, uint32_t limit) const
Get limit orders in a given market.
Definition: wallet.cpp:451
graphene::wallet::wallet_api::import_account_keys
bool import_account_keys(const string &filename, const string &password, const string &src_account_name, const string &dest_account_name) const
Definition: wallet.cpp:697
graphene::wallet::wallet_api::lock_changed
fc::signal< void(bool)> lock_changed
Definition: wallet.hpp:54
graphene::wallet::wallet_api::get_wallet_filename
string get_wallet_filename() const
Definition: wallet.cpp:500
graphene::wallet::wallet_api::gethelp
string gethelp(const string &method) const
Definition: wallet.cpp:1156
graphene::wallet::wallet_api::suggest_brain_key
brain_key_info suggest_brain_key() const
Definition: wallet.cpp:471
graphene::wallet::wallet_api::get_order_book
order_book get_order_book(const string &base, const string &quote, uint32_t limit=50) const
Definition: wallet.cpp:1925
graphene::wallet::wallet_api::get_prototype_operation
operation get_prototype_operation(const string &operation_type) const
Definition: wallet.cpp:1039
graphene::wallet::wallet_api::update_asset_issuer
signed_transaction update_asset_issuer(const string &symbol_or_id, const string &new_issuer, bool broadcast=false) const
Definition: wallet.cpp:818
graphene::protocol::price
The price struct stores asset prices in the BitShares system.
Definition: asset.hpp:108
graphene::wallet::wallet_api::propose_fee_change
signed_transaction propose_fee_change(const string &proposing_account, const time_point_sec &expiration_time, const variant_object &changed_values, bool broadcast=false) const
Definition: wallet.cpp:1102
graphene::wallet::wallet_api::get_htlc
optional< variant > get_htlc(const htlc_id_type &htlc_id) const
Definition: wallet.cpp:211
graphene::wallet::wallet_api::settle_asset
signed_transaction settle_asset(const string &account_to_settle, const string &amount_to_settle, const string &symbol_or_id, bool broadcast=false) const
Definition: wallet.cpp:877
graphene::wallet::wallet_api::verify_message
bool verify_message(const string &message, const string &account, int32_t block, const string &msg_time, const fc::ecc::compact_signature &sig) const
Definition: wallet.cpp:1359
graphene::wallet::wallet_api::publish_asset_feed
signed_transaction publish_asset_feed(const string &publishing_account, const string &symbol_or_id, const price_feed &feed, bool broadcast=false) const
Definition: wallet.cpp:839
fc::static_variant< transfer_operation, limit_order_create_operation, limit_order_cancel_operation, call_order_update_operation, fill_order_operation, account_create_operation, account_update_operation, account_whitelist_operation, account_upgrade_operation, account_transfer_operation, asset_create_operation, asset_update_operation, asset_update_bitasset_operation, asset_update_feed_producers_operation, asset_issue_operation, asset_reserve_operation, asset_fund_fee_pool_operation, asset_settle_operation, asset_global_settle_operation, asset_publish_feed_operation, witness_create_operation, witness_update_operation, proposal_create_operation, proposal_update_operation, proposal_delete_operation, withdraw_permission_create_operation, withdraw_permission_update_operation, withdraw_permission_claim_operation, withdraw_permission_delete_operation, committee_member_create_operation, committee_member_update_operation, committee_member_update_global_parameters_operation, vesting_balance_create_operation, vesting_balance_withdraw_operation, worker_create_operation, custom_operation, assert_operation, balance_claim_operation, override_transfer_operation, transfer_to_blind_operation, blind_transfer_operation, transfer_from_blind_operation, asset_settle_cancel_operation, asset_claim_fees_operation, fba_distribute_operation, bid_collateral_operation, execute_bid_operation, asset_claim_pool_operation, asset_update_issuer_operation, htlc_create_operation, htlc_redeem_operation, htlc_redeemed_operation, htlc_extend_operation, htlc_refund_operation, custom_authority_create_operation, custom_authority_update_operation, custom_authority_delete_operation, ticket_create_operation, ticket_update_operation, liquidity_pool_create_operation, liquidity_pool_delete_operation, liquidity_pool_deposit_operation, liquidity_pool_withdraw_operation, liquidity_pool_exchange_operation, samet_fund_create_operation, samet_fund_delete_operation, samet_fund_update_operation, samet_fund_borrow_operation, samet_fund_repay_operation, credit_offer_create_operation, credit_offer_delete_operation, credit_offer_update_operation, credit_offer_accept_operation, credit_deal_repay_operation, credit_deal_expired_operation, liquidity_pool_update_operation, credit_deal_update_operation, limit_order_update_operation >
graphene::wallet::wallet_api::get_asset_id
asset_id_type get_asset_id(const string &asset_symbol_or_id) const
Definition: wallet.cpp:601
graphene::wallet::wallet_api::get_account_name
string get_account_name(const string &account_name_or_id) const
Definition: wallet.hpp:299
graphene::wallet::wallet_api::transfer
signed_transaction transfer(const string &from, const string &to, const string &amount, const string &asset_symbol_or_id, const string &memo, bool broadcast=false) const
Definition: wallet.cpp:794
graphene::wallet::wallet_api::get_account_history_by_operations
account_history_operation_detail get_account_history_by_operations(const string &account_name_or_id, const flat_set< uint16_t > &operation_types, uint32_t start, uint32_t limit) const
Definition: wallet.cpp:378
graphene::wallet::wallet_api::borrow_asset_ext
signed_transaction borrow_asset_ext(const string &borrower, const string &amount_to_borrow, const string &asset_symbol_or_id, const string &amount_of_collateral, const call_order_update_operation::extensions_type &extensions, bool broadcast=false) const
Definition: wallet.cpp:1325
graphene::wallet::wallet_api::sign_memo
memo_data sign_memo(const string &from, const string &to, const string &memo) const
Definition: wallet.cpp:1341
graphene::wallet::wallet_api::get_settle_orders
vector< force_settlement_object > get_settle_orders(const string &a, uint32_t limit) const
Get forced settlement orders in a given asset.
Definition: wallet.cpp:461
graphene::wallet::wallet_api::transfer2
pair< transaction_id_type, signed_transaction > transfer2(const string &from, const string &to, const string &amount, const string &asset_symbol_or_id, const string &memo) const
Definition: wallet.hpp:793
graphene::wallet::wallet_api::global_settle_asset
signed_transaction global_settle_asset(const string &symbol_or_id, const price &settle_price, bool broadcast=false) const
Definition: wallet.cpp:870
graphene::wallet::wallet_api::approve_proposal
signed_transaction approve_proposal(const string &fee_paying_account, const string &proposal_id, const approval_delta &delta, bool broadcast) const
Definition: wallet.cpp:1112
graphene::app::extended_asset_object
Definition: api_objects.hpp:161
graphene::wallet::wallet_api::sign_transaction2
signed_transaction sign_transaction2(const signed_transaction &tx, const vector< public_key_type > &signing_keys=vector< public_key_type >(), bool broadcast=true) const
Definition: wallet.cpp:1022
fc
Definition: api.hpp:15
graphene::wallet::wallet_api::list_accounts
map< string, account_id_type, std::less<> > list_accounts(const string &lowerbound, uint32_t limit) const
Definition: wallet.cpp:182
graphene::wallet::wallet_api::flood_network
void flood_network(const string &prefix, uint32_t number_of_transactions) const
Definition: wallet.cpp:1086
graphene::wallet::wallet_api::whitelist_account
signed_transaction whitelist_account(const string &authorizing_account, const string &account_to_list, account_whitelist_operation::account_listing new_listing_status, bool broadcast=false) const
Definition: wallet.cpp:893
graphene::wallet::wallet_api::propose_builder_transaction2
signed_transaction propose_builder_transaction2(transaction_handle_type handle, const string &account_name_or_id, const time_point_sec &expiration=time_point::now()+fc::minutes(1), uint32_t review_period_seconds=0, bool broadcast=true) const
Definition: wallet.cpp:562
graphene::wallet::wallet_api::issue_asset
signed_transaction issue_asset(const string &to_account, const string &amount, const string &symbol_or_id, const string &memo, bool broadcast=false) const
Definition: wallet.cpp:788
graphene::wallet::wallet_api::get_witness
witness_object get_witness(const string &owner_account) const
Definition: wallet.cpp:918
graphene::net::message
Definition: message.hpp:58
graphene::wallet::wallet_api::cancel_order
signed_transaction cancel_order(const limit_order_id_type &order_id, bool broadcast=false) const
Definition: wallet.cpp:1335
graphene::wallet::wallet_api::get_account_id
account_id_type get_account_id(const string &account_name_or_id) const
Definition: wallet.cpp:596
graphene::wallet::wallet_api::get_asset_count
uint64_t get_asset_count() const
Definition: wallet.cpp:197
graphene::wallet::wallet_api::my
std::shared_ptr< detail::wallet_api_impl > my
Definition: wallet.hpp:55
graphene::protocol::transaction
groups operations that should be applied atomically
Definition: transaction.hpp:69
graphene::wallet::wallet_api::get_market_history
vector< bucket_object > get_market_history(const string &symbol, const string &symbol2, uint32_t bucket, const time_point_sec &start, const time_point_sec &end) const
Get OHLCV data of a trading pair in a time range.
Definition: wallet.cpp:430
graphene::wallet::wallet_api::encrypt_keys
void encrypt_keys() const
Definition: wallet.cpp:1249
graphene::wallet::wallet_api::create_witness
signed_transaction create_witness(const string &owner_account, const string &url, bool broadcast=false) const
Definition: wallet.cpp:928
graphene::wallet::wallet_api::verify_signed_message
bool verify_signed_message(const signed_message &message) const
Definition: wallet.cpp:1370
graphene::wallet::wallet_api::reserve_asset
signed_transaction reserve_asset(const string &from, const string &amount, const string &symbol_or_id, bool broadcast=false) const
Definition: wallet.cpp:862
fc::signal
boost::signals2::signal< T > signal
Definition: signals.hpp:20
fc::zero_initialized_array
Definition: zeroed_array.hpp:30
graphene::chain::asset_object::symbol
string symbol
Ticker symbol for this asset, i.e. "USD".
Definition: asset_object.hpp:131
graphene::wallet::wallet_api::dbg_update_object
void dbg_update_object(const variant_object &update) const
Definition: wallet.cpp:1071
graphene::wallet::wallet_api::create_blind_account
public_key_type create_blind_account(const string &label, const string &brain_key) const
Definition: wallet.cpp:1442
fc::from_variant
void from_variant(const variant &var, flat_set< T, A... > &vo, uint32_t _max_depth)
Definition: flat.hpp:116
wallet_structs.hpp
graphene::protocol::asset_options
The asset_options struct contains options available on all assets in the network.
Definition: asset_ops.hpp:47
graphene::wallet::wallet_api::sign_message
signed_message sign_message(const string &signer, const string &message) const
Definition: wallet.cpp:1353
graphene::protocol::public_key_type
Definition: types.hpp:312
graphene::wallet::wallet_api::blind_transfer_help
blind_confirmation blind_transfer_help(const string &from_key_or_label, const string &to_key_or_label, const string &amount, const string &symbol, bool broadcast=false, bool to_temp=false) const
Definition: wallet.cpp:1564
graphene::wallet::wallet_api::get_full_account
full_account get_full_account(const string &name_or_id) const
Fetch all objects relevant to the specified account.
Definition: wallet.cpp:425
GRAPHENE_SYMBOL
#define GRAPHENE_SYMBOL
Definition: config.hpp:26
graphene::wallet::wallet_api::get_collateral_bids
vector< collateral_bid_object > get_collateral_bids(const string &asset_symbol_or_id, uint32_t limit=100, uint32_t start=0) const
Definition: wallet.cpp:466
graphene::protocol::bitasset_options
The bitasset_options struct contains configurable options available only to BitAssets.
Definition: asset_ops.hpp:109
graphene::wallet::wallet_api::set_desired_witness_and_committee_member_count
signed_transaction set_desired_witness_and_committee_member_count(const string &account_to_modify, uint16_t desired_number_of_witnesses, uint16_t desired_number_of_committee_members, bool broadcast=false) const
Definition: wallet.cpp:1003
graphene::wallet::wallet_api::borrow_asset
signed_transaction borrow_asset(const string &borrower, const string &amount_to_borrow, const string &asset_symbol_or_id, const string &amount_of_collateral, bool broadcast=false) const
Definition: wallet.cpp:1317
graphene::wallet::wallet_api::get_asset_symbol
string get_asset_symbol(const string &asset_symbol_or_id) const
Definition: wallet.hpp:314
graphene::wallet::wallet_api::normalize_brain_key
string normalize_brain_key(const string &s) const
Definition: wallet.cpp:748
fc::ecc::private_key
an elliptic curve private key.
Definition: elliptic.hpp:89
graphene::wallet::wallet_api::fund_asset_fee_pool
signed_transaction fund_asset_fee_pool(const string &from, const string &symbol_or_id, const string &amount, bool broadcast=false) const
Definition: wallet.cpp:847
graphene::wallet::wallet_api::get_private_key
string get_private_key(const public_key_type &pubkey) const
Definition: wallet.cpp:1394
graphene::wallet::wallet_api::htlc_redeem
signed_transaction htlc_redeem(const htlc_id_type &htlc_id, const string &issuer, const string &preimage, bool broadcast=false) const
Definition: wallet.cpp:267
graphene::wallet::wallet_api::import_key
bool import_key(const string &account_name_or_id, const string &wif_key) const
Definition: wallet.cpp:606
graphene::protocol::signed_transaction
adds a signature to a transaction
Definition: transaction.hpp:134
graphene::wallet::wallet_api::get_blind_accounts
map< string, public_key_type, std::less<> > get_blind_accounts() const
Definition: wallet.cpp:1423
graphene::wallet::wallet_api::set_wallet_filename
void set_wallet_filename(const string &wallet_filename) const
Definition: wallet.cpp:1012
graphene::wallet::wallet_api::dbg_make_mia
void dbg_make_mia(const string &creator, const string &symbol) const
Definition: wallet.cpp:1050
graphene::wallet::wallet_api::get_key_label
string get_key_label(const public_key_type &key) const
Definition: wallet.cpp:1386
graphene::wallet::wallet_api::claim_asset_fee_pool
signed_transaction claim_asset_fee_pool(const string &symbol_or_id, const string &amount, bool broadcast=false) const
Definition: wallet.cpp:855
graphene::wallet::approval_delta
Definition: wallet_structs.hpp:212
graphene::wallet::wallet_api::dump_private_keys
map< public_key_type, string > dump_private_keys() const
Definition: wallet.cpp:1293
graphene::wallet::wallet_api::dbg_push_blocks
void dbg_push_blocks(const string &src_filename, uint32_t count) const
Definition: wallet.cpp:1056
graphene::wallet::wallet_api::get_account_limit_orders
vector< limit_order_object > get_account_limit_orders(const string &name_or_id, const string &base, const string &quote, uint32_t limit=101, const optional< limit_order_id_type > &ostart_id={}, const optional< price > &ostart_price=optional< price >()) const
Fetch all orders relevant to the specified account sorted descendingly by price.
Definition: wallet.cpp:440
fc::variants
std::vector< variant > variants
Definition: variant.hpp:170
graphene::chain::account_object
This class represents an account on the object graph.
Definition: account_object.hpp:180
graphene::wallet::wallet_api::dbg_make_uia
void dbg_make_uia(const string &creator, const string &symbol) const
Definition: wallet.cpp:1044
graphene::wallet::wallet_api::get_account
account_object get_account(const string &account_name_or_id) const
Definition: wallet.cpp:577
graphene::wallet::wallet_api::verify_encapsulated_message
bool verify_encapsulated_message(const string &message) const
Definition: wallet.cpp:1380
graphene::wallet::wallet_api::get_committee_member
committee_member_object get_committee_member(const string &owner_account) const
Definition: wallet.cpp:923
graphene::wallet::wallet_api::list_witnesses
map< string, witness_id_type, std::less<> > list_witnesses(const string &lowerbound, uint32_t limit) const
Definition: wallet.cpp:907
fc::time_point_sec
Definition: time.hpp:74
graphene::wallet::wallet_api::account_store_map
signed_transaction account_store_map(const string &account, const string &catalog, bool is_to_remove, const flat_map< string, optional< string >> &key_values, bool broadcast) const
Definition: wallet.cpp:1931
htlc_object.hpp
graphene::wallet::wallet_api::get_dynamic_global_properties
dynamic_global_property_object get_dynamic_global_properties() const
Definition: wallet.cpp:1127
fc::ripemd160
Definition: ripemd160.hpp:11
graphene::wallet::wallet_api::bid_collateral
signed_transaction bid_collateral(const string &bidder, const string &debt_amount, const string &debt_symbol_or_id, const string &additional_collateral, bool broadcast=false) const
Definition: wallet.cpp:885
graphene::protocol::price_feed
defines market parameters for margin positions
Definition: asset.hpp:160
graphene::wallet::wallet_api::get_account_history
vector< operation_detail > get_account_history(const string &account_name_or_id, uint32_t limit) const
Definition: wallet.cpp:280
graphene::wallet::wallet_api::get_result_formatters
std::map< string, std::function< string(const variant &, const fc::variants &) >, std::less<> > get_result_formatters() const
Definition: wallet.cpp:1235
graphene::wallet::wallet_api::set_password
void set_password(const string &password) const
Definition: wallet.cpp:1277
graphene::chain::asset_bitasset_data_object
contains properties that only apply to bitassets (market issued assets)
Definition: asset_object.hpp:255
fc::to_variant
void to_variant(const flat_set< T, A... > &var, variant &vo, uint32_t _max_depth)
Definition: flat.hpp:105
graphene::wallet::wallet_api::remove_builder_transaction
void remove_builder_transaction(transaction_handle_type handle) const
Definition: wallet.cpp:572
graphene::wallet::wallet_api::upgrade_account
signed_transaction upgrade_account(const string &account_name_or_id, bool broadcast) const
Definition: wallet.cpp:1299
fc::minutes
microseconds minutes(int64_t m)
Definition: time.hpp:36
graphene::wallet::wallet_api::add_transaction_signature
signed_transaction add_transaction_signature(const signed_transaction &tx, bool broadcast=false) const
Definition: wallet.cpp:1132
graphene::wallet::wallet_api::derive_private_key
fc::ecc::private_key derive_private_key(const string &prefix_string, uint32_t sequence_number) const
Definition: wallet.cpp:763
graphene::wallet::wallet_api::get_account_storage
vector< account_storage_object > get_account_storage(const string &account, const string &catalog) const
Definition: wallet.cpp:1937
graphene::wallet::wallet_api::update_worker_votes
signed_transaction update_worker_votes(const string &account, const worker_vote_delta &delta, bool broadcast=false) const
Definition: wallet.cpp:949
graphene::wallet::wallet_api
Definition: wallet.hpp:50
graphene::wallet::transaction_handle_type
uint32_t transaction_handle_type
Definition: wallet_structs.hpp:37
graphene::wallet::wallet_api::copy_wallet_file
bool copy_wallet_file(const string &destination_filename) const
Definition: wallet.cpp:162
graphene::wallet::wallet_api::is_new
bool is_new() const
Definition: wallet.cpp:1244
graphene::wallet::wallet_api::get_global_properties
global_property_object get_global_properties() const
Definition: wallet.cpp:1122
graphene::app::order_book
Definition: api_objects.hpp:102
graphene::wallet::wallet_api::help
string help() const
Definition: wallet.cpp:1138
graphene::wallet::wallet_api::info
variant info() const
Definition: wallet.cpp:753
graphene::wallet::wallet_api::dbg_generate_blocks
void dbg_generate_blocks(const string &debug_wif_key, uint32_t count) const
Definition: wallet.cpp:1061
graphene::wallet::wallet_api::get_public_key
public_key_type get_public_key(const string &label) const
Definition: wallet.cpp:1399
graphene::wallet::wallet_api::create_committee_member
signed_transaction create_committee_member(const string &owner_account, const string &url, bool broadcast=false) const
Definition: wallet.cpp:901
graphene::wallet::wallet_api::wallet_api
wallet_api(const wallet_data &initial_data, const fc::api< login_api > &rapi)
Definition: wallet.cpp:155
graphene::wallet::wallet_api::load_wallet_file
bool load_wallet_file(const string &wallet_filename="") const
Definition: wallet.cpp:1219
graphene::wallet::wallet_api::create_worker
signed_transaction create_worker(const string &owner_account, const time_point_sec &work_begin_date, const time_point_sec &work_end_date, const share_type &daily_pay, const string &name, const string &url, const variant &worker_settings, bool broadcast=false) const
Definition: wallet.cpp:935
graphene::wallet::brain_key_info
Definition: wallet_structs.hpp:45
graphene::wallet::wallet_api::read_memo
string read_memo(const memo_data &memo) const
Definition: wallet.cpp:1347
graphene::wallet::wallet_api::list_my_accounts
vector< account_object > list_my_accounts() const
Definition: wallet.cpp:177
graphene::chain::account_object::name
string name
The account's name. This name must be unique among all account names on the graph....
Definition: account_object.hpp:209
graphene::wallet::wallet_api::set_fees_on_builder_transaction
asset set_fees_on_builder_transaction(transaction_handle_type handle, const string &fee_asset=GRAPHENE_SYMBOL) const
Definition: wallet.cpp:525
FC_API
#define FC_API(CLASS, METHODS)
Definition: api.hpp:197
fc::variant
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
Definition: variant.hpp:198
graphene::wallet::blind_receipt
Definition: wallet_structs.hpp:85
graphene::db::object_id_type
Definition: object_id.hpp:30
graphene::chain::account_multi_index_type
multi_index_container< account_object, indexed_by< ordered_unique< tag< by_id >, member< object, object_id_type, &object::id > >, ordered_unique< tag< by_name >, member< account_object, string, &account_object::name > > > > account_multi_index_type
Definition: account_object.hpp:415
graphene::wallet::wallet_api::vote_for_witness
signed_transaction vote_for_witness(const string &voting_account, const string &witness, bool approve, bool broadcast=false) const
Definition: wallet.cpp:988
graphene::wallet::wallet_api::withdraw_vesting
signed_transaction withdraw_vesting(const string &witness_name, const string &amount, const string &asset_symbol_or_id, bool broadcast=false) const
Definition: wallet.cpp:971
graphene::wallet::wallet_api::register_account
signed_transaction register_account(const string &name, const public_key_type &owner, const public_key_type &active, const string &registrar_account, const string &referrer_account, uint32_t referrer_percent, bool broadcast=false) const
Definition: wallet.cpp:768
graphene::protocol::account_whitelist_operation::account_listing
account_listing
Definition: account.hpp:200
graphene::wallet::wallet_api::update_asset
signed_transaction update_asset(const string &symbol_or_id, const optional< string > &new_issuer, const asset_options &new_options, bool broadcast=false) const
Definition: wallet.cpp:810
graphene::wallet::wallet_api::broadcast_transaction
pair< transaction_id_type, signed_transaction > broadcast_transaction(const signed_transaction &tx) const
Definition: wallet.cpp:548
graphene::wallet::wallet_api::set_voting_proxy
signed_transaction set_voting_proxy(const string &account_to_modify, const optional< string > &voting_account, bool broadcast=false) const
Definition: wallet.cpp:996
graphene::wallet::wallet_api::get_blind_balances
vector< asset > get_blind_balances(const string &key_or_label) const
Definition: wallet.cpp:1462
graphene::wallet::wallet_api::get_asset_name
string get_asset_name(const string &asset_symbol_or_id) const
Definition: wallet.hpp:322
graphene::wallet::wallet_api::sign_builder_transaction2
signed_transaction sign_builder_transaction2(transaction_handle_type transaction_handle, const vector< public_key_type > &signing_keys=vector< public_key_type >(), bool broadcast=true) const
Definition: wallet.cpp:541
graphene::wallet::wallet_api::save_wallet_file
void save_wallet_file(const string &wallet_filename="") const
Definition: wallet.cpp:1229
graphene::chain::global_property_object
Maintains global state information (committee_member list, current fees)
Definition: global_property_object.hpp:40
graphene::wallet::wallet_api::propose_builder_transaction
signed_transaction propose_builder_transaction(transaction_handle_type handle, const time_point_sec &expiration=time_point::now()+fc::minutes(1), uint32_t review_period_seconds=0, bool broadcast=true) const
Definition: wallet.cpp:553
graphene::wallet::wallet_api::derive_owner_keys_from_brain_key
vector< brain_key_info > derive_owner_keys_from_brain_key(const string &brain_key, uint32_t number_of_desired_keys=1) const
Definition: wallet.cpp:476
graphene::wallet::wallet_api::preview_builder_transaction
transaction preview_builder_transaction(transaction_handle_type handle) const
Definition: wallet.cpp:530
graphene::wallet::wallet_api::get_block
optional< signed_block_with_info > get_block(uint32_t num) const
Definition: wallet.cpp:167
graphene::wallet::wallet_api::update_bitasset
signed_transaction update_bitasset(const string &symbol_or_id, const bitasset_options &new_options, bool broadcast=false) const
Definition: wallet.cpp:825
graphene::wallet::wallet_api::blind_transfer
blind_confirmation blind_transfer(const string &from_key_or_label, const string &to_key_or_label, const string &amount, const string &symbol_or_id, bool broadcast=false) const
Definition: wallet.cpp:1556
graphene::wallet::wallet_api::list_account_balances
vector< asset > list_account_balances(const string &account_name_or_id) const
Definition: wallet.cpp:187
graphene::chain::witness_object
Definition: witness_object.hpp:32
graphene::wallet::wallet_data
Definition: wallet_structs.hpp:150
graphene::wallet::wallet_api::transfer_to_blind
blind_confirmation transfer_to_blind(const string &from_account_name_or_id, const string &asset_symbol_or_id, const vector< pair< string, string >> &to_amounts, bool broadcast=false) const
Definition: wallet.cpp:1742
graphene::wallet::wallet_api::import_balance
vector< signed_transaction > import_balance(const string &account_name_or_id, const vector< string > &wif_keys, bool broadcast) const
Definition: wallet.cpp:1285
graphene::protocol::memo_data
defines the keys used to derive the shared secret
Definition: memo.hpp:40
graphene::wallet::wallet_api::sell_asset
signed_transaction sell_asset(const string &seller_account, const string &amount_to_sell, const string &symbol_or_id_to_sell, const string &min_to_receive, const string &symbol_or_id_to_receive, uint32_t timeout_sec=0, bool fill_or_kill=false, bool broadcast=false) const
Definition: wallet.cpp:1304
graphene::wallet::wallet_api::blind_history
vector< blind_receipt > blind_history(const string &key_or_account) const
Definition: wallet.cpp:1907
graphene::wallet::wallet_api::get_object
variant get_object(const object_id_type &id) const
Definition: wallet.cpp:495
graphene::wallet::wallet_api::get_call_orders
vector< call_order_object > get_call_orders(const string &asset_symbol_or_id, uint32_t limit) const
Get call orders (aka margin positions) for a given asset.
Definition: wallet.cpp:456
fc::optional
provides stack-based nullable value similar to boost::optional
Definition: optional.hpp:20
graphene::wallet::wallet_api::get_relative_account_history
vector< operation_detail > get_relative_account_history(const string &account_name_or_id, uint32_t stop, uint32_t limit, uint32_t start) const
Definition: wallet.cpp:338
graphene::wallet::wallet_api::get_transaction_id
transaction_id_type get_transaction_id(const signed_transaction &trx) const
Definition: wallet.hpp:808
graphene::wallet::wallet_api::htlc_extend
signed_transaction htlc_extend(const htlc_id_type &htlc_id, const string &issuer, uint32_t seconds_to_add, bool broadcast=false) const
Definition: wallet.cpp:274
key_conversion.hpp
graphene::wallet::wallet_api::replace_operation_in_builder_transaction
void replace_operation_in_builder_transaction(transaction_handle_type handle, uint32_t operation_index, const operation &new_op) const
Definition: wallet.cpp:517
graphene::wallet::wallet_api::add_operation_to_builder_transaction
void add_operation_to_builder_transaction(transaction_handle_type transaction_handle, const operation &op) const
Definition: wallet.cpp:510
graphene::wallet::wallet_api::propose_parameter_change
signed_transaction propose_parameter_change(const string &proposing_account, const time_point_sec &expiration_time, const variant_object &changed_values, bool broadcast=false) const
Definition: wallet.cpp:1092
graphene::wallet::create_object
object * create_object(const variant &v)
graphene::protocol::asset
Definition: asset.hpp:31
graphene::wallet::wallet_api::update_asset_feed_producers
signed_transaction update_asset_feed_producers(const string &symbol_or_id, const flat_set< string > &new_feed_producers, bool broadcast=false) const
Definition: wallet.cpp:832
graphene::wallet::signed_message
Definition: wallet_structs.hpp:260
graphene::wallet::wallet_api::lock
void lock() const
Definition: wallet.cpp:1254
api.hpp
graphene::wallet::wallet_api::htlc_create
signed_transaction htlc_create(const string &source, const string &destination, const string &amount, const string &asset_symbol_or_id, const string &hash_algorithm, const string &preimage_hash, uint32_t preimage_size, uint32_t claim_period_seconds, const string &memo, bool broadcast=false) const
Definition: wallet.cpp:202
graphene::wallet::wallet_api::get_account_count
uint64_t get_account_count() const
Definition: wallet.cpp:172
graphene::wallet::worker_vote_delta
Definition: wallet_structs.hpp:222
graphene::wallet::wallet_api::update_witness
signed_transaction update_witness(const string &witness_name, const string &url, const string &block_signing_key, bool broadcast=false) const
Definition: wallet.cpp:957
graphene::wallet::wallet_api::get_my_blind_accounts
map< string, public_key_type, std::less<> > get_my_blind_accounts() const
Definition: wallet.cpp:1430
fc::api
Definition: api.hpp:120
graphene::wallet::wallet_api::import_accounts
map< string, bool, std::less<> > import_accounts(const string &filename, const string &password) const
Definition: wallet.cpp:625
graphene::app::full_account
Definition: api_objects.hpp:59
graphene
Definition: api.cpp:48
graphene::wallet::wallet_api::get_key_references
vector< flat_set< account_id_type > > get_key_references(const vector< public_key_type > &keys) const
Definition: wallet.cpp:1034
graphene::wallet::wallet_api::quit
void quit() const
Definition: wallet.cpp:1224
graphene::wallet::blind_confirmation
Definition: wallet_structs.hpp:58
graphene::wallet::wallet_api::vote_for_committee_member
signed_transaction vote_for_committee_member(const string &voting_account, const string &committee_member, bool approve, bool broadcast=false) const
Definition: wallet.cpp:980
graphene::wallet::wallet_api::network_get_connected_peers
vector< variant > network_get_connected_peers() const
Definition: wallet.cpp:1081
fc::safe
Definition: safe.hpp:26
optional.hpp
graphene::chain::committee_member_object
tracks information about a committee_member account.
Definition: committee_member_object.hpp:43