BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Classes | Public Member Functions | Public Attributes | List of all members
graphene::wallet::detail::wallet_api_impl Class Reference

#include <wallet_api_impl.hpp>

Public Member Functions

 wallet_api_impl (wallet_api &s, const wallet_data &initial_data, fc::api< login_api > rapi)
 
virtual ~wallet_api_impl ()
 
void encrypt_keys ()
 
void on_block_applied (const variant &block_id)
 
bool copy_wallet_file (string destination_filename)
 make a copy of the wallet file Note: this will not overwrite. It simply adds a version suffix. More...
 
bool is_locked () const
 
template<typename ID >
graphene::db::object_downcast_t< const ID & > get_object (const ID &id) const
 
void set_operation_fees (signed_transaction &tx, const fee_schedule &s) const
 
variant info () const
 
variant_object about () const
 
chain_property_object get_chain_properties () const
 
global_property_object get_global_properties () const
 
dynamic_global_property_object get_dynamic_global_properties () const
 
account_object get_account (account_id_type id) const
 
account_object get_account (string account_name_or_id) const
 
account_id_type get_account_id (string account_name_or_id) const
 
std::string asset_id_to_string (asset_id_type id) const
 
optional< extended_asset_objectfind_asset (asset_id_type id) const
 
optional< extended_asset_objectfind_asset (string asset_symbol_or_id) const
 
extended_asset_object get_asset (asset_id_type id) const
 
extended_asset_object get_asset (string asset_symbol_or_id) const
 
fc::optional< htlc_objectget_htlc (const htlc_id_type &htlc_id) const
 
asset_id_type get_asset_id (const string &asset_symbol_or_id) const
 
string get_wallet_filename () const
 
fc::ecc::private_key get_private_key (const public_key_type &id) const
 
fc::ecc::private_key get_private_key_for_account (const account_object &account) const
 
bool import_key (string account_name_or_id, string wif_key)
 
vector< signed_transactionimport_balance (string name_or_id, const vector< string > &wif_keys, bool broadcast)
 
bool load_wallet_file (string wallet_filename="")
 
set< public_key_typeget_owned_required_keys (signed_transaction &tx, bool erase_existing_sigs=true)
 
signed_transaction add_transaction_signature (signed_transaction tx, bool broadcast)
 
void quit ()
 
void save_wallet_file (string wallet_filename="")
 
transaction_handle_type begin_builder_transaction ()
 
void add_operation_to_builder_transaction (transaction_handle_type transaction_handle, const operation &op)
 
void replace_operation_in_builder_transaction (transaction_handle_type handle, uint32_t operation_index, const operation &new_op)
 
asset set_fees_on_builder_transaction (transaction_handle_type handle, string fee_asset=GRAPHENE_SYMBOL)
 
transaction preview_builder_transaction (transaction_handle_type handle)
 
signed_transaction sign_builder_transaction (transaction_handle_type transaction_handle, bool broadcast=true)
 
signed_transaction sign_builder_transaction2 (transaction_handle_type transaction_handle, const vector< public_key_type > &signing_keys=vector< public_key_type >(), bool broadcast=true)
 
pair< transaction_id_type, signed_transactionbroadcast_transaction (signed_transaction tx)
 
signed_transaction propose_builder_transaction (transaction_handle_type handle, time_point_sec expiration=time_point::now()+fc::minutes(1), uint32_t review_period_seconds=0, bool broadcast=true)
 
signed_transaction propose_builder_transaction2 (transaction_handle_type handle, string account_name_or_id, time_point_sec expiration=time_point::now()+fc::minutes(1), uint32_t review_period_seconds=0, bool broadcast=true)
 
void remove_builder_transaction (transaction_handle_type handle)
 
signed_transaction register_account (string name, public_key_type owner, public_key_type active, string registrar_account, string referrer_account, uint32_t referrer_percent, bool broadcast=false)
 
signed_transaction upgrade_account (string name, bool broadcast)
 
signed_transaction create_account_with_private_key (fc::ecc::private_key owner_privkey, string account_name, string registrar_account, string referrer_account, bool broadcast=false, bool save_wallet=true)
 
signed_transaction create_account_with_brain_key (string brain_key, string account_name, string registrar_account, string referrer_account, bool broadcast=false, bool save_wallet=true)
 
signed_transaction create_asset (string issuer, string symbol, uint8_t precision, asset_options common, fc::optional< bitasset_options > bitasset_opts, bool broadcast=false)
 
signed_transaction update_asset (string symbol, optional< string > new_issuer, asset_options new_options, bool broadcast)
 
signed_transaction update_asset_issuer (string symbol, string new_issuer, bool broadcast)
 
signed_transaction update_bitasset (string symbol, bitasset_options new_options, bool broadcast)
 
signed_transaction update_asset_feed_producers (string symbol, flat_set< string > new_feed_producers, bool broadcast)
 
signed_transaction publish_asset_feed (string publishing_account, string symbol, price_feed feed, bool broadcast)
 
signed_transaction fund_asset_fee_pool (string from, string symbol, string amount, bool broadcast)
 
signed_transaction claim_asset_fee_pool (string symbol, string amount, bool broadcast)
 
