BitShares-Core  6.1.0
BitShares blockchain implementation and command-line interface 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
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 
237  global_property_object get_global_properties() const;
238 
249  account_history_operation_detail get_account_history_by_operations( const string& account_name_or_id,
250  const flat_set<uint16_t>& operation_types,
251  uint32_t start, uint32_t limit )const;
252 
259  dynamic_global_property_object get_dynamic_global_properties() const;
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 
361  transaction_handle_type begin_builder_transaction()const;
369  void add_operation_to_builder_transaction( transaction_handle_type transaction_handle,
370  const operation& op )const;
379  void replace_operation_in_builder_transaction( transaction_handle_type handle,
380  uint32_t operation_index,
381  const operation& new_op )const;
390  asset set_fees_on_builder_transaction( transaction_handle_type handle,
391  const string& fee_asset = GRAPHENE_SYMBOL )const;
399  transaction preview_builder_transaction( transaction_handle_type handle )const;
408  signed_transaction sign_builder_transaction( transaction_handle_type transaction_handle,
409  bool broadcast = true )const;
410 
420  signed_transaction sign_builder_transaction2( transaction_handle_type transaction_handle,
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 
446  signed_transaction propose_builder_transaction(
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 
467  signed_transaction propose_builder_transaction2(
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 
481  void remove_builder_transaction(transaction_handle_type handle)const;
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 
602  brain_key_info suggest_brain_key()const;
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,
1353  account_whitelist_operation::account_listing new_listing_status,
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 
1456  signed_transaction create_worker(
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 
1475  signed_transaction update_worker_votes(
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 
1541  signed_transaction withdraw_vesting(
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 
1659  signed_transaction sign_transaction2( const signed_transaction& tx,
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 
1710  signed_transaction propose_parameter_change(
1711  const string& proposing_account,
1712  const time_point_sec& expiration_time,
1713  const variant_object& changed_values,
1714  bool broadcast = false )const;
1715 
1725  signed_transaction propose_fee_change(
1726  const string& proposing_account,
1727  const time_point_sec& expiration_time,
1728  const variant_object& changed_values,
1729  bool broadcast = false )const;
1730 
1739  signed_transaction approve_proposal(
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 
1766  signed_transaction add_transaction_signature( const signed_transaction& tx,
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  )
future_extensions::flat_set_type extensions_type
Definition: base.hpp:156
std::shared_ptr< detail::wallet_api_impl > my
Definition: wallet.hpp:55
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
microseconds minutes(int64_t m)
Definition: time.hpp:36
object * create_object(const variant &v)
contains properties that only apply to bitassets (market issued assets)
This class represents an account on the object graphAccounts are the primary unit of authority on the...
string get_account_name(const string &account_name_or_id) const
Definition: wallet.hpp:299
Maintains global state information (committee_member list, current fees)This is an implementation det...
Definition: api.cpp:48
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 > operation
Definition: operations.hpp:131
fc::signal< void(bool)> lock_changed
Definition: wallet.hpp:54
groups operations that should be applied atomically
Definition: transaction.hpp:69
string get_asset_name(const string &asset_symbol_or_id) const
Definition: wallet.hpp:322
string get_asset_symbol(const string &asset_symbol_or_id) const
Definition: wallet.hpp:314
#define FC_API(CLASS, METHODS)
Definition: api.hpp:197
fc::ecc::private_key derive_private_key(const std::string &prefix_string, int sequence_number)
Definition: wallet_sign.cpp:54
void to_variant(const flat_set< T, A... > &var, variant &vo, uint32_t _max_depth)
Definition: flat.hpp:105
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object&#39;s.
Definition: variant.hpp:198
string normalize_brain_key(string s)
Definition: wallet_sign.cpp:62
transaction_id_type get_transaction_id(const signed_transaction &trx) const
Definition: wallet.hpp:808
void from_variant(const variant &var, flat_set< T, A... > &vo, uint32_t _max_depth)
Definition: flat.hpp:116
safe< int64_t > share_type
Definition: types.hpp:309
Definition: api.hpp:15
Maintains global state information (committee_member list, current fees)This is an implementation det...
#define GRAPHENE_SYMBOL
Definition: config.hpp:26
static time_point now()
Definition: time.cpp:13
boost::signals2::signal< T > signal
Definition: signals.hpp:20
an elliptic curve private key.
Definition: elliptic.hpp:89
uint32_t transaction_handle_type
tracks information about a committee_member account.A committee_member is responsible for setting blo...
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
Definition: api.hpp:120