38 namespace graphene {
namespace wallet {
55 std::shared_ptr<detail::wallet_api_impl>
my;
61 bool copy_wallet_file(
const string& destination_filename )
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;
134 vector<operation_detail> get_account_history(
const string& account_name_or_id, uint32_t limit )
const;
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;
156 full_account get_full_account(
const string& name_or_id )
const;
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;
188 vector<limit_order_object> get_account_limit_orders(
const string& name_or_id,
191 uint32_t limit = 101,
192 const optional<limit_order_id_type>& ostart_id = {},
193 const optional<price>& ostart_price = optional<price>() )
const;
202 vector<limit_order_object> get_limit_orders(
const string& a,
const string& b, uint32_t limit )
const;
210 vector<call_order_object> get_call_orders(
const string& asset_symbol_or_id, uint32_t limit )
const;
218 vector<force_settlement_object> get_settle_orders(
const string& a, uint32_t limit )
const;
227 vector<collateral_bid_object> get_collateral_bids(
const string& asset_symbol_or_id, uint32_t limit = 100,
228 uint32_t start = 0 )
const;
250 const flat_set<uint16_t>& operation_types,
251 uint32_t start, uint32_t limit )
const;
266 account_object get_account(
const string& account_name_or_id )
const;
287 optional<variant> get_htlc(
const htlc_id_type& htlc_id )
const;
293 account_id_type get_account_id(
const string& account_name_or_id )
const;
300 {
return get_account( account_name_or_id ).name; }
307 asset_id_type get_asset_id(
const string& asset_symbol_or_id )
const;
315 {
return get_asset( asset_symbol_or_id ).symbol; }
323 {
return get_asset_symbol( asset_symbol_or_id ); }
336 variant get_object(
const object_id_type&
id )
const;
345 string get_wallet_filename()
const;
353 string get_private_key(
const public_key_type& pubkey )
const;
380 uint32_t operation_index,
409 bool broadcast =
true )
const;
421 const vector<public_key_type>& signing_keys = vector<public_key_type>(),
422 bool broadcast =
true )
const;
428 pair<transaction_id_type,signed_transaction> broadcast_transaction(
const signed_transaction& tx )
const;
446 signed_transaction propose_builder_transaction(
449 uint32_t review_period_seconds = 0,
450 bool broadcast =
true 467 signed_transaction propose_builder_transaction2(
469 const string& account_name_or_id,
471 uint32_t review_period_seconds = 0,
472 bool broadcast =
true 497 bool is_locked()
const;
515 void unlock(
const string& password )
const;
528 void set_password(
const string& password )
const;
536 map<public_key_type, string> dump_private_keys()
const;
551 string gethelp(
const string& method )
const;
566 bool load_wallet_file(
const string& wallet_filename =
"" )
const;
584 void save_wallet_file(
const string& wallet_filename =
"" )
const;
593 void set_wallet_filename(
const string& wallet_filename )
const;
616 vector<brain_key_info> derive_owner_keys_from_brain_key(
const string& brain_key,
617 uint32_t number_of_desired_keys = 1 )
const;
626 bool is_public_key_registered(
const string& public_key )
const;
633 string serialize_transaction(
const signed_transaction& tx )
const;
646 bool import_key(
const string& account_name_or_id,
const string& wif_key )
const;
655 map<string, bool, std::less<>> import_accounts(
const string& filename,
const string& password )
const;
668 bool import_account_keys(
const string& filename,
const string& password,
669 const string& src_account_name,
const string& dest_account_name )
const;
679 vector< signed_transaction > import_balance(
const string& account_name_or_id,
const vector<string>& wif_keys,
680 bool broadcast )
const;
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;
733 signed_transaction upgrade_account(
const string& account_name_or_id,
bool broadcast )
const;
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;
773 signed_transaction transfer(
const string& from,
775 const string& amount,
776 const string& asset_symbol_or_id,
778 bool broadcast =
false )
const;
793 pair<transaction_id_type,signed_transaction>
transfer2(
const string& from,
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);
818 memo_data sign_memo(
const string& from,
const string& to,
const string& memo )
const;
825 string read_memo(
const memo_data& memo )
const;
846 bool verify_message(
const string& message,
const string& account, int32_t block,
const string& msg_time,
861 bool verify_encapsulated_message(
const string& message )
const;
873 bool set_key_label(
const public_key_type& key,
const string& label )
const;
880 string get_key_label(
const public_key_type& key )
const;
888 public_key_type create_blind_account(
const string& label,
const string& brain_key )
const;
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;
921 vector<blind_receipt> blind_history(
const string& key_or_account )
const;
934 blind_receipt receive_blind_transfer(
const string& confirmation_receipt,
935 const string& opt_from,
936 const string& opt_memo )
const;
948 const string& asset_symbol_or_id,
949 const vector<pair<string, string>>& to_amounts,
950 bool broadcast =
false )
const;
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;
977 const string& to_key_or_label,
978 const string& amount,
979 const string& symbol_or_id,
980 bool broadcast =
false )
const;
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;
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;
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;
1076 signed_transaction cancel_order(
const limit_order_id_type& order_id,
bool broadcast =
false )
const;
1100 signed_transaction create_asset(
const string& issuer,
1101 const string& symbol,
1103 const asset_options& common,
1104 const optional<bitasset_options>& bitasset_opts,
1105 bool broadcast =
false )
const;
1116 signed_transaction issue_asset(
const string& to_account,
const string& amount,
1117 const string& symbol_or_id,
1119 bool broadcast =
false )
const;
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;
1153 signed_transaction update_asset_issuer(
const string& symbol_or_id,
1154 const string& new_issuer,
1155 bool broadcast =
false )
const;
1170 signed_transaction update_bitasset(
const string& symbol_or_id,
1171 const bitasset_options& new_options,
1172 bool broadcast =
false )
const;
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;
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;
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;
1248 signed_transaction claim_asset_fee_pool(
const string& symbol_or_id,
1249 const string& amount,
1250 bool broadcast =
false )
const;
1262 signed_transaction reserve_asset(
const string& from,
1263 const string& amount,
1264 const string& symbol_or_id,
1265 bool broadcast =
false )
const;
1284 signed_transaction global_settle_asset(
const string& symbol_or_id,
1285 const price& settle_price,
1286 bool broadcast =
false )
const;
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;
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;
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;
1366 signed_transaction create_committee_member(
const string& owner_account,
1368 bool broadcast =
false )
const;
1383 map<string, witness_id_type, std::less<>> list_witnesses(
const string& lowerbound, uint32_t limit )
const;
1398 map<string, committee_member_id_type, std::less<>> list_committee_members(
1399 const string& lowerbound, uint32_t limit )
const;
1423 signed_transaction create_witness(
const string& owner_account,
1425 bool broadcast =
false )
const;
1437 signed_transaction update_witness(
const string& witness_name,
1439 const string& block_signing_key,
1440 bool broadcast =
false )
const;
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,
1463 const variant& worker_settings,
1464 bool broadcast =
false 1475 signed_transaction update_worker_votes(
1476 const string& account,
1478 bool broadcast =
false 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;
1509 signed_transaction htlc_redeem(
const htlc_id_type& htlc_id,
const string& issuer,
const string& preimage,
1510 bool broadcast =
false )
const;
1521 signed_transaction htlc_extend(
const htlc_id_type& htlc_id,
const string& issuer, uint32_t seconds_to_add,
1522 bool broadcast =
false )
const;
1530 vector< vesting_balance_object_with_info > get_vesting_balances(
const string& account_name )
const;
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;
1564 signed_transaction vote_for_committee_member(
const string& voting_account,
1565 const string& committee_member,
1567 bool broadcast =
false )
const;
1586 signed_transaction vote_for_witness(
const string& voting_account,
1589 bool broadcast =
false )
const;
1609 signed_transaction set_voting_proxy(
const string& account_to_modify,
1610 const optional<string>& voting_account,
1611 bool broadcast =
false )
const;
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;
1647 signed_transaction sign_transaction(
const signed_transaction& tx,
bool broadcast =
false )
const;
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;
1671 flat_set<public_key_type> get_transaction_signers(
const signed_transaction& tx )
const;
1679 vector<flat_set<account_id_type>> get_key_references(
const vector<public_key_type>& keys )
const;
1697 operation get_prototype_operation(
const string& operation_type )
const;
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;
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;
1739 signed_transaction approve_proposal(
1740 const string& fee_paying_account,
1741 const string& proposal_id,
1753 order_book get_order_book(
const string& base,
const string& quote, uint32_t limit = 50 )
const;
1766 signed_transaction add_transaction_signature(
const signed_transaction& tx,
1767 bool broadcast =
false )
const;
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;
1776 void flood_network(
const string& prefix, uint32_t number_of_transactions )
const;
1778 void network_add_nodes(
const vector<string>& nodes )
const;
1779 vector< variant > network_get_connected_peers()
const;
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;
1792 std::map< string, std::function< string( const variant&, const fc::variants& ) >, std::less<> >
1793 get_result_formatters()
const;
1795 void encrypt_keys()
const;
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;
1824 vector<account_storage_object> get_account_storage(
const string& account,
const string& catalog )
const;
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)
1850 (lock)(unlock)(set_password)
1854 (list_account_balances)
1859 (import_account_keys)
1862 (derive_owner_keys_from_brain_key)
1865 (create_account_with_brain_key)
1872 (get_transaction_id)
1875 (update_asset_issuer)
1878 (update_asset_feed_producers)
1879 (publish_asset_feed)
1886 (fund_asset_fee_pool)
1887 (claim_asset_fee_pool)
1889 (global_settle_asset)
1893 (create_committee_member)
1895 (get_committee_member)
1897 (list_committee_members)
1901 (update_worker_votes)
1905 (get_vesting_balances)
1907 (vote_for_committee_member)
1910 (set_desired_witness_and_committee_member_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)
1922 (get_market_history)
1923 (get_global_properties)
1924 (get_dynamic_global_properties)
1929 (get_account_limit_orders)
1934 (serialize_transaction)
1937 (add_transaction_signature)
1938 (get_transaction_signers)
1939 (get_key_references)
1940 (get_prototype_operation)
1941 (propose_parameter_change)
1942 (propose_fee_change)
1947 (dbg_generate_blocks)
1948 (dbg_stream_json_objects)
1952 (network_get_connected_peers)
1957 (verify_signed_message)
1958 (verify_encapsulated_message)
1962 (get_blind_accounts)
1963 (get_my_blind_accounts)
1964 (get_blind_balances)
1965 (create_blind_account)
1967 (transfer_from_blind)
1970 (receive_blind_transfer)
1973 (get_account_storage)
future_extensions::flat_set_type extensions_type
std::shared_ptr< detail::wallet_api_impl > my
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)
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
Maintains global state information (committee_member list, current fees)This is an implementation det...
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
fc::signal< void(bool)> lock_changed
groups operations that should be applied atomically
string get_asset_name(const string &asset_symbol_or_id) const
string get_asset_symbol(const string &asset_symbol_or_id) const
#define FC_API(CLASS, METHODS)
fc::ecc::private_key derive_private_key(const std::string &prefix_string, int sequence_number)
void to_variant(const flat_set< T, A... > &var, variant &vo, uint32_t _max_depth)
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
string normalize_brain_key(string s)
transaction_id_type get_transaction_id(const signed_transaction &trx) const
void from_variant(const variant &var, flat_set< T, A... > &vo, uint32_t _max_depth)
safe< int64_t > share_type
Maintains global state information (committee_member list, current fees)This is an implementation det...
boost::signals2::signal< T > signal
an elliptic curve private key.
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