signed_transaction reserve_asset (string from, string amount, string symbol, bool broadcast)
 
signed_transaction global_settle_asset (string symbol, price settle_price, bool broadcast)
 
signed_transaction settle_asset (string account_to_settle, string amount_to_settle, string symbol, bool broadcast)
 
signed_transaction bid_collateral (string bidder_name, string debt_amount, string debt_symbol, string additional_collateral, bool broadcast)
 
signed_transaction whitelist_account (string authorizing_account, string account_to_list, account_whitelist_operation::account_listing new_listing_status, bool broadcast)
 
signed_transaction create_committee_member (string owner_account, string url, bool broadcast)
 
witness_object get_witness (string owner_account)
 
committee_member_object get_committee_member (string owner_account)
 
signed_transaction create_witness (string owner_account, string url, bool broadcast)
 
signed_transaction update_witness (string witness_name, string url, string block_signing_key, bool broadcast)
 
signed_transaction create_worker (string owner_account, time_point_sec work_begin_date, time_point_sec work_end_date, share_type daily_pay, string name, string url, variant worker_settings, bool broadcast)
 
signed_transaction update_worker_votes (string account, worker_vote_delta delta, bool broadcast)
 
signed_transaction htlc_create (const string &source, const string &destination, const string &amount, const string &asset_symbol, const string &hash_algorithm, const string &preimage_hash, uint32_t preimage_size, uint32_t claim_period_seconds, const string &memo, bool broadcast=false)
 
signed_transaction htlc_redeem (const htlc_id_type &htlc_id, const string &issuer, const std::vector< char > &preimage, bool broadcast)
 
signed_transaction htlc_extend (const htlc_id_type &htlc_id, const string &issuer, uint32_t seconds_to_add, bool broadcast)
 
signed_transaction account_store_map (string account, string catalog, bool remove, flat_map< string, optional< string >> key_values, bool broadcast)
 
vector< vesting_balance_object_with_infoget_vesting_balances (string account_name)
 
signed_transaction withdraw_vesting (string witness_name, string amount, string asset_symbol, bool broadcast=false)
 
signed_transaction vote_for_committee_member (string voting_account, string committee_member, bool approve, bool broadcast)
 
signed_transaction vote_for_witness (string voting_account, string witness, bool approve, bool broadcast)
 
signed_transaction set_voting_proxy (string account_to_modify, optional< string > voting_account, bool broadcast)
 
signed_transaction set_desired_witness_and_committee_member_count (string account_to_modify, uint16_t desired_number_of_witnesses, uint16_t desired_number_of_committee_members, bool broadcast)
 
signed_transaction sign_transaction (signed_transaction tx, bool broadcast=false)
 
signed_transaction sign_transaction2 (signed_transaction tx, const vector< public_key_type > &signing_keys=vector< public_key_type >(), bool broadcast=false)
 
flat_set< public_key_typeget_transaction_signers (const signed_transaction &tx) const
 
vector< flat_set< account_id_type > > get_key_references (const vector< public_key_type > &keys) const
 
memo_data sign_memo (string from, string to, string memo)
 
string read_memo (const memo_data &md)
 
signed_message sign_message (string signer, string message)
 
bool verify_message (const string &message, const string &account, int32_t block, const string &msg_time, const fc::ecc::compact_signature &sig)
 
bool verify_signed_message (const signed_message &message)
 
bool verify_encapsulated_message (const string &message)
 
signed_transaction sell_asset (string seller_account, string amount_to_sell, string symbol_to_sell, string min_to_receive, string symbol_to_receive, uint32_t timeout_sec=0, bool fill_or_kill=false, bool broadcast=false)
 
signed_transaction borrow_asset_ext (string seller_name, string amount_to_borrow, string asset_symbol, string amount_of_collateral, call_order_update_operation::extensions_type extensions, bool broadcast=false)
 
signed_transaction cancel_order (const limit_order_id_type &order_id, bool broadcast=false)
 
signed_transaction transfer (string from, string to, string amount, string asset_symbol, string memo, bool broadcast=false)
 
signed_transaction issue_asset (string to_account, string amount, string symbol, string memo, bool broadcast=false)
 
std::map< string, std::function< string(const fc::variant &, const fc::variants &) >, std::less<> > get_result_formatters () const
 
signed_transaction propose_parameter_change (const string &proposing_account, fc::time_point_sec expiration_time, const variant_object &changed_values, bool broadcast=false)
 
signed_transaction propose_fee_change (const string &proposing_account, fc::time_point_sec expiration_time, const variant_object &changed_fees, bool broadcast=false)
 
signed_transaction approve_proposal (const string &fee_paying_account, const string &proposal_id, const approval_delta &delta, bool broadcast=false)
 
void dbg_make_uia (string creator, string symbol)
 
void dbg_make_mia (string creator, string symbol)
 
void dbg_push_blocks (const std::string &src_filename, uint32_t count)
 
void dbg_generate_blocks (const std::string &debug_wif_key, uint32_t count)
 
void dbg_stream_json_objects (const std::string &filename)
 
void dbg_update_object (const fc::variant_object &update)
 
void use_network_node_api ()
 
void use_debug_api ()
 
void network_add_nodes (const vector< string > &nodes)
 
vector< variantnetwork_get_connected_peers ()
 
void flood_network (string prefix, uint32_t number_of_transactions)
 
operation get_prototype_operation (string operation_name)
 

Public Attributes

api_documentation method_documentation
 
wallet_apiself
 
string _wallet_filename
 
wallet_data _wallet
 
map< public_key_type, string > _keys
 
fc::sha512 _checksum
 
chain_id_type _chain_id
 
fc::api< login_api_remote_api
 
fc::api< database_api_remote_db
 
fc::api< network_broadcast_api_remote_net_broadcast
 
fc::api< history_api_remote_hist
 
fc::api< custom_operations_api_custom_operations
 
optional< fc::api< network_node_api > > _remote_net_node
 
optional< fc::api< graphene::debug_witness::debug_api > > _remote_debug
 
flat_map< string, operation_prototype_ops
 
static_variant_map _operation_which_map = create_static_variant_map< operation >()
 

Detailed Description

Definition at line 94 of file wallet_api_impl.hpp.

Constructor & Destructor Documentation

◆ wallet_api_impl()

graphene::wallet::detail::wallet_api_impl::wallet_api_impl ( wallet_api s,
const wallet_data initial_data,
fc::api< login_api rapi 
)

Definition at line 59 of file wallet_api_impl.cpp.

◆ ~wallet_api_impl()

graphene::wallet::detail::wallet_api_impl::~wallet_api_impl ( )
virtual

Definition at line 94 of file wallet_api_impl.cpp.

Member Function Documentation

◆ about()

fc::variant_object graphene::wallet::detail::wallet_api_impl::about ( ) const

Definition at line 136 of file wallet_api_impl.cpp.

◆ account_store_map()

signed_transaction graphene::wallet::detail::wallet_api_impl::account_store_map ( string  account,
string  catalog,
bool  remove,
flat_map< string, optional< string >>  key_values,
bool  broadcast 
)

Definition at line 116 of file wallet_account.cpp.

◆ add_operation_to_builder_transaction()

void graphene::wallet::detail::wallet_api_impl::add_operation_to_builder_transaction ( transaction_handle_type  transaction_handle,
const operation op 
)

Definition at line 36 of file wallet_builder.cpp.

◆ add_transaction_signature()

signed_transaction graphene::wallet::detail::wallet_api_impl::add_transaction_signature ( signed_transaction  tx,
bool  broadcast 
)

Definition at line 301 of file wallet_sign.cpp.

◆ approve_proposal()

signed_transaction graphene::wallet::detail::wallet_api_impl::approve_proposal ( const string &  fee_paying_account,
const string &  proposal_id,
const approval_delta delta,
bool  broadcast = false 
)

Definition at line 494 of file wallet_sign.cpp.

◆ asset_id_to_string()

std::string graphene::wallet::detail::wallet_api_impl::asset_id_to_string ( asset_id_type  id) const

Definition at line 29 of file wallet_asset.cpp.

◆ begin_builder_transaction()

transaction_handle_type graphene::wallet::detail::wallet_api_impl::begin_builder_transaction ( )

Definition at line 28 of file wallet_builder.cpp.

◆ bid_collateral()

signed_transaction graphene::wallet::detail::wallet_api_impl::bid_collateral ( string  bidder_name,
string  debt_amount,
string  debt_symbol,
string  additional_collateral,
bool  broadcast 
)

Definition at line 354 of file wallet_asset.cpp.

◆ borrow_asset_ext()

signed_transaction graphene::wallet::detail::wallet_api_impl::borrow_asset_ext ( string  seller_name,
string  amount_to_borrow,
string  asset_symbol,
string  amount_of_collateral,
call_order_update_operation::extensions_type  extensions,
bool  broadcast = false 
)

Definition at line 214 of file wallet_transfer.cpp.

◆ broadcast_transaction()

pair< transaction_id_type, signed_transaction > graphene::wallet::detail::wallet_api_impl::broadcast_transaction ( signed_transaction  tx)

Definition at line 112 of file wallet_network.cpp.

◆ cancel_order()

signed_transaction graphene::wallet::detail::wallet_api_impl::cancel_order ( const limit_order_id_type &  order_id,
bool  broadcast = false 
)

Definition at line 237 of file wallet_transfer.cpp.

◆ claim_asset_fee_pool()

signed_transaction graphene::wallet::detail::wallet_api_impl::claim_asset_fee_pool ( string  symbol,
string  amount,
bool  broadcast 
)

Definition at line 243 of file wallet_asset.cpp.

◆ copy_wallet_file()

bool graphene::wallet::detail::wallet_api_impl::copy_wallet_file ( string  destination_filename)

make a copy of the wallet file Note: this will not overwrite. It simply adds a version suffix.

Parameters
destination_filenamethe filename to save it to

Definition at line 268 of file wallet_api_impl.cpp.

◆ create_account_with_brain_key()

signed_transaction graphene::wallet::detail::wallet_api_impl::create_account_with_brain_key ( string  brain_key,
string  account_name,
string  registrar_account,
string  referrer_account,
bool  broadcast = false,
bool  save_wallet = true 
)

Definition at line 101 of file wallet_account.cpp.

◆ create_account_with_private_key()

signed_transaction graphene::wallet::detail::wallet_api_impl::create_account_with_private_key ( fc::ecc::private_key  owner_privkey,
string  account_name,
string  registrar_account,
string  referrer_account,
bool  broadcast = false,
bool  save_wallet = true 
)

Definition at line 222 of file wallet_account.cpp.

◆ create_asset()

signed_transaction graphene::wallet::detail::wallet_api_impl::create_asset ( string  issuer,
string  symbol,
uint8_t  precision,
asset_options  common,
fc::optional< bitasset_options bitasset_opts,
bool  broadcast = false 
)

Definition at line 88 of file wallet_asset.cpp.

◆ create_committee_member()

signed_transaction graphene::wallet::detail::wallet_api_impl::create_committee_member ( string  owner_account,
string  url,
bool  broadcast 
)

Definition at line 106 of file wallet_voting.cpp.

◆ create_witness()

signed_transaction graphene::wallet::detail::wallet_api_impl::create_witness ( string  owner_account,
string  url,
bool  broadcast 
)

Definition at line 196 of file wallet_voting.cpp.

◆ create_worker()

signed_transaction graphene::wallet::detail::wallet_api_impl::create_worker ( string  owner_account,
time_point_sec  work_begin_date,
time_point_sec  work_end_date,
share_type  daily_pay,
string  name,
string  url,
variant  worker_settings,
bool  broadcast 
)

Definition at line 246 of file wallet_voting.cpp.

◆ dbg_generate_blocks()

void graphene::wallet::detail::wallet_api_impl::dbg_generate_blocks ( const std::string &  debug_wif_key,
uint32_t  count 
)

Definition at line 54 of file wallet_debug.cpp.

◆ dbg_make_mia()

void graphene::wallet::detail::wallet_api_impl::dbg_make_mia ( string  creator,
string  symbol 
)

Definition at line 37 of file wallet_debug.cpp.

◆ dbg_make_uia()

void graphene::wallet::detail::wallet_api_impl::dbg_make_uia ( string  creator,
string  symbol 
)

Definition at line 28 of file wallet_debug.cpp.

◆ dbg_push_blocks()

void graphene::wallet::detail::wallet_api_impl::dbg_push_blocks ( const std::string &  src_filename,
uint32_t  count 
)

Definition at line 47 of file wallet_debug.cpp.

◆ dbg_stream_json_objects()

void graphene::wallet::detail::wallet_api_impl::dbg_stream_json_objects ( const std::string &  filename)

Definition at line 61 of file wallet_debug.cpp.

◆ dbg_update_object()

void graphene::wallet::detail::wallet_api_impl::dbg_update_object ( const fc::variant_object update)

Definition at line 68 of file wallet_debug.cpp.

◆ encrypt_keys()

void graphene::wallet::detail::wallet_api_impl::encrypt_keys ( )

Definition at line 125 of file wallet_sign.cpp.

◆ find_asset() [1/2]

optional< extended_asset_object > graphene::wallet::detail::wallet_api_impl::find_asset ( asset_id_type  id) const

Definition at line 37 of file wallet_asset.cpp.

◆ find_asset() [2/2]

optional< extended_asset_object > graphene::wallet::detail::wallet_api_impl::find_asset ( string  asset_symbol_or_id) const

Definition at line 43 of file wallet_asset.cpp.

◆ flood_network()

void graphene::wallet::detail::wallet_api_impl::flood_network ( string  prefix,
uint32_t  number_of_transactions 
)

Definition at line 62 of file wallet_network.cpp.

◆ fund_asset_fee_pool()

signed_transaction graphene::wallet::detail::wallet_api_impl::fund_asset_fee_pool ( string  from,
string  symbol,
string  amount,
bool  broadcast 
)

Definition at line 221 of file wallet_asset.cpp.

◆ get_account() [1/2]

account_object graphene::wallet::detail::wallet_api_impl::get_account ( account_id_type  id) const

Definition at line 193 of file wallet_account.cpp.

◆ get_account() [2/2]

account_object graphene::wallet::detail::wallet_api_impl::get_account ( string  account_name_or_id) const

Definition at line 202 of file wallet_account.cpp.

◆ get_account_id()

account_id_type graphene::wallet::detail::wallet_api_impl::get_account_id ( string  account_name_or_id) const

Definition at line 217 of file wallet_account.cpp.

◆ get_asset() [1/2]

extended_asset_object graphene::wallet::detail::wallet_api_impl::get_asset ( asset_id_type  id) const

Definition at line 63 of file wallet_asset.cpp.

◆ get_asset() [2/2]

extended_asset_object graphene::wallet::detail::wallet_api_impl::get_asset ( string  asset_symbol_or_id) const

Definition at line 70 of file wallet_asset.cpp.

◆ get_asset_id()

asset_id_type graphene::wallet::detail::wallet_api_impl::get_asset_id ( const string &  asset_symbol_or_id) const

Definition at line 77 of file wallet_asset.cpp.

◆ get_chain_properties()

chain_property_object graphene::wallet::detail::wallet_api_impl::get_chain_properties ( ) const

Definition at line 179 of file wallet_api_impl.cpp.

◆ get_committee_member()

committee_member_object graphene::wallet::detail::wallet_api_impl::get_committee_member ( string  owner_account)

Definition at line 159 of file wallet_voting.cpp.

◆ get_dynamic_global_properties()

dynamic_global_property_object graphene::wallet::detail::wallet_api_impl::get_dynamic_global_properties ( ) const

Definition at line 187 of file wallet_api_impl.cpp.

◆ get_global_properties()

global_property_object graphene::wallet::detail::wallet_api_impl::get_global_properties ( ) const

Definition at line 183 of file wallet_api_impl.cpp.

◆ get_htlc()

fc::optional< htlc_object > graphene::wallet::detail::wallet_api_impl::get_htlc ( const htlc_id_type &  htlc_id) const

Definition at line 182 of file wallet_transfer.cpp.

◆ get_key_references()

vector< flat_set< account_id_type > > graphene::wallet::detail::wallet_api_impl::get_key_references ( const vector< public_key_type > &  keys) const

Definition at line 424 of file wallet_account.cpp.

◆ get_object()

template<typename ID >
graphene::db::object_downcast_t<const ID&> graphene::wallet::detail::wallet_api_impl::get_object ( const ID &  id) const
inline

Definition at line 129 of file wallet_api_impl.hpp.

◆ get_owned_required_keys()

set< public_key_type > graphene::wallet::detail::wallet_api_impl::get_owned_required_keys ( signed_transaction tx,
bool  erase_existing_sigs = true 
)

Get the required public keys to sign the transaction which had been owned by us

NOTE, if erase_existing_sigs set to true, the original trasaction's signatures will be erased

Parameters
txThe transaction to be signed
erase_existing_sigsThe transaction could have been partially signed already, if set to false, the corresponding public key of existing signatures won't be returned. If set to true, the existing signatures will be erased and all required keys returned.

Definition at line 471 of file wallet_sign.cpp.

◆ get_private_key()

fc::ecc::private_key graphene::wallet::detail::wallet_api_impl::get_private_key ( const public_key_type id) const

Definition at line 406 of file wallet_sign.cpp.

◆ get_private_key_for_account()

fc::ecc::private_key graphene::wallet::detail::wallet_api_impl::get_private_key_for_account ( const account_object account) const

Definition at line 416 of file wallet_sign.cpp.

◆ get_prototype_operation()

operation graphene::wallet::detail::wallet_api_impl::get_prototype_operation ( string  operation_name)

Definition at line 203 of file wallet_api_impl.cpp.

◆ get_result_formatters()

std::map< string, std::function< string(const fc::variant &, const fc::variants &) >, std::less<> > graphene::wallet::detail::wallet_api_impl::get_result_formatters ( ) const

Definition at line 31 of file wallet_results.cpp.

◆ get_transaction_signers()

flat_set< public_key_type > graphene::wallet::detail::wallet_api_impl::get_transaction_signers ( const signed_transaction tx) const

Definition at line 489 of file wallet_sign.cpp.

◆ get_vesting_balances()

vector< vesting_balance_object_with_info > graphene::wallet::detail::wallet_api_impl::get_vesting_balances ( string  account_name)

Definition at line 289 of file wallet_account.cpp.

◆ get_wallet_filename()

string graphene::wallet::detail::wallet_api_impl::get_wallet_filename ( ) const

Definition at line 358 of file wallet_api_impl.cpp.

◆ get_witness()

witness_object graphene::wallet::detail::wallet_api_impl::get_witness ( string  owner_account)

Definition at line 124 of file wallet_voting.cpp.

◆ global_settle_asset()

signed_transaction graphene::wallet::detail::wallet_api_impl::global_settle_asset ( string  symbol,
price  settle_price,
bool  broadcast 
)

Definition at line 285 of file wallet_asset.cpp.

◆ htlc_create()

signed_transaction graphene::wallet::detail::wallet_api_impl::htlc_create ( const string &  source,
const string &  destination,
const string &  amount,
const string &  asset_symbol,
const string &  hash_algorithm,
const string &  preimage_hash,
uint32_t  preimage_size,
uint32_t  claim_period_seconds,
const string &  memo,
bool  broadcast = false 
)

Definition at line 92 of file wallet_transfer.cpp.

◆ htlc_extend()

signed_transaction graphene::wallet::detail::wallet_api_impl::htlc_extend ( const htlc_id_type &  htlc_id,
const string &  issuer,
uint32_t  seconds_to_add,
bool  broadcast 
)

Definition at line 157 of file wallet_transfer.cpp.

◆ htlc_redeem()

signed_transaction graphene::wallet::detail::wallet_api_impl::htlc_redeem ( const htlc_id_type &  htlc_id,
const string &  issuer,
const std::vector< char > &  preimage,
bool  broadcast 
)

Definition at line 132 of file wallet_transfer.cpp.

◆ import_balance()

vector< signed_transaction > graphene::wallet::detail::wallet_api_impl::import_balance ( string  name_or_id,
const vector< string > &  wif_keys,
bool  broadcast 
)

Definition at line 312 of file wallet_account.cpp.

◆ import_key()

bool graphene::wallet::detail::wallet_api_impl::import_key ( string  account_name_or_id,
string  wif_key 
)

Definition at line 428 of file wallet_sign.cpp.

◆ info()

fc::variant graphene::wallet::detail::wallet_api_impl::info ( ) const

Definition at line 110 of file wallet_api_impl.cpp.

◆ is_locked()

bool graphene::wallet::detail::wallet_api_impl::is_locked ( ) const

Definition at line 304 of file wallet_api_impl.cpp.

◆ issue_asset()

signed_transaction graphene::wallet::detail::wallet_api_impl::issue_asset ( string  to_account,
string  amount,
string  symbol,
string  memo,
bool  broadcast = false 
)

Definition at line 324 of file wallet_asset.cpp.

◆ load_wallet_file()

bool graphene::wallet::detail::wallet_api_impl::load_wallet_file ( string  wallet_filename = "")

Definition at line 363 of file wallet_api_impl.cpp.

◆ network_add_nodes()

void graphene::wallet::detail::wallet_api_impl::network_add_nodes ( const vector< string > &  nodes)

Definition at line 38 of file wallet_network.cpp.

◆ network_get_connected_peers()

vector< variant > graphene::wallet::detail::wallet_api_impl::network_get_connected_peers ( )

Definition at line 47 of file wallet_network.cpp.

◆ on_block_applied()

void graphene::wallet::detail::wallet_api_impl::on_block_applied ( const variant block_id)

Definition at line 192 of file wallet_api_impl.cpp.

◆ preview_builder_transaction()

transaction graphene::wallet::detail::wallet_api_impl::preview_builder_transaction ( transaction_handle_type  handle)

Definition at line 77 of file wallet_builder.cpp.

◆ propose_builder_transaction()

signed_transaction graphene::wallet::detail::wallet_api_impl::propose_builder_transaction ( transaction_handle_type  handle,
time_point_sec  expiration = time_point::now() + fc::minutes(1),
uint32_t  review_period_seconds = 0,
bool  broadcast = true 
)

Definition at line 101 of file wallet_builder.cpp.

◆ propose_builder_transaction2()

signed_transaction graphene::wallet::detail::wallet_api_impl::propose_builder_transaction2 ( transaction_handle_type  handle,
string  account_name_or_id,
time_point_sec  expiration = time_point::now() + fc::minutes(1),
uint32_t  review_period_seconds = 0,
bool  broadcast = true 
)

Definition at line 107 of file wallet_builder.cpp.

◆ propose_fee_change()

signed_transaction graphene::wallet::detail::wallet_api_impl::propose_fee_change ( const string &  proposing_account,
fc::time_point_sec  expiration_time,
const variant_object &  changed_fees,
bool  broadcast = false 
)

Definition at line 441 of file wallet_voting.cpp.

◆ propose_parameter_change()

signed_transaction graphene::wallet::detail::wallet_api_impl::propose_parameter_change ( const string &  proposing_account,
fc::time_point_sec  expiration_time,
const variant_object &  changed_values,
bool  broadcast = false 
)

Definition at line 410 of file wallet_voting.cpp.

◆ publish_asset_feed()

signed_transaction graphene::wallet::detail::wallet_api_impl::publish_asset_feed ( string  publishing_account,
string  symbol,
price_feed  feed,
bool  broadcast 
)

Definition at line 201 of file wallet_asset.cpp.

◆ quit()

void graphene::wallet::detail::wallet_api_impl::quit ( )

Definition at line 172 of file wallet_api_impl.cpp.

◆ read_memo()

string graphene::wallet::detail::wallet_api_impl::read_memo ( const memo_data md)

Definition at line 179 of file wallet_sign.cpp.

◆ register_account()

signed_transaction graphene::wallet::detail::wallet_api_impl::register_account ( string  name,
public_key_type  owner,
public_key_type  active,
string  registrar_account,
string  referrer_account,
uint32_t  referrer_percent,
bool  broadcast = false 
)

Definition at line 44 of file wallet_account.cpp.

◆ remove_builder_transaction()

void graphene::wallet::detail::wallet_api_impl::remove_builder_transaction ( transaction_handle_type  handle)

Definition at line 125 of file wallet_builder.cpp.

◆ replace_operation_in_builder_transaction()

void graphene::wallet::detail::wallet_api_impl::replace_operation_in_builder_transaction ( transaction_handle_type  handle,
uint32_t  operation_index,
const operation new_op 
)

Definition at line 43 of file wallet_builder.cpp.

◆ reserve_asset()

signed_transaction graphene::wallet::detail::wallet_api_impl::reserve_asset ( string  from,
string  amount,
string  symbol,
bool  broadcast 
)

Definition at line 265 of file wallet_asset.cpp.

◆ save_wallet_file()

void graphene::wallet::detail::wallet_api_impl::save_wallet_file ( string  wallet_filename = "")

Definition at line 428 of file wallet_api_impl.cpp.

◆ sell_asset()

signed_transaction graphene::wallet::detail::wallet_api_impl::sell_asset ( string  seller_account,
string  amount_to_sell,
string  symbol_to_sell,
string  min_to_receive,
string  symbol_to_receive,
uint32_t  timeout_sec = 0,
bool  fill_or_kill = false,
bool  broadcast = false 
)

Definition at line 192 of file wallet_transfer.cpp.

◆ set_desired_witness_and_committee_member_count()

signed_transaction graphene::wallet::detail::wallet_api_impl::set_desired_witness_and_committee_member_count ( string  account_to_modify,
uint16_t  desired_number_of_witnesses,
uint16_t  desired_number_of_committee_members,
bool  broadcast 
)

Definition at line 382 of file wallet_voting.cpp.

◆ set_fees_on_builder_transaction()

asset graphene::wallet::detail::wallet_api_impl::set_fees_on_builder_transaction ( transaction_handle_type  handle,
string  fee_asset = GRAPHENE_SYMBOL 
)

Definition at line 52 of file wallet_builder.cpp.

◆ set_operation_fees()

void graphene::wallet::detail::wallet_api_impl::set_operation_fees ( signed_transaction tx,
const fee_schedule s 
) const

Definition at line 197 of file wallet_api_impl.cpp.

◆ set_voting_proxy()

signed_transaction graphene::wallet::detail::wallet_api_impl::set_voting_proxy ( string  account_to_modify,
optional< string >  voting_account,
bool  broadcast 
)

Definition at line 351 of file wallet_voting.cpp.

◆ settle_asset()

signed_transaction graphene::wallet::detail::wallet_api_impl::settle_asset ( string  account_to_settle,
string  amount_to_settle,
string  symbol,
bool  broadcast 
)

Definition at line 305 of file wallet_asset.cpp.

◆ sign_builder_transaction()

signed_transaction graphene::wallet::detail::wallet_api_impl::sign_builder_transaction ( transaction_handle_type  transaction_handle,
bool  broadcast = true 
)

Definition at line 83 of file wallet_builder.cpp.

◆ sign_builder_transaction2()

signed_transaction graphene::wallet::detail::wallet_api_impl::sign_builder_transaction2 ( transaction_handle_type  transaction_handle,
const vector< public_key_type > &  signing_keys = vector<public_key_type>(),
bool  broadcast = true 
)

Definition at line 92 of file wallet_builder.cpp.

◆ sign_memo()

memo_data graphene::wallet::detail::wallet_api_impl::sign_memo ( string  from,
string  to,
string  memo 
)

Definition at line 137 of file wallet_sign.cpp.

◆ sign_message()

signed_message graphene::wallet::detail::wallet_api_impl::sign_message ( string  signer,
string  message 
)

Definition at line 206 of file wallet_sign.cpp.

◆ sign_transaction()

signed_transaction graphene::wallet::detail::wallet_api_impl::sign_transaction ( signed_transaction  tx,
bool  broadcast = false 
)

Definition at line 336 of file wallet_sign.cpp.

◆ sign_transaction2()

signed_transaction graphene::wallet::detail::wallet_api_impl::sign_transaction2 ( signed_transaction  tx,
const vector< public_key_type > &  signing_keys = vector<public_key_type>(),
bool  broadcast = false 
)

Definition at line 341 of file wallet_sign.cpp.

◆ transfer()

signed_transaction graphene::wallet::detail::wallet_api_impl::transfer ( string  from,
string  to,
string  amount,
string  asset_symbol,
string  memo,
bool  broadcast = false 
)

Definition at line 57 of file wallet_transfer.cpp.

◆ update_asset()

signed_transaction graphene::wallet::detail::wallet_api_impl::update_asset ( string  symbol,
optional< string >  new_issuer,
asset_options  new_options,
bool  broadcast 
)

Definition at line 110 of file wallet_asset.cpp.

◆ update_asset_feed_producers()

signed_transaction graphene::wallet::detail::wallet_api_impl::update_asset_feed_producers ( string  symbol,
flat_set< string >  new_feed_producers,
bool  broadcast 
)

Definition at line 178 of file wallet_asset.cpp.

◆ update_asset_issuer()

signed_transaction graphene::wallet::detail::wallet_api_impl::update_asset_issuer ( string  symbol,
string  new_issuer,
bool  broadcast 
)

Definition at line 136 of file wallet_asset.cpp.

◆ update_bitasset()

signed_transaction graphene::wallet::detail::wallet_api_impl::update_bitasset ( string  symbol,
bitasset_options  new_options,
bool  broadcast 
)

Definition at line 158 of file wallet_asset.cpp.

◆ update_witness()

signed_transaction graphene::wallet::detail::wallet_api_impl::update_witness ( string  witness_name,
string  url,
string  block_signing_key,
bool  broadcast 
)

Definition at line 224 of file wallet_voting.cpp.

◆ update_worker_votes()

signed_transaction graphene::wallet::detail::wallet_api_impl::update_worker_votes ( string  account,
worker_vote_delta  delta,
bool  broadcast 
)

Definition at line 41 of file wallet_voting.cpp.

◆ upgrade_account()

signed_transaction graphene::wallet::detail::wallet_api_impl::upgrade_account ( string  name,
bool  broadcast 
)

Definition at line 84 of file wallet_account.cpp.

◆ use_debug_api()

void graphene::wallet::detail::wallet_api_impl::use_debug_api ( )

Definition at line 75 of file wallet_debug.cpp.

◆ use_network_node_api()

void graphene::wallet::detail::wallet_api_impl::use_network_node_api ( )

Definition at line 125 of file wallet_network.cpp.

◆ verify_encapsulated_message()

bool graphene::wallet::detail::wallet_api_impl::verify_encapsulated_message ( const string &  message)

Definition at line 273 of file wallet_sign.cpp.

◆ verify_message()

bool graphene::wallet::detail::wallet_api_impl::verify_message ( const string &  message,
const string &  account,
int32_t  block,
const string &  msg_time,
const fc::ecc::compact_signature sig 
)

Definition at line 223 of file wallet_sign.cpp.

◆ verify_signed_message()

bool graphene::wallet::detail::wallet_api_impl::verify_signed_message ( const signed_message message)

Definition at line 239 of file wallet_sign.cpp.

◆ vote_for_committee_member()

signed_transaction graphene::wallet::detail::wallet_api_impl::vote_for_committee_member ( string  voting_account,
string  committee_member,
bool  approve,
bool  broadcast 
)

Definition at line 282 of file wallet_voting.cpp.

◆ vote_for_witness()

signed_transaction graphene::wallet::detail::wallet_api_impl::vote_for_witness ( string  voting_account,
string  witness,
bool  approve,
bool  broadcast 
)

Definition at line 317 of file wallet_voting.cpp.

◆ whitelist_account()

signed_transaction graphene::wallet::detail::wallet_api_impl::whitelist_account ( string  authorizing_account,
string  account_to_list,
account_whitelist_operation::account_listing  new_listing_status,
bool  broadcast 
)

Definition at line 273 of file wallet_account.cpp.

◆ withdraw_vesting()

signed_transaction graphene::wallet::detail::wallet_api_impl::withdraw_vesting ( string  witness_name,
string  amount,
string  asset_symbol,
bool  broadcast = false 
)

Definition at line 252 of file wallet_transfer.cpp.

Member Data Documentation

◆ _chain_id

chain_id_type graphene::wallet::detail::wallet_api_impl::_chain_id

Definition at line 412 of file wallet_api_impl.hpp.

◆ _checksum

fc::sha512 graphene::wallet::detail::wallet_api_impl::_checksum

Definition at line 410 of file wallet_api_impl.hpp.

◆ _custom_operations

fc::api<custom_operations_api> graphene::wallet::detail::wallet_api_impl::_custom_operations

Definition at line 417 of file wallet_api_impl.hpp.

◆ _keys

map<public_key_type,string> graphene::wallet::detail::wallet_api_impl::_keys

Definition at line 409 of file wallet_api_impl.hpp.

◆ _operation_which_map

static_variant_map graphene::wallet::detail::wallet_api_impl::_operation_which_map = create_static_variant_map< operation >()

Definition at line 423 of file wallet_api_impl.hpp.

◆ _prototype_ops

flat_map<string, operation> graphene::wallet::detail::wallet_api_impl::_prototype_ops

Definition at line 421 of file wallet_api_impl.hpp.

◆ _remote_api

fc::api<login_api> graphene::wallet::detail::wallet_api_impl::_remote_api

Definition at line 413 of file wallet_api_impl.hpp.

◆ _remote_db

fc::api<database_api> graphene::wallet::detail::wallet_api_impl::_remote_db

Definition at line 414 of file wallet_api_impl.hpp.

◆ _remote_debug

optional< fc::api<graphene::debug_witness::debug_api> > graphene::wallet::detail::wallet_api_impl::_remote_debug

Definition at line 419 of file wallet_api_impl.hpp.

◆ _remote_hist

fc::api<history_api> graphene::wallet::detail::wallet_api_impl::_remote_hist

Definition at line 416 of file wallet_api_impl.hpp.

◆ _remote_net_broadcast

fc::api<network_broadcast_api> graphene::wallet::detail::wallet_api_impl::_remote_net_broadcast

Definition at line 415 of file wallet_api_impl.hpp.

◆ _remote_net_node

optional< fc::api<network_node_api> > graphene::wallet::detail::wallet_api_impl::_remote_net_node

Definition at line 418 of file wallet_api_impl.hpp.

◆ _wallet

wallet_data graphene::wallet::detail::wallet_api_impl::_wallet

Definition at line 407 of file wallet_api_impl.hpp.

◆ _wallet_filename

string graphene::wallet::detail::wallet_api_impl::_wallet_filename

Definition at line 406 of file wallet_api_impl.hpp.

◆ method_documentation

api_documentation graphene::wallet::detail::wallet_api_impl::method_documentation

Definition at line 97 of file wallet_api_impl.hpp.

◆ self

wallet_api& graphene::wallet::detail::wallet_api_impl::self

Definition at line 98 of file wallet_api_impl.hpp.


The documentation for this class was generated from the following files: