DECENT
Functions
WalletCLI

Functions

vector< class transaction_detail_objectgraphene::app::database_api::search_account_history (account_id_type const &account, string const &order, object_id_type const &id, int limit) const
 Returns the operations on the named account. More...
 
bool graphene::wallet::wallet_api::copy_wallet_file (string destination_filename)
 Copy wallet file to a new file. More...
 
fc::ecc::private_key graphene::wallet::wallet_api::derive_private_key (const std::string &prefix_string, int sequence_number) const
 Derive private key from given prefix and sequence. More...
 
variant graphene::wallet::wallet_api::info ()
 Lists all available commands. More...
 
variant_object graphene::wallet::wallet_api::about () const
 Returns info such as client version, git version of graphene/fc, version of boost, openssl. More...
 
optional< signed_block_with_infographene::wallet::wallet_api::get_block (uint32_t num)
 Retrieve a full, signed block with info. More...
 
uint64_t graphene::wallet::wallet_api::get_account_count () const
 Returns the number of accounts registered on the blockchain. More...
 
vector< account_objectgraphene::wallet::wallet_api::list_my_accounts ()
 Lists all accounts controlled by this wallet. This returns a list of the full account objects for all accounts whose private keys we possess. More...
 
map< string, account_id_typegraphene::wallet::wallet_api::list_accounts (const string &lowerbound, uint32_t limit)
 Lists all accounts registered in the blockchain. This returns a list of all account names and their account ids, sorted by account name. More...
 
vector< account_objectgraphene::wallet::wallet_api::search_accounts (const string &term, const string &order, const string &id, uint32_t limit)
 Get names and IDs for registered accounts that match search term. More...
 
vector< assetgraphene::wallet::wallet_api::list_account_balances (const string &id)
 List the balances of an account. Each account can have multiple balances, one for each type of asset owned by that account. The returned list will only contain assets for which the account has a nonzero balance. More...
 
vector< asset_objectgraphene::wallet::wallet_api::list_assets (const string &lowerbound, uint32_t limit) const
 Lists all assets registered on the blockchain. More...
 
vector< class transaction_detail_objectgraphene::wallet::wallet_api::search_account_history (string const &account_name, string const &order, string const &id, int limit) const
 Returns the operations on the named account. More...
 
global_property_object graphene::wallet::wallet_api::get_global_properties () const
 Returns the block chain's slowly-changing settings. This object contains all of the properties of the blockchain that are fixed or that change only once per maintenance interval (daily) such as the current list of miners, block interval, etc. More...
 
dynamic_global_property_object graphene::wallet::wallet_api::get_dynamic_global_properties () const
 Returns the block chain's rapidly-changing properties. The returned object contains information that changes every block interval such as the head block number, the next miner, etc. More...
 
account_object graphene::wallet::wallet_api::get_account (string account_name_or_id) const
 Returns information about the given account. More...
 
asset_object graphene::wallet::wallet_api::get_asset (string asset_name_or_id) const
 Returns information about the given asset. More...
 
monitored_asset_options graphene::wallet::wallet_api::get_monitored_asset_data (string asset_name_or_id) const
 Returns the BitAsset-specific data for a given asset. Market-issued assets's behavior are determined both by their "BitAsset Data" and their basic asset data, as returned by get_asset(). More...
 
account_id_type graphene::wallet::wallet_api::get_account_id (string account_name_or_id) const
 Lookup the id of a named account. More...
 
asset_id_type graphene::wallet::wallet_api::get_asset_id (string asset_name_or_id) const
 Lookup the id of a named asset. More...
 
variant graphene::wallet::wallet_api::get_object (object_id_type id) const
 Returns the blockchain object corresponding to the given id. More...
 
string graphene::wallet::wallet_api::get_wallet_filename () const
 Returns the current wallet filename. More...
 
string graphene::wallet::wallet_api::get_private_key (public_key_type pubkey) const
 Get the WIF private key corresponding to a public key. The private key must already be in the wallet. More...
 
transaction_handle_type graphene::wallet::wallet_api::begin_builder_transaction ()
 
void graphene::wallet::wallet_api::add_operation_to_builder_transaction (transaction_handle_type transaction_handle, const operation &op)
 
void graphene::wallet::wallet_api::replace_operation_in_builder_transaction (transaction_handle_type handle, unsigned operation_index, const operation &new_op)
 
asset graphene::wallet::wallet_api::set_fees_on_builder_transaction (transaction_handle_type handle, string fee_asset=GRAPHENE_SYMBOL)
 
transaction graphene::wallet::wallet_api::preview_builder_transaction (transaction_handle_type handle)
 
signed_transaction graphene::wallet::wallet_api::sign_builder_transaction (transaction_handle_type transaction_handle, bool broadcast=true)
 
signed_transaction graphene::wallet::wallet_api::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 graphene::wallet::wallet_api::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 graphene::wallet::wallet_api::remove_builder_transaction (transaction_handle_type handle)
 
bool graphene::wallet::wallet_api::is_new () const
 Checks whether the wallet has just been created and has not yet had a password set. More...
 
bool graphene::wallet::wallet_api::is_locked () const
 Checks whether the wallet is locked (is unable to use its private keys). More...
 
void graphene::wallet::wallet_api::lock ()
 Locks the wallet immediately. More...
 
void graphene::wallet::wallet_api::unlock (string password)
 Unlocks the wallet. More...
 
void graphene::wallet::wallet_api::set_password (string password)
 Sets a new password on the wallet. More...
 
map< public_key_type, string > graphene::wallet::wallet_api::dump_private_keys ()
 Dumps all private keys owned by the wallet. More...
 
string graphene::wallet::wallet_api::help () const
 Returns a list of all commands supported by the wallet API. More...
 
string graphene::wallet::wallet_api::gethelp (const string &method) const
 Returns detailed help on a single API command. More...
 
bool graphene::wallet::wallet_api::load_wallet_file (string wallet_filename="")
 Loads a specified Graphene wallet. More...
 
void graphene::wallet::wallet_api::save_wallet_file (string wallet_filename="")
 Saves the current wallet to the given filename. More...
 
void graphene::wallet::wallet_api::set_wallet_filename (string wallet_filename)
 Sets the wallet filename used for future writes. More...
 
brain_key_info graphene::wallet::wallet_api::suggest_brain_key () const
 Suggests a safe brain key to use for creating your account. create_account_with_brain_key() requires you to specify a 'brain key', a long passphrase that provides enough entropy to generate cyrptographic keys. This function will suggest a suitably random string that should be easy to write down (and, with effort, memorize). More...
 
brain_key_info graphene::wallet::wallet_api::get_brain_key_info (string const &brain_key) const
 Calculates the private key and public key corresponding to any brain key. More...
 
string graphene::wallet::wallet_api::serialize_transaction (signed_transaction tx) const
 Converts a signed_transaction in JSON form to its binary representation. More...
 
bool graphene::wallet::wallet_api::import_key (string account_name_or_id, string wif_key)
 Imports the private key for an existing account. More...
 
map< string, bool > graphene::wallet::wallet_api::import_accounts (string filename, string password)
 Imports accounts from the other wallet file. More...
 
bool graphene::wallet::wallet_api::import_account_keys (string filename, string password, string src_account_name, string dest_account_name)
 Imports account keys from particular account from another wallet file to desired account located in wallet file currently used. More...
 
string graphene::wallet::wallet_api::normalize_brain_key (string s) const
 Transforms a brain key to reduce the chance of errors when re-entering the key from memory. More...
 
signed_transaction graphene::wallet::wallet_api::register_account (string name, public_key_type owner, public_key_type active, string registrar_account, bool broadcast=false)
 Registers a third party's account on the blockckain. More...
 
signed_transaction graphene::wallet::wallet_api::create_account_with_brain_key (string brain_key, string account_name, string registrar_account, bool broadcast=false)
 Creates a new account and registers it on the blockchain. More...
 
signed_transaction graphene::wallet::wallet_api::transfer (string from, string to, string amount, string asset_symbol, string memo, bool broadcast=false)
 Transfer an amount from one account to another. More...
 
pair< transaction_id_type, signed_transactiongraphene::wallet::wallet_api::transfer2 (string from, string to, string amount, string asset_symbol, string memo)
 This method works just like transfer, except it always broadcasts and returns the transaction ID along with the signed transaction. More...
 
void graphene::wallet::wallet_api::propose_transfer (string proposer, string from, string to, string amount, string asset_symbol, string memo, time_point_sec expiration)
 Encapsulates begin_builder_transaction(), add_operation_to_builder_transaction(), propose_builder_transaction2(), set_fees_on_builder_transaction() functions for transfer operation. More...
 
transaction_id_type graphene::wallet::wallet_api::get_transaction_id (const signed_transaction &trx) const
 This method is used to convert a JSON transaction to its transaction ID. More...
 
signed_transaction graphene::wallet::wallet_api::create_monitored_asset (string issuer, string symbol, uint8_t precision, string description, uint32_t feed_lifetime_sec, uint8_t minimum_feeds, bool broadcast=false)
 Creates a new user-issued or market-issued asset. More...
 
signed_transaction graphene::wallet::wallet_api::update_monitored_asset (string symbol, string new_issuer, string description, uint32_t feed_lifetime_sec, uint8_t minimum_feeds, bool broadcast=false)
 Update the options specific to a BitAsset. More...
 
asset graphene::wallet::wallet_api::price_to_dct (asset price)
 Converts price denominated in Monitored asset into DCT, using actual price feed. More...
 
signed_transaction graphene::wallet::wallet_api::publish_asset_feed (string publishing_account, string symbol, price_feed feed, bool broadcast=false)
 Publishes a price feed for the named asset. More...
 
map< string, miner_id_typegraphene::wallet::wallet_api::list_miners (const string &lowerbound, uint32_t limit)
 Lists all miners registered in the blockchain. This returns a list of all account names that own miners, and the associated miner id, sorted by name. This lists miners whether they are currently voted in or not. More...
 
miner_object graphene::wallet::wallet_api::get_miner (string owner_account)
 Returns information about the given miner. More...
 
signed_transaction graphene::wallet::wallet_api::create_miner (string owner_account, string url, bool broadcast=false)
 Creates a miner object owned by the given account. More...
 
signed_transaction graphene::wallet::wallet_api::update_miner (string miner_name, string url, string block_signing_key, bool broadcast=false)
 Update a miner object owned by the given account. More...
 
vector< vesting_balance_object_with_infographene::wallet::wallet_api::get_vesting_balances (string account_name)
 Get information about a vesting balance object. More...
 
signed_transaction graphene::wallet::wallet_api::withdraw_vesting (string miner_name, string amount, string asset_symbol, bool broadcast=false)
 Withdraw a vesting balance. More...
 
signed_transaction graphene::wallet::wallet_api::vote_for_miner (string voting_account, string miner, bool approve, bool broadcast=false)
 Vote for a given miner. More...
 
signed_transaction graphene::wallet::wallet_api::set_voting_proxy (string account_to_modify, optional< string > voting_account, bool broadcast=false)
 Set the voting proxy for an account. More...
 
signed_transaction graphene::wallet::wallet_api::set_desired_miner_count (string account_to_modify, uint16_t desired_number_of_miners, bool broadcast=false)
 Set your vote for the number of miners in the system. More...
 
signed_transaction graphene::wallet::wallet_api::sign_transaction (signed_transaction tx, bool broadcast=false)
 Signs a transaction. More...
 
operation graphene::wallet::wallet_api::get_prototype_operation (string operation_type)
 Returns an uninitialized object representing a given blockchain operation. More...
 
signed_transaction graphene::wallet::wallet_api::propose_parameter_change (const string &proposing_account, fc::time_point_sec expiration_time, const variant_object &changed_values, bool broadcast=false)
 Creates a transaction to propose a parameter change. More...
 
signed_transaction graphene::wallet::wallet_api::propose_fee_change (const string &proposing_account, fc::time_point_sec expiration_time, const variant_object &changed_values, bool broadcast=false)
 Propose a fee change. More...
 
signed_transaction graphene::wallet::wallet_api::approve_proposal (const string &fee_paying_account, const string &proposal_id, const approval_delta &delta, bool broadcast)
 Approve or disapprove a proposal. More...
 
void graphene::wallet::wallet_api::dbg_make_mia (string creator, string symbol)
 
void graphene::wallet::wallet_api::dbg_push_blocks (std::string src_filename, uint32_t count)
 
void graphene::wallet::wallet_api::dbg_generate_blocks (std::string debug_wif_key, uint32_t count)
 
void graphene::wallet::wallet_api::dbg_stream_json_objects (const std::string &filename)
 
void graphene::wallet::wallet_api::dbg_update_object (fc::variant_object update)
 
void graphene::wallet::wallet_api::flood_network (string prefix, uint32_t number_of_transactions)
 
void graphene::wallet::wallet_api::network_add_nodes (const vector< string > &nodes)
 
vector< variant > graphene::wallet::wallet_api::network_get_connected_peers ()
 
real_supply graphene::wallet::wallet_api::get_real_supply () const
 
signed_transaction graphene::wallet::wallet_api::set_publishing_manager (const string from, const vector< string > to, bool is_allowed, bool broadcast)
 This method is used to promote account to publishing manager. Such an account can grant or remove right to publish a content. Only DECENT account has permission to use this method. More...
 
signed_transaction graphene::wallet::wallet_api::set_publishing_right (const string from, const vector< string > to, bool is_allowed, bool broadcast)
 Allows account to publish a content. Only account with publishing manager status has permission to use this method. More...
 
vector< account_id_typegraphene::wallet::wallet_api::list_publishing_managers (const string &lower_bound_name, uint32_t limit)
 Get a list of accounts holding publishing manager status. More...
 
signed_transaction graphene::wallet::wallet_api::submit_content (string const &author, vector< pair< string, uint32_t >> co_authors, string const &URI, vector< regional_price_info > const &price_amounts, uint64_t size, fc::ripemd160 const &hash, vector< account_id_type > const &seeders, uint32_t quorum, fc::time_point_sec const &expiration, string const &publishing_fee_asset, string const &publishing_fee_amount, string const &synopsis, DInteger const &secret, decent::encrypt::CustodyData const &cd, bool broadcast)
 Submits or resubmits content to the blockchain. In a case of resubmit, co-authors, price and synopsis fields can be modified. More...
 
fc::ripemd160 graphene::wallet::wallet_api::submit_content_async (string const &author, vector< pair< string, uint32_t >> co_authors, string const &content_dir, string const &samples_dir, string const &protocol, vector< regional_price_info > const &price_amounts, vector< account_id_type > const &seeders, fc::time_point_sec const &expiration, string const &synopsis, bool broadcast)
 This function is used to create package, upload package and submit content in one step. More...
 
signed_transaction graphene::wallet::wallet_api::content_cancellation (string author, string URI, bool broadcast)
 This function can be used to cancel submitted content. This content is immediately not available to purchase. Seeders keep seeding this content in next 24 hours. More...
 
void graphene::wallet::wallet_api::download_content (string const &consumer, string const &URI, string const &region_code_from, bool broadcast=false)
 Downloads encrypted content specified by provided URI. More...
 
optional< content_download_statusgraphene::wallet::wallet_api::get_download_status (string consumer, string URI) const
 Get status about particular download process specified by provided URI. More...
 
signed_transaction graphene::wallet::wallet_api::request_to_buy (string consumer, string URI, string price_asset_name, string price_amount, string str_region_code_from, bool broadcast)
 This function is used to send a request to buy a content. This request is caught by seeders. More...
 
void graphene::wallet::wallet_api::seeding_startup (string account_id_type_or_name, DInteger content_private_key, string seeder_private_key, uint64_t free_space, uint32_t seeding_price, string packages_path)
 This method allows user to start seeding plugin from running application. More...
 
void graphene::wallet::wallet_api::leave_rating_and_comment (string consumer, string URI, uint64_t rating, string comment, bool broadcast=false)
 Rates and comments a content. More...
 
signed_transaction graphene::wallet::wallet_api::subscribe_to_author (string from, string to, string price_amount, string price_asset_symbol, bool broadcast)
 Creates a subscription to author. This function is used by consumers. More...
 
signed_transaction graphene::wallet::wallet_api::subscribe_by_author (string from, string to, bool broadcast)
 Creates a subscription to author. This function is used by author. More...
 
signed_transaction graphene::wallet::wallet_api::set_subscription (string account, bool allow_subscription, uint32_t subscription_period, string price_amount, string price_asset_symbol, bool broadcast)
 This function can be used to allow/disallow subscription. More...
 
signed_transaction graphene::wallet::wallet_api::set_automatic_renewal_of_subscription (string account_id_or_name, subscription_id_type subscription_id, bool automatic_renewal, bool broadcast)
 This function can be used to allow/disallow automatic renewal of expired subscription. More...
 
vector< subscription_objectgraphene::wallet::wallet_api::list_active_subscriptions_by_consumer (const string &account_id_or_name, const uint32_t count) const
 Get a list of consumer's active (not expired) subscriptions. More...
 
vector< subscription_objectgraphene::wallet::wallet_api::list_subscriptions_by_consumer (const string &account_id_or_name, const uint32_t count) const
 Get a list of consumer's subscriptions. More...
 
vector< subscription_objectgraphene::wallet::wallet_api::list_active_subscriptions_by_author (const string &account_id_or_name, const uint32_t count) const
 Get a list of active (not expired) subscriptions to author. More...
 
vector< subscription_objectgraphene::wallet::wallet_api::list_subscriptions_by_author (const string &account_id_or_name, const uint32_t count) const
 Get a list of subscriptions to author. More...
 
DInteger graphene::wallet::wallet_api::restore_encryption_key (std::string account, buying_id_type buying)
 Restores AES key( used to encrypt and decrypt a content) from key particles stored in a buying object. More...
 
el_gamal_key_pair graphene::wallet::wallet_api::generate_el_gamal_keys () const
 Generates private ElGamal key and corresponding public key. More...
 
el_gamal_key_pair_str graphene::wallet::wallet_api::get_el_gammal_key (string const &consumer) const
 Gets unique ElGamal key pair for consumer. More...
 
DInteger graphene::wallet::wallet_api::generate_encryption_key () const
 Generates AES encryption key. More...
 
vector< buying_objectgraphene::wallet::wallet_api::get_open_buyings () const
 Get a list of open buyings. More...
 
vector< buying_objectgraphene::wallet::wallet_api::get_open_buyings_by_URI (const string &URI) const
 Get a list of open buyings by URI. More...
 
vector< buying_objectgraphene::wallet::wallet_api::get_open_buyings_by_consumer (const string &account_id_or_name) const
 Get a list of open buyings by consumer. More...
 
vector< buying_objectgraphene::wallet::wallet_api::get_buying_history_objects_by_consumer (const string &account_id_or_name) const
 Get history buyings by consumer. More...
 
vector< buying_object_exgraphene::wallet::wallet_api::search_my_purchases (const string &account_id_or_name, const string &term, const string &order, const string &id, uint32_t count) const
 Get history buying objects by consumer that match search term. More...
 
optional< buying_objectgraphene::wallet::wallet_api::get_buying_by_consumer_URI (const string &account_id_or_name, const string &URI) const
 Get buying (open or history) by consumer and URI. More...
 
vector< rating_object_exgraphene::wallet::wallet_api::search_feedback (const string &user, const string &URI, const string &id, uint32_t count) const
 Search for term in contents (author, title and description) More...
 
optional< content_objectgraphene::wallet::wallet_api::get_content (const string &URI) const
 Get a content by URI. More...
 
vector< content_summarygraphene::wallet::wallet_api::search_content (const string &term, const string &order, const string &user, const string &region_code, const string &id, const string &type, uint32_t count) const
 Get a list of contents ordered alphabetically by search term. More...
 
vector< content_summarygraphene::wallet::wallet_api::search_user_content (const string &user, const string &term, const string &order, const string &region_code, const string &id, const string &type, uint32_t count) const
 Get a list of contents ordered alphabetically by search term. More...
 
vector< seeder_objectgraphene::wallet::wallet_api::list_publishers_by_price (uint32_t count) const
 Get a list of seeders by price, in increasing order. More...
 
vector< uint64_t > graphene::wallet::wallet_api::get_content_ratings (const string &URI) const
 Get a list of content ratings corresponding to the provided URI. More...
 
map< string, string > graphene::wallet::wallet_api::get_content_comments (const string &URI) const
 Get a list of content comments corresponding to the provided URI. More...
 
optional< vector< seeder_object > > graphene::wallet::wallet_api::list_seeders_by_upload (const uint32_t count) const
 Get a list of seeders ordered by total upload, in decreasing order. More...
 
std::pair< string, decent::encrypt::CustodyData > graphene::wallet::wallet_api::create_package (const std::string &content_dir, const std::string &samples_dir, const DInteger &aes_key) const
 Create package from selected files. More...
 
void graphene::wallet::wallet_api::extract_package (const std::string &package_hash, const std::string &output_dir, const DInteger &aes_key) const
 Extract selected package. More...
 
void graphene::wallet::wallet_api::download_package (const std::string &url) const
 Download package. More...
 
std::string graphene::wallet::wallet_api::upload_package (const std::string &package_hash, const std::string &protocol) const
 Start uploading package. More...
 
void graphene::wallet::wallet_api::remove_package (const std::string &package_hash) const
 Remove package. More...
 
void graphene::wallet::wallet_api::set_transfer_logs (bool enable) const
 Print statuses of all active transfers. More...
 
std::string graphene::wallet::wallet_api::sign_buffer (std::string const &str_buffer, std::string const &str_brainkey) const
 Sign a buffer. More...
 
bool graphene::wallet::wallet_api::verify_signature (std::string const &str_buffer, std::string const &str_publickey, std::string const &str_signature) const
 Verify if the signature is valid. More...
 

Detailed Description

This wallet assumes it is connected to the database server with a high-bandwidth, low-latency connection and performs minimal caching. This API could be provided locally to be used by a web interface.

Function Documentation

◆ about()

variant_object graphene::wallet::wallet_api::about ( ) const

Returns info such as client version, git version of graphene/fc, version of boost, openssl.

Returns
compile time info and client and dependencies versions

Definition at line 3510 of file wallet.cpp.

◆ add_operation_to_builder_transaction()

void graphene::wallet::wallet_api::add_operation_to_builder_transaction ( transaction_handle_type  transaction_handle,
const operation op 
)
Parameters
transaction_handle
op

Definition at line 3280 of file wallet.cpp.

◆ approve_proposal()

signed_transaction graphene::wallet::wallet_api::approve_proposal ( const string &  fee_paying_account,
const string &  proposal_id,
const approval_delta delta,
bool  broadcast 
)

Approve or disapprove a proposal.

Parameters
fee_paying_accountThe account paying the fee for the op.
proposal_idThe proposal to modify.
deltaMembers contain approvals to create or remove. In JSON you can leave empty members undefined.
broadcasttrue if you wish to broadcast the transaction
Returns
the signed version of the transaction

Definition at line 3727 of file wallet.cpp.

◆ begin_builder_transaction()

transaction_handle_type graphene::wallet::wallet_api::begin_builder_transaction ( )

Definition at line 3275 of file wallet.cpp.

◆ content_cancellation()

signed_transaction graphene::wallet::wallet_api::content_cancellation ( string  author,
string  URI,
bool  broadcast 
)

This function can be used to cancel submitted content. This content is immediately not available to purchase. Seeders keep seeding this content in next 24 hours.

Parameters
authorThe author of the content
URIThe URI of the content
broadcastTrue to broadcast the transaction on the network
Returns
signed transaction

Definition at line 3970 of file wallet.cpp.

◆ copy_wallet_file()

bool graphene::wallet::wallet_api::copy_wallet_file ( string  destination_filename)

Copy wallet file to a new file.

Parameters
destination_filename
Returns
true if the wallet is copied, false otherwise

Definition at line 3091 of file wallet.cpp.

◆ create_account_with_brain_key()

signed_transaction graphene::wallet::wallet_api::create_account_with_brain_key ( string  brain_key,
string  account_name,
string  registrar_account,
bool  broadcast = false 
)

Creates a new account and registers it on the blockchain.

Todo:
why no referrer_percent here?
See also
suggest_brain_key()
register_account()
Parameters
brain_keythe brain key used for generating the account's private keys
account_namethe name of the account, must be unique on the blockchain. Shorter names are more expensive to register; the rules are still in flux, but in general names of more than 8 characters with at least one digit will be cheap.
registrar_accountthe account which will pay the fee to register the user
broadcasttrue to broadcast the transaction on the network
Returns
the signed transaction registering the account

Definition at line 3529 of file wallet.cpp.

◆ create_miner()

signed_transaction graphene::wallet::wallet_api::create_miner ( string  owner_account,
string  url,
bool  broadcast = false 
)

Creates a miner object owned by the given account.

An account can have at most one miner object.

Parameters
owner_accountthe name or id of the account which is creating the miner
urla URL to include in the miner record in the blockchain. Clients may display this when showing a list of miners. May be blank.
broadcasttrue to broadcast the transaction on the network
Returns
the signed transaction registering a miner

Definition at line 3598 of file wallet.cpp.

◆ create_monitored_asset()

signed_transaction graphene::wallet::wallet_api::create_monitored_asset ( string  issuer,
string  symbol,
uint8_t  precision,
string  description,
uint32_t  feed_lifetime_sec,
uint8_t  minimum_feeds,
bool  broadcast = false 
)

Creates a new user-issued or market-issued asset.

Many options can be changed later using update_asset()

Right now this function is difficult to use because you must provide raw JSON data structures for the options objects, and those include prices and asset ids.

Parameters
issuerthe name or id of the account who will pay the fee and become the issuer of the new asset. This can be updated later
symbolthe ticker symbol of the new asset
precisionthe number of digits of precision to the right of the decimal point, must be less than or equal to 12
descriptionasset description
feed_lifetime_sectime before a price feed expires
minimum_feedsminimum number of unexpired feeds required to extract a median feed from
broadcasttrue to broadcast the transaction on the network
Returns
the signed transaction creating a new asset

Definition at line 3547 of file wallet.cpp.

◆ create_package()

std::pair< string, decent::encrypt::CustodyData > graphene::wallet::wallet_api::create_package ( const std::string &  content_dir,
const std::string &  samples_dir,
const DInteger &  aes_key 
) const

Create package from selected files.

Parameters
content_dirDirectory containing all content that should be packed
samples_dirDirectory containing samples of content
aes_keyAES key for encryption
Returns
package hash (ripemd160 hash of package content) and content custody data

Definition at line 4344 of file wallet.cpp.

◆ dbg_generate_blocks()

void graphene::wallet::wallet_api::dbg_generate_blocks ( std::string  debug_wif_key,
uint32_t  count 
)
Parameters
debug_wif_key
count

Definition at line 3676 of file wallet.cpp.

◆ dbg_make_mia()

void graphene::wallet::wallet_api::dbg_make_mia ( string  creator,
string  symbol 
)
Parameters
creator
symbol

Definition at line 3665 of file wallet.cpp.

◆ dbg_push_blocks()

void graphene::wallet::wallet_api::dbg_push_blocks ( std::string  src_filename,
uint32_t  count 
)
Parameters
src_filename
count

Definition at line 3671 of file wallet.cpp.

◆ dbg_stream_json_objects()

void graphene::wallet::wallet_api::dbg_stream_json_objects ( const std::string &  filename)
Parameters
filename

Definition at line 3681 of file wallet.cpp.

◆ dbg_update_object()

void graphene::wallet::wallet_api::dbg_update_object ( fc::variant_object  update)
Parameters
update

Definition at line 3686 of file wallet.cpp.

◆ derive_private_key()

fc::ecc::private_key graphene::wallet::wallet_api::derive_private_key ( const std::string &  prefix_string,
int  sequence_number 
) const

Derive private key from given prefix and sequence.

Parameters
prefix_string
sequence_number
Returns
private_key Derived private key

Definition at line 3515 of file wallet.cpp.

◆ download_content()

void graphene::wallet::wallet_api::download_content ( string const &  consumer,
string const &  URI,
string const &  region_code_from,
bool  broadcast = false 
)

Downloads encrypted content specified by provided URI.

Parameters
consumerConsumer of the content
URIThe URI of the content
region_code_fromTwo letter region code
broadcasttrue to broadcast the transaction on the network

Definition at line 3978 of file wallet.cpp.

◆ download_package()

void graphene::wallet::wallet_api::download_package ( const std::string &  url) const

Download package.

Parameters
urlMagnet or IPFS URL of package

Definition at line 4410 of file wallet.cpp.

◆ dump_private_keys()

map< public_key_type, string > graphene::wallet::wallet_api::dump_private_keys ( )

Dumps all private keys owned by the wallet.

The keys are printed in WIF format. You can import these keys into another wallet using import_key()

Returns
a map containing the private keys, indexed by their public key

Definition at line 3882 of file wallet.cpp.

◆ extract_package()

void graphene::wallet::wallet_api::extract_package ( const std::string &  package_hash,
const std::string &  output_dir,
const DInteger &  aes_key 
) const

Extract selected package.

Parameters
package_hashHash of package that needs to be extracted
output_dirDirectory where extracted files will be created
aes_keyAES key for decryption

Definition at line 4355 of file wallet.cpp.

◆ flood_network()

void graphene::wallet::wallet_api::flood_network ( string  prefix,
uint32_t  number_of_transactions 
)
Parameters
prefix
number_of_transactions

Definition at line 3701 of file wallet.cpp.

◆ generate_el_gamal_keys()

el_gamal_key_pair graphene::wallet::wallet_api::generate_el_gamal_keys ( ) const

Generates private ElGamal key and corresponding public key.

Returns
Pair of ElGamal keys

Definition at line 3244 of file wallet.cpp.

◆ generate_encryption_key()

DInteger graphene::wallet::wallet_api::generate_encryption_key ( ) const

Generates AES encryption key.

Returns
Random encryption key

Definition at line 3254 of file wallet.cpp.

◆ get_account()

account_object graphene::wallet::wallet_api::get_account ( string  account_name_or_id) const

Returns information about the given account.

Parameters
account_name_or_idthe name or id of the account to provide information about
Returns
the public account data stored in the blockchain

Definition at line 3335 of file wallet.cpp.

◆ get_account_count()

uint64_t graphene::wallet::wallet_api::get_account_count ( ) const

Returns the number of accounts registered on the blockchain.

Returns
the number of registered accounts

Definition at line 3101 of file wallet.cpp.

◆ get_account_id()

account_id_type graphene::wallet::wallet_api::get_account_id ( string  account_name_or_id) const

Lookup the id of a named account.

Parameters
account_name_or_idthe name of the account to look up
Returns
the id of the named account

Definition at line 3354 of file wallet.cpp.

◆ get_asset()

asset_object graphene::wallet::wallet_api::get_asset ( string  asset_name_or_id) const

Returns information about the given asset.

Parameters
asset_name_or_idthe symbol or id of the asset in question
Returns
the information about the asset stored in the block chain

Definition at line 3340 of file wallet.cpp.

◆ get_asset_id()

asset_id_type graphene::wallet::wallet_api::get_asset_id ( string  asset_name_or_id) const

Lookup the id of a named asset.

Parameters
asset_name_or_idthe symbol of an asset to look up
Returns
the id of the given asset

Definition at line 3359 of file wallet.cpp.

◆ get_block()

optional< signed_block_with_info > graphene::wallet::wallet_api::get_block ( uint32_t  num)

Retrieve a full, signed block with info.

Parameters
numID of the block
Returns
the referenced block with info, or null if no matching block was found

Definition at line 3096 of file wallet.cpp.

◆ get_brain_key_info()

brain_key_info graphene::wallet::wallet_api::get_brain_key_info ( string const &  brain_key) const

Calculates the private key and public key corresponding to any brain key.

Parameters
brain_keythe brain key to be used for calculation
Returns
the corresponding brain_key_info

Definition at line 3232 of file wallet.cpp.

◆ get_buying_by_consumer_URI()

optional< buying_object > graphene::wallet::wallet_api::get_buying_by_consumer_URI ( const string &  account_id_or_name,
const string &  URI 
) const

Get buying (open or history) by consumer and URI.

Parameters
account_id_or_nameConsumer of the buying to retrieve
URIURI of the buying to retrieve
Returns
Buying_objects corresponding to the provided consumer, or null if no matching buying was found

Definition at line 4130 of file wallet.cpp.

◆ get_buying_history_objects_by_consumer()

vector< buying_object > graphene::wallet::wallet_api::get_buying_history_objects_by_consumer ( const string &  account_id_or_name) const

Get history buyings by consumer.

Parameters
account_id_or_nameConsumer of the buyings to retrieve
Returns
History buying objects corresponding to the provided consumer

Definition at line 4045 of file wallet.cpp.

◆ get_content()

optional< content_object > graphene::wallet::wallet_api::get_content ( const string &  URI) const

Get a content by URI.

Parameters
URIURI of the content to retrieve
Returns
The content corresponding to the provided URI, or null if no matching content was found

Definition at line 4125 of file wallet.cpp.

◆ get_content_comments()

map< string, string > graphene::wallet::wallet_api::get_content_comments ( const string &  URI) const

Get a list of content comments corresponding to the provided URI.

Parameters
URIURI of the content
Returns
Map of accounts to corresponding comments

Definition at line 4147 of file wallet.cpp.

◆ get_content_ratings()

vector< uint64_t > graphene::wallet::wallet_api::get_content_ratings ( const string &  URI) const

Get a list of content ratings corresponding to the provided URI.

Parameters
URIURI of the content
Returns
The ratings of the content

Definition at line 4218 of file wallet.cpp.

◆ get_download_status()

optional< content_download_status > graphene::wallet::wallet_api::get_download_status ( string  consumer,
string  URI 
) const

Get status about particular download process specified by provided URI.

Parameters
consumerConsumer of the content
URIThe URI of the content
Returns
Download status, or null if no matching download process was found

Definition at line 3989 of file wallet.cpp.

◆ get_dynamic_global_properties()

dynamic_global_property_object graphene::wallet::wallet_api::get_dynamic_global_properties ( ) const

Returns the block chain's rapidly-changing properties. The returned object contains information that changes every block interval such as the head block number, the next miner, etc.

See also
get_global_properties() for less-frequently changing properties
Returns
the dynamic global properties

Definition at line 3742 of file wallet.cpp.

◆ get_el_gammal_key()

el_gamal_key_pair_str graphene::wallet::wallet_api::get_el_gammal_key ( string const &  consumer) const

Gets unique ElGamal key pair for consumer.

Returns
Pair of ElGamal keys

Definition at line 4297 of file wallet.cpp.

◆ get_global_properties()

global_property_object graphene::wallet::wallet_api::get_global_properties ( ) const

Returns the block chain's slowly-changing settings. This object contains all of the properties of the blockchain that are fixed or that change only once per maintenance interval (daily) such as the current list of miners, block interval, etc.

See also
get_dynamic_global_properties() for frequently changing properties
Returns
the global properties

Definition at line 3737 of file wallet.cpp.

◆ get_miner()

miner_object graphene::wallet::wallet_api::get_miner ( string  owner_account)

Returns information about the given miner.

s

Parameters
owner_accountthe name or id of the miner account owner, or the id of the miner
Returns
the information about the miner stored in the block chain

Definition at line 3593 of file wallet.cpp.

◆ get_monitored_asset_data()

monitored_asset_options graphene::wallet::wallet_api::get_monitored_asset_data ( string  asset_name_or_id) const

Returns the BitAsset-specific data for a given asset. Market-issued assets's behavior are determined both by their "BitAsset Data" and their basic asset data, as returned by get_asset().

Parameters
asset_name_or_idthe symbol or id of the BitAsset in question
Returns
the BitAsset-specific data for this asset

Definition at line 3347 of file wallet.cpp.

◆ get_object()

variant graphene::wallet::wallet_api::get_object ( object_id_type  id) const

Returns the blockchain object corresponding to the given id.

This generic function can be used to retrieve any object from the blockchain that is assigned an ID. Certain types of objects have specialized convenience functions to return their objects – e.g., assets have get_asset(), accounts have get_account(), but this function will work for any object.

Parameters
idthe id of the object to return
Returns
the requested object

Definition at line 3265 of file wallet.cpp.

◆ get_open_buyings()

vector< buying_object > graphene::wallet::wallet_api::get_open_buyings ( ) const

Get a list of open buyings.

Returns
Open buying objects

Definition at line 4029 of file wallet.cpp.

◆ get_open_buyings_by_consumer()

vector< buying_object > graphene::wallet::wallet_api::get_open_buyings_by_consumer ( const string &  account_id_or_name) const

Get a list of open buyings by consumer.

Parameters
account_id_or_nameConsumer of the buyings to retrieve
Returns
Open buyings corresponding to the provided consumer

Definition at line 4039 of file wallet.cpp.

◆ get_open_buyings_by_URI()

vector< buying_object > graphene::wallet::wallet_api::get_open_buyings_by_URI ( const string &  URI) const

Get a list of open buyings by URI.

Parameters
URIURI of the buyings to retrieve
Returns
Open buyings corresponding to the provided URI

Definition at line 4034 of file wallet.cpp.

◆ get_private_key()

string graphene::wallet::wallet_api::get_private_key ( public_key_type  pubkey) const

Get the WIF private key corresponding to a public key. The private key must already be in the wallet.

Parameters
pubkeyPublic key
Returns
WIF private key corresponding to a public key

Definition at line 3889 of file wallet.cpp.

◆ get_prototype_operation()

operation graphene::wallet::wallet_api::get_prototype_operation ( string  operation_type)

Returns an uninitialized object representing a given blockchain operation.

This returns a default-initialized object of the given type; it can be used during early development of the wallet when we don't yet have custom commands for creating all of the operations the blockchain supports.

Any operation the blockchain supports can be created using the transaction builder's add_operation_to_builder_transaction() , but to do that from the CLI you need to know what the JSON form of the operation looks like. This will give you a template you can fill in. It's better than nothing.

Parameters
operation_typethe type of operation to return, must be one of the operations defined in graphene/chain/operations.hpp (e.g., "global_parameters_update_operation")
Returns
a default-constructed operation of the given type

Definition at line 3660 of file wallet.cpp.

◆ get_real_supply()

real_supply graphene::wallet::wallet_api::get_real_supply ( ) const

Get current supply of the core asset

Definition at line 3911 of file wallet.cpp.

◆ get_transaction_id()

transaction_id_type graphene::wallet::wallet_api::get_transaction_id ( const signed_transaction trx) const
inline

This method is used to convert a JSON transaction to its transaction ID.

Parameters
trxSigned transaction
Returns

Definition at line 903 of file wallet.hpp.

◆ get_vesting_balances()

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

Get information about a vesting balance object.

Parameters
account_nameAn account name, account ID, or vesting balance object ID.

Definition at line 3614 of file wallet.cpp.

◆ get_wallet_filename()

string graphene::wallet::wallet_api::get_wallet_filename ( ) const

Returns the current wallet filename.

This is the filename that will be used when automatically saving the wallet.

See also
set_wallet_filename()
Returns
the wallet filename

Definition at line 3270 of file wallet.cpp.

◆ gethelp()

string graphene::wallet::wallet_api::gethelp ( const string &  method) const

Returns detailed help on a single API command.

Parameters
methodthe name of the API command you want help with
Returns
a multi-line string suitable for displaying on a terminal

Definition at line 3765 of file wallet.cpp.

◆ help()

string graphene::wallet::wallet_api::help ( ) const

Returns a list of all commands supported by the wallet API.

This lists each command, along with its arguments and return types. For more detailed help on a single command, use get_help()

Returns
a multi-line string suitable for displaying on a terminal

Definition at line 3747 of file wallet.cpp.

◆ import_account_keys()

bool graphene::wallet::wallet_api::import_account_keys ( string  filename,
string  password,
string  src_account_name,
string  dest_account_name 
)

Imports account keys from particular account from another wallet file to desired account located in wallet file currently used.

Parameters
filenameThe filename of the wallet JSON file
passwordUser's password to the wallet
src_account_nameName of the source account
dest_account_nameName of the destination account
Returns
true if the keys were imported

Definition at line 3453 of file wallet.cpp.

◆ import_accounts()

map< string, bool > graphene::wallet::wallet_api::import_accounts ( string  filename,
string  password 
)

Imports accounts from the other wallet file.

Parameters
filenameThe filename of the wallet JSON file
passwordUser's password to the wallet
Returns
mapped account names to boolean values indicating whether the account was successfully imported

Definition at line 3383 of file wallet.cpp.

◆ import_key()

bool graphene::wallet::wallet_api::import_key ( string  account_name_or_id,
string  wif_key 
)

Imports the private key for an existing account.

The private key must match either an owner key or an active key for the named account.

See also
dump_private_keys()
Parameters
account_name_or_idthe account owning the key
wif_keythe private key in WIF format
Returns
true if the key was imported

Definition at line 3364 of file wallet.cpp.

◆ info()

variant graphene::wallet::wallet_api::info ( )

Lists all available commands.

Returns
List of all available commands

Definition at line 3505 of file wallet.cpp.

◆ is_locked()

bool graphene::wallet::wallet_api::is_locked ( ) const

Checks whether the wallet is locked (is unable to use its private keys).

This state can be changed by calling lock() or unlock().

Returns
true if the wallet is locked

Definition at line 3837 of file wallet.cpp.

◆ is_new()

bool graphene::wallet::wallet_api::is_new ( ) const

Checks whether the wallet has just been created and has not yet had a password set.

Calling set_password will transition the wallet to the locked state.

Returns
true if the wallet is new

Definition at line 3841 of file wallet.cpp.

◆ leave_rating_and_comment()

void graphene::wallet::wallet_api::leave_rating_and_comment ( string  consumer,
string  URI,
uint64_t  rating,
string  comment,
bool  broadcast = false 
)

Rates and comments a content.

Parameters
consumerConsumer giving the rating
URIThe URI of the content
ratingRating
commentComment
broadcasttrue to broadcast the transaction on the network

Definition at line 4005 of file wallet.cpp.

◆ list_account_balances()

vector< asset > graphene::wallet::wallet_api::list_account_balances ( const string &  id)

List the balances of an account. Each account can have multiple balances, one for each type of asset owned by that account. The returned list will only contain assets for which the account has a nonzero balance.

Parameters
idthe name or id of the account whose balances you want
Returns
a list of the given account's balances

Definition at line 3121 of file wallet.cpp.

◆ list_accounts()

map< string, account_id_type > graphene::wallet::wallet_api::list_accounts ( const string &  lowerbound,
uint32_t  limit 
)

Lists all accounts registered in the blockchain. This returns a list of all account names and their account ids, sorted by account name.

Use the lowerbound and limit parameters to page through the list. To retrieve all accounts, start by setting lowerbound to the empty string "", and then each iteration, pass the last account name returned as the lowerbound for the next list_accounts() call.

Parameters
lowerboundthe name of the first account to return. If the named account does not exist, the list will start at the account that comes after lowerbound
limitthe maximum number of accounts to return (max: 1000)
Returns
a list of accounts mapping account names to account ids

Definition at line 3111 of file wallet.cpp.

◆ list_active_subscriptions_by_author()

vector< subscription_object > graphene::wallet::wallet_api::list_active_subscriptions_by_author ( const string &  account_id_or_name,
const uint32_t  count 
) const

Get a list of active (not expired) subscriptions to author.

Parameters
account_id_or_nameThe name or id of the author
countMaximum number of subscriptions to fetch (must not exceed 100)
Returns
List of active subscription objects corresponding to the provided author

Definition at line 4274 of file wallet.cpp.

◆ list_active_subscriptions_by_consumer()

vector< subscription_object > graphene::wallet::wallet_api::list_active_subscriptions_by_consumer ( const string &  account_id_or_name,
const uint32_t  count 
) const

Get a list of consumer's active (not expired) subscriptions.

Parameters
account_id_or_nameThe name or id of the consumer
countMaximum number of subscriptions to fetch (must not exceed 100)
Returns
List of active subscription objects corresponding to the provided consumer

Definition at line 4262 of file wallet.cpp.

◆ list_assets()

vector< asset_object > graphene::wallet::wallet_api::list_assets ( const string &  lowerbound,
uint32_t  limit 
) const

Lists all assets registered on the blockchain.

To list all assets, pass the empty string "" for the lowerbound to start at the beginning of the list, and iterate as necessary.

Parameters
lowerboundthe symbol of the first asset to include in the list.
limitthe maximum number of assets to return (max: 100)
Returns
the list of asset objects, ordered by symbol

Definition at line 3128 of file wallet.cpp.

◆ list_miners()

map< string, miner_id_type > graphene::wallet::wallet_api::list_miners ( const string &  lowerbound,
uint32_t  limit 
)

Lists all miners registered in the blockchain. This returns a list of all account names that own miners, and the associated miner id, sorted by name. This lists miners whether they are currently voted in or not.

Use the lowerbound and limit parameters to page through the list. To retrieve all miners, start by setting lowerbound to the empty string "", and then each iteration, pass the last miner name returned as the lowerbound for the next list_miners() call.

Parameters
lowerboundthe name of the first miner to return. If the named miner does not exist, the list will start at the miner that comes after lowerbound
limitthe maximum number of miners to return (max: 1000)
Returns
a list of miners mapping miner names to miner ids

Definition at line 3588 of file wallet.cpp.

◆ list_my_accounts()

vector< account_object > graphene::wallet::wallet_api::list_my_accounts ( )

Lists all accounts controlled by this wallet. This returns a list of the full account objects for all accounts whose private keys we possess.

Returns
a list of account objects

Definition at line 3106 of file wallet.cpp.

◆ list_publishers_by_price()

vector< seeder_object > graphene::wallet::wallet_api::list_publishers_by_price ( uint32_t  count) const

Get a list of seeders by price, in increasing order.

Parameters
countMaximum number of seeders to retrieve
Returns
The seeders found

Definition at line 4213 of file wallet.cpp.

◆ list_publishing_managers()

vector< account_id_type > graphene::wallet::wallet_api::list_publishing_managers ( const string &  lower_bound_name,
uint32_t  limit 
)

Get a list of accounts holding publishing manager status.

Parameters
lower_bound_nameThe name of the first account to return. If the named account does not exist, the list will start at the account that comes after lowerbound
limitThe maximum number of accounts to return (max: 100)
Returns
List of accounts

Definition at line 3932 of file wallet.cpp.

◆ list_seeders_by_upload()

optional< vector< seeder_object > > graphene::wallet::wallet_api::list_seeders_by_upload ( const uint32_t  count) const

Get a list of seeders ordered by total upload, in decreasing order.

Parameters
countMaximum number of seeders to retrieve
Returns
The seeders found

Definition at line 4223 of file wallet.cpp.

◆ list_subscriptions_by_author()

vector< subscription_object > graphene::wallet::wallet_api::list_subscriptions_by_author ( const string &  account_id_or_name,
const uint32_t  count 
) const

Get a list of subscriptions to author.

Parameters
account_id_or_nameThe name or id of the author
countMaximum number of subscriptions to fetch (must not exceed 100)
Returns
List of subscription objects corresponding to the provided author

Definition at line 4338 of file wallet.cpp.

◆ list_subscriptions_by_consumer()

vector< subscription_object > graphene::wallet::wallet_api::list_subscriptions_by_consumer ( const string &  account_id_or_name,
const uint32_t  count 
) const

Get a list of consumer's subscriptions.

Parameters
account_id_or_nameThe name or id of the consumer
countMaximum number of subscriptions to fetch (must not exceed 100)
Returns
List of subscription objects corresponding to the provided consumer

Definition at line 4268 of file wallet.cpp.

◆ load_wallet_file()

bool graphene::wallet::wallet_api::load_wallet_file ( string  wallet_filename = "")

Loads a specified Graphene wallet.

The current wallet is closed before the new wallet is loaded.

Warning
This does not change the filename that will be used for future wallet writes, so this may cause you to overwrite your original wallet unless you also call set_wallet_filename()
Parameters
wallet_filenamethe filename of the wallet JSON file to load. If wallet_filename is empty, it reloads the existing wallet file
Returns
true if the specified wallet is loaded

Definition at line 3821 of file wallet.cpp.

◆ lock()

void graphene::wallet::wallet_api::lock ( )

Locks the wallet immediately.

Definition at line 3851 of file wallet.cpp.

◆ network_add_nodes()

void graphene::wallet::wallet_api::network_add_nodes ( const vector< string > &  nodes)
Parameters
nodes

Definition at line 3691 of file wallet.cpp.

◆ network_get_connected_peers()

vector< variant > graphene::wallet::wallet_api::network_get_connected_peers ( )

Definition at line 3696 of file wallet.cpp.

◆ normalize_brain_key()

string graphene::wallet::wallet_api::normalize_brain_key ( string  s) const

Transforms a brain key to reduce the chance of errors when re-entering the key from memory.

This takes a user-supplied brain key and normalizes it into the form used for generating private keys. In particular, this upper-cases all ASCII characters and collapses multiple spaces into one.

Parameters
sthe brain key as supplied by the user
Returns
the brain key in its normalized form

Definition at line 3500 of file wallet.cpp.

◆ preview_builder_transaction()

transaction graphene::wallet::wallet_api::preview_builder_transaction ( transaction_handle_type  handle)
Parameters
handle

Definition at line 3301 of file wallet.cpp.

◆ price_to_dct()

asset graphene::wallet::wallet_api::price_to_dct ( asset  price)

Converts price denominated in Monitored asset into DCT, using actual price feed.

Parameters
priceprice in DCT or monitored asset
Returns
price in DCT

Definition at line 3983 of file wallet.cpp.

◆ propose_builder_transaction()

signed_transaction graphene::wallet::wallet_api::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 
)
Parameters
handle
expiration
review_period_seconds
broadcasttrue to broadcast the transaction on the network
Returns

Definition at line 3311 of file wallet.cpp.

◆ propose_builder_transaction2()

signed_transaction graphene::wallet::wallet_api::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 
)
Parameters
handle
account_name_or_id
expiration
review_period_seconds
broadcasttrue to broadcast the transaction on the network
Returns

Definition at line 3320 of file wallet.cpp.

◆ propose_fee_change()

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

Propose a fee change.

Parameters
proposing_accountThe account paying the fee to propose the tx
expiration_timeTimestamp specifying when the proposal will either take effect or expire.
changed_valuesMap of operation type to new fee. Operations may be specified by name or ID. The "scale" key changes the scale. All other operations will maintain current values.
broadcasttrue if you wish to broadcast the transaction
Returns
the signed version of the transaction

Definition at line 3717 of file wallet.cpp.

◆ propose_parameter_change()

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

Creates a transaction to propose a parameter change.

Multiple parameters can be specified if an atomic change is desired.

Parameters
proposing_accountThe account paying the fee to propose the tx
expiration_timeTimestamp specifying when the proposal will either take effect or expire.
changed_valuesThe values to change; all other chain parameters are filled in with default values
broadcasttrue if you wish to broadcast the transaction
Returns
the signed version of the transaction

Definition at line 3707 of file wallet.cpp.

◆ propose_transfer()

void graphene::wallet::wallet_api::propose_transfer ( string  proposer,
string  from,
string  to,
string  amount,
string  asset_symbol,
string  memo,
time_point_sec  expiration 
)

Encapsulates begin_builder_transaction(), add_operation_to_builder_transaction(), propose_builder_transaction2(), set_fees_on_builder_transaction() functions for transfer operation.

Parameters
proposerProposer
fromthe name or id of the account sending the funds
tothe name or id of the account receiving the funds
amountthe amount to send (in nominal units – to send half of a BTS, specify 0.5)
asset_symbolthe symbol or id of the asset to send
memoa memo to attach to the transaction. The memo will be encrypted in the transaction and readable for the receiver. There is no length limit other than the limit imposed by maximum transaction size, but transaction increase with transaction size
expirationexpiration time

Definition at line 3559 of file wallet.cpp.

◆ publish_asset_feed()

signed_transaction graphene::wallet::wallet_api::publish_asset_feed ( string  publishing_account,
string  symbol,
price_feed  feed,
bool  broadcast = false 
)

Publishes a price feed for the named asset.

Price feed providers use this command to publish their price feeds for market-issued assets. A price feed is used to tune the market for a particular market-issued asset. For each value in the feed, the median across all miner feeds for that asset is calculated and the market for the asset is configured with the median of that value.

Parameters
publishing_accountthe account publishing the price feed
symbolthe name or id of the asset whose feed we're publishing
feedthe price_feed object for particular market-issued asset
broadcasttrue to broadcast the transaction on the network
Returns
the signed transaction updating the price feed for the given asset

Definition at line 3580 of file wallet.cpp.

◆ register_account()

signed_transaction graphene::wallet::wallet_api::register_account ( string  name,
public_key_type  owner,
public_key_type  active,
string  registrar_account,
bool  broadcast = false 
)

Registers a third party's account on the blockckain.

This function is used to register an account for which you do not own the private keys. When acting as a registrar, an end user will generate their own private keys and send you the public keys. The registrar will use this function to register the account on behalf of the end user.

See also
create_account_with_brain_key()
Parameters
namethe name of the account, must be unique on the blockchain. Shorter names are more expensive to register; the rules are still in flux, but in general names of more than 8 characters with at least one digit will be cheap.
ownerthe owner key for the new account
activethe active key for the new account
registrar_accountthe account which will pay the fee to register the user
broadcasttrue to broadcast the transaction on the network
Returns
the signed transaction registering the account

Definition at line 3520 of file wallet.cpp.

◆ remove_builder_transaction()

void graphene::wallet::wallet_api::remove_builder_transaction ( transaction_handle_type  handle)
Parameters
handle

Definition at line 3330 of file wallet.cpp.

◆ remove_package()

void graphene::wallet::wallet_api::remove_package ( const std::string &  package_hash) const

Remove package.

Parameters
package_hashHash of package that needs to be removed

Definition at line 4405 of file wallet.cpp.

◆ replace_operation_in_builder_transaction()

void graphene::wallet::wallet_api::replace_operation_in_builder_transaction ( transaction_handle_type  handle,
unsigned  operation_index,
const operation new_op 
)
Parameters
handle
operation_index
new_op

Definition at line 3285 of file wallet.cpp.

◆ request_to_buy()

signed_transaction graphene::wallet::wallet_api::request_to_buy ( string  consumer,
string  URI,
string  price_asset_name,
string  price_amount,
string  str_region_code_from,
bool  broadcast 
)

This function is used to send a request to buy a content. This request is caught by seeders.

Parameters
consumerConsumer of the content
URIThe URI of the content
price_asset_nameTicker symbol of the asset which will be used to buy content
price_amountThe price of the content
str_region_code_fromTwo letter region code
broadcasttrue to broadcast the transaction on the network
Returns
The signed transaction requesting buying of the content

Definition at line 3995 of file wallet.cpp.

◆ restore_encryption_key()

DInteger graphene::wallet::wallet_api::restore_encryption_key ( std::string  account,
buying_id_type  buying 
)

Restores AES key( used to encrypt and decrypt a content) from key particles stored in a buying object.

Parameters
accountConsumers account id or name
buyingThe buying object containing key particles
Returns
restored AES key from particles

Definition at line 4024 of file wallet.cpp.

◆ save_wallet_file()

void graphene::wallet::wallet_api::save_wallet_file ( string  wallet_filename = "")

Saves the current wallet to the given filename.

Warning
This does not change the wallet filename that will be used for future writes, so think of this function as 'Save a Copy As...' instead of 'Save As...'. Use set_wallet_filename() to make the filename persist.
Parameters
wallet_filenamethe filename of the new wallet JSON file to create or overwrite. If wallet_filename is empty, save to the current filename.

Definition at line 3826 of file wallet.cpp.

◆ search_account_history() [1/2]

vector< transaction_detail_object > graphene::app::database_api::search_account_history ( account_id_type const &  account,
string const &  order,
object_id_type const &  id,
int  limit 
) const

Returns the operations on the named account.

This returns a list of transaction detail object, which describe activity on the account.

Parameters
accountthe account to search
orderSort data by field
idobject_id to start searching from
limitthe number of entries to return (starting from the most recent) (max 100)
Returns
a list of transaction_detail_object

Definition at line 698 of file database_api.cpp.

◆ search_account_history() [2/2]

vector< transaction_detail_object > graphene::wallet::wallet_api::search_account_history ( string const &  account_name,
string const &  order,
string const &  id,
int  limit 
) const

Returns the operations on the named account.

This returns a list of transaction detail object, which describe activity on the account.

Parameters
account_namethe name or id of the account
orderSort data by field
idobject_id to start searching from
limitthe number of entries to return (starting from the most recent) (max 100)
Returns
a list of transaction_detail_object

Definition at line 3162 of file wallet.cpp.

◆ search_accounts()

vector< account_object > graphene::wallet::wallet_api::search_accounts ( const string &  term,
const string &  order,
const string &  id,
uint32_t  limit 
)

Get names and IDs for registered accounts that match search term.

Parameters
termwill try to partially match account name or id
limitMaximum number of results to return – must not exceed 1000
orderSort data by field
idobject_id to start searching from
Returns
Map of account names to corresponding IDs

Definition at line 3116 of file wallet.cpp.

◆ search_content()

vector< content_summary > graphene::wallet::wallet_api::search_content ( const string &  term,
const string &  order,
const string &  user,
const string &  region_code,
const string &  id,
const string &  type,
uint32_t  count 
) const

Get a list of contents ordered alphabetically by search term.

Parameters
termSearch term
orderOrder field
userContent owner
region_codeTwo letter region code
idThe id of content object to start searching from
typeThe application and content type to be filtered
countMaximum number of contents to fetch (must not exceed 100)
Returns
The contents found

Definition at line 4136 of file wallet.cpp.

◆ search_feedback()

vector< rating_object_ex > graphene::wallet::wallet_api::search_feedback ( const string &  user,
const string &  URI,
const string &  id,
uint32_t  count 
) const

Search for term in contents (author, title and description)

Parameters
userFeedback author
URIThe content object URI
idThe id of feedback object to start searching from
countMaximum number of feedbacks to fetch
Returns
The feedback found

Definition at line 4108 of file wallet.cpp.

◆ search_my_purchases()

vector< buying_object_ex > graphene::wallet::wallet_api::search_my_purchases ( const string &  account_id_or_name,
const string &  term,
const string &  order,
const string &  id,
uint32_t  count 
) const

Get history buying objects by consumer that match search term.

Parameters
account_id_or_nameConsumer of the buyings to retrieve
termSearch term to look up in Title and Description
orderSort data by field
idObject_id to start searching from
countMaximum number of contents to fetch (must not exceed 100)
Returns
History buying objects corresponding to the provided consumer and matching search term

Definition at line 4072 of file wallet.cpp.

◆ search_user_content()

vector< content_summary > graphene::wallet::wallet_api::search_user_content ( const string &  user,
const string &  term,
const string &  order,
const string &  region_code,
const string &  id,
const string &  type,
uint32_t  count 
) const

Get a list of contents ordered alphabetically by search term.

Parameters
userContent owner
termSearch term
orderOrder field
region_codeTwo letter region code
idThe id of content object to start searching from
typeThe application and content type to be filtered
countMaximum number of contents to fetch (must not exceed 100)
Returns
The contents found

Definition at line 4152 of file wallet.cpp.

◆ seeding_startup()

void graphene::wallet::wallet_api::seeding_startup ( string  account_id_type_or_name,
DInteger  content_private_key,
string  seeder_private_key,
uint64_t  free_space,
uint32_t  seeding_price,
string  packages_path 
)

This method allows user to start seeding plugin from running application.

Parameters
account_id_type_or_nameName or ID of account controlling this seeder
content_private_keyEl Gamal content private key
seeder_private_keyPrivate key of the account controlling this seeder
free_spaceAllocated disk space, in MegaBytes
seeding_priceprice per MegaBytes
packages_pathPackages storage path

Definition at line 4014 of file wallet.cpp.

◆ serialize_transaction()

string graphene::wallet::wallet_api::serialize_transaction ( signed_transaction  tx) const

Converts a signed_transaction in JSON form to its binary representation.

TODO: I don't see a broadcast_transaction() function, do we need one?

Parameters
txthe transaction to serialize
Returns
the binary form of the transaction. It will not be hex encoded, this returns a raw string that may have null characters embedded in it

Definition at line 3260 of file wallet.cpp.

◆ set_automatic_renewal_of_subscription()

signed_transaction graphene::wallet::wallet_api::set_automatic_renewal_of_subscription ( string  account_id_or_name,
subscription_id_type  subscription_id,
bool  automatic_renewal,
bool  broadcast 
)

This function can be used to allow/disallow automatic renewal of expired subscription.

Parameters
account_id_or_nameThe name or id of the account to update
subscription_idThe ID of the subscription.
automatic_renewalTrue if account (consumer) wants to allow automatic renewal of subscription, false otherwise
broadcastTrue if you wish to broadcast the transaction
Returns
The signed transaction allowing/disallowing renewal of the subscription

Definition at line 4254 of file wallet.cpp.

◆ set_desired_miner_count()

signed_transaction graphene::wallet::wallet_api::set_desired_miner_count ( string  account_to_modify,
uint16_t  desired_number_of_miners,
bool  broadcast = false 
)

Set your vote for the number of miners in the system.

Each account can voice their opinion on how many miners there should be in the active miner list. These are independent of each other. You must vote your approval of at least as many miners as you claim there should be (you can't say that there should be 20 miners but only vote for 10).

There are maximum values for each set in the blockchain parameters (currently defaulting to 1001).

This setting can be changed at any time. If your account has a voting proxy set, your preferences will be ignored.

Parameters
account_to_modifythe name or id of the account to update
desired_number_of_miners
broadcasttrue if you wish to broadcast the transaction
Returns
the signed transaction changing your vote proxy settings

Definition at line 3643 of file wallet.cpp.

◆ set_fees_on_builder_transaction()

asset graphene::wallet::wallet_api::set_fees_on_builder_transaction ( transaction_handle_type  handle,
string  fee_asset = GRAPHENE_SYMBOL 
)
Parameters
handle
fee_asset
Returns

Definition at line 3290 of file wallet.cpp.

◆ set_password()

void graphene::wallet::wallet_api::set_password ( string  password)

Sets a new password on the wallet.

The wallet must be either 'new' or 'unlocked' to execute this command.

Parameters
password

Definition at line 3874 of file wallet.cpp.

◆ set_publishing_manager()

signed_transaction graphene::wallet::wallet_api::set_publishing_manager ( const string  from,
const vector< string >  to,
bool  is_allowed,
bool  broadcast 
)

This method is used to promote account to publishing manager. Such an account can grant or remove right to publish a content. Only DECENT account has permission to use this method.

See also
set_publishing_right()
Parameters
fromAccount ( DECENT account ) giving/removing status of the publishing manager.
toList of accounts getting status of the publishing manager.
is_allowedTrue to give the status, false to remove it
broadcastTrue to broadcast the transaction on the network
Returns
The signed transaction updating account status

Definition at line 3916 of file wallet.cpp.

◆ set_publishing_right()

signed_transaction graphene::wallet::wallet_api::set_publishing_right ( const string  from,
const vector< string >  to,
bool  is_allowed,
bool  broadcast 
)

Allows account to publish a content. Only account with publishing manager status has permission to use this method.

See also
set_publishing_manager()
Parameters
fromAccount giving/removing right to publish a content.
toList of accounts getting right to publish a content.
is_allowedTrue to give the right, false to remove it
broadcastTrue to broadcast the transaction on the network
Returns
The signed transaction updating account status

Definition at line 3924 of file wallet.cpp.

◆ set_subscription()

signed_transaction graphene::wallet::wallet_api::set_subscription ( string  account,
bool  allow_subscription,
uint32_t  subscription_period,
string  price_amount,
string  price_asset_symbol,
bool  broadcast 
)

This function can be used to allow/disallow subscription.

Parameters
accountThe name or id of the account to update
allow_subscriptionTrue if account (author) wants to allow subscription, false otherwise
subscription_periodDuration of subscription in days
price_amountPrice for subscription per one subscription period
price_asset_symbolTicker symbol of the asset which will be used to buy subscription
broadcastTrue if you wish to broadcast the transaction
Returns
The signed transaction updating the account

Definition at line 4244 of file wallet.cpp.

◆ set_transfer_logs()

void graphene::wallet::wallet_api::set_transfer_logs ( bool  enable) const

Print statuses of all active transfers.

Definition at line 4426 of file wallet.cpp.

◆ set_voting_proxy()

signed_transaction graphene::wallet::wallet_api::set_voting_proxy ( string  account_to_modify,
optional< string >  voting_account,
bool  broadcast = false 
)

Set the voting proxy for an account.

If a user does not wish to take an active part in voting, they can choose to allow another account to vote their stake.

Setting a vote proxy does not remove your previous votes from the blockchain, they remain there but are ignored. If you later null out your vote proxy, your previous votes will take effect again.

This setting can be changed at any time.

Parameters
account_to_modifythe name or id of the account to update
voting_accountthe name or id of an account authorized to vote account_to_modify's shares, or null to vote your own shares
broadcasttrue if you wish to broadcast the transaction
Returns
the signed transaction changing your vote proxy settings

Definition at line 3636 of file wallet.cpp.

◆ set_wallet_filename()

void graphene::wallet::wallet_api::set_wallet_filename ( string  wallet_filename)

Sets the wallet filename used for future writes.

This does not trigger a save, it only changes the default filename that will be used the next time a save is triggered.

Parameters
wallet_filenamethe new filename to use for future saves

Definition at line 3650 of file wallet.cpp.

◆ sign_buffer()

std::string graphene::wallet::wallet_api::sign_buffer ( std::string const &  str_buffer,
std::string const &  str_brainkey 
) const

Sign a buffer.

Parameters
str_bufferThe buffer to be signed
str_brainkeyDerives the private key used for signature
Returns
The signed buffer

Definition at line 4280 of file wallet.cpp.

◆ sign_builder_transaction()

signed_transaction graphene::wallet::wallet_api::sign_builder_transaction ( transaction_handle_type  transaction_handle,
bool  broadcast = true 
)
Parameters
transaction_handle
broadcasttrue to broadcast the transaction on the network
Returns

Definition at line 3306 of file wallet.cpp.

◆ sign_transaction()

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

Signs a transaction.

Given a fully-formed transaction that is only lacking signatures, this signs the transaction with the necessary keys and optionally broadcasts the transaction

Parameters
txthe unsigned transaction
broadcasttrue if you wish to broadcast the transaction
Returns
the signed version of the transaction

Definition at line 3655 of file wallet.cpp.

◆ submit_content()

signed_transaction graphene::wallet::wallet_api::submit_content ( string const &  author,
vector< pair< string, uint32_t >>  co_authors,
string const &  URI,
vector< regional_price_info > const &  price_amounts,
uint64_t  size,
fc::ripemd160 const &  hash,
vector< account_id_type > const &  seeders,
uint32_t  quorum,
fc::time_point_sec const &  expiration,
string const &  publishing_fee_asset,
string const &  publishing_fee_amount,
string const &  synopsis,
DInteger const &  secret,
decent::encrypt::CustodyData const &  cd,
bool  broadcast 
)

Submits or resubmits content to the blockchain. In a case of resubmit, co-authors, price and synopsis fields can be modified.

See also
submit_content_new()
Parameters
authorThe author of the content
co_authorsThe co-authors' account name or ID mapped to corresponding payment split based on basis points
URIThe URI of the content
price_amountsThe price of the content per regions
sizeThe size of the content
hashThe Hash of the package
seedersList of the seeders, which will publish the content
quorumDefines number of seeders needed to restore the encryption key
expirationThe expiration time of the content. The content is available to buy till it's expiration time
publishing_fee_assetTicker symbol of the asset which will be used to publish content
publishing_fee_amountPublishing price
synopsisThe description of the content
secretThe AES key used to encrypt and decrypt the content
cdCustody data
broadcasttrue to broadcast the transaction on the network
Returns
The signed transaction submitting the content

Definition at line 3938 of file wallet.cpp.

◆ submit_content_async()

fc::ripemd160 graphene::wallet::wallet_api::submit_content_async ( string const &  author,
vector< pair< string, uint32_t >>  co_authors,
string const &  content_dir,
string const &  samples_dir,
string const &  protocol,
vector< regional_price_info > const &  price_amounts,
vector< account_id_type > const &  seeders,
fc::time_point_sec const &  expiration,
string const &  synopsis,
bool  broadcast 
)

This function is used to create package, upload package and submit content in one step.

See also
create_package()
upload_package()
submit_content()
Parameters
authorThe author of the content
co_authorsThe co-authors' account name or ID mapped to corresponding payment split based on basis points
content_dirPath to the directory containing all content that should be packed
samples_dirPath to the directory containing samples of content
protocolProtocol for uploading package( ipfs )
price_amountsThe prices of the content per regions
seedersList of the seeders, which will publish the content
expirationThe expiration time of the content. The content is available to buy till it's expiration time
synopsisThe description of the content
broadcasttrue to broadcast the transaction on the network
Returns
The signed transaction submitting the content

Definition at line 3958 of file wallet.cpp.

◆ subscribe_by_author()

signed_transaction graphene::wallet::wallet_api::subscribe_by_author ( string  from,
string  to,
bool  broadcast 
)

Creates a subscription to author. This function is used by author.

Parameters
fromThe account obtaining subscription from the author
toThe name or id of the author
broadcastTrue if you wish to broadcast the transaction
Returns
The signed transaction subscribing the consumer to the author

Definition at line 4237 of file wallet.cpp.

◆ subscribe_to_author()

signed_transaction graphene::wallet::wallet_api::subscribe_to_author ( string  from,
string  to,
string  price_amount,
string  price_asset_symbol,
bool  broadcast 
)

Creates a subscription to author. This function is used by consumers.

Parameters
fromAccount who wants subscription to author
toThe author you wish to subscribe to
price_amountPrice for the subscription
price_asset_symbolTicker symbol of the asset which will be used to buy subscription ( must be DCT token )
broadcastTrue if you wish to broadcast the transaction
Returns
The signed transaction subscribing the consumer to the author

Definition at line 4228 of file wallet.cpp.

◆ suggest_brain_key()

brain_key_info graphene::wallet::wallet_api::suggest_brain_key ( ) const

Suggests a safe brain key to use for creating your account. create_account_with_brain_key() requires you to specify a 'brain key', a long passphrase that provides enough entropy to generate cyrptographic keys. This function will suggest a suitably random string that should be easy to write down (and, with effort, memorize).

Returns
a suggested brain_key

Definition at line 3202 of file wallet.cpp.

◆ transfer()

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

Transfer an amount from one account to another.

Parameters
fromthe name or id of the account sending the funds
tothe name or id of the account receiving the funds
amountthe amount to send (in nominal units – to send half of a BTS, specify 0.5)
asset_symbolthe symbol or id of the asset to send
memoa memo to attach to the transaction. The memo will be encrypted in the transaction and readable for the receiver. There is no length limit other than the limit imposed by maximum transaction size, but transaction increase with transaction size
broadcasttrue to broadcast the transaction on the network
Returns
the signed transaction transferring funds

Definition at line 3541 of file wallet.cpp.

◆ transfer2()

pair<transaction_id_type,signed_transaction> graphene::wallet::wallet_api::transfer2 ( string  from,
string  to,
string  amount,
string  asset_symbol,
string  memo 
)
inline

This method works just like transfer, except it always broadcasts and returns the transaction ID along with the signed transaction.

Parameters
fromthe name or id of the account sending the funds
tothe name or id of the account receiving the funds
amountthe amount to send (in nominal units – to send half of a BTS, specify 0.5)
asset_symbolthe symbol or id of the asset to send
memoa memo to attach to the transaction. The memo will be encrypted in the transaction and readable for the receiver. There is no length limit other than the limit imposed by maximum transaction size, but transaction increase with transaction size

Definition at line 863 of file wallet.hpp.

◆ unlock()

void graphene::wallet::wallet_api::unlock ( string  password)

Unlocks the wallet.

The wallet remain unlocked until the lock is called or the program exits.

Parameters
passwordthe password previously set with set_password()

Definition at line 3862 of file wallet.cpp.

◆ update_miner()

signed_transaction graphene::wallet::wallet_api::update_miner ( string  miner_name,
string  url,
string  block_signing_key,
bool  broadcast = false 
)

Update a miner object owned by the given account.

Parameters
miner_nameThe name of the miner's owner account. Also accepts the ID of the owner account or the ID of the miner.
urlSame as for create_miner. The empty string makes it remain the same.
block_signing_keyThe new block signing public key. The empty string makes it remain the same.
broadcasttrue if you wish to broadcast the transaction.

Definition at line 3605 of file wallet.cpp.

◆ update_monitored_asset()

signed_transaction graphene::wallet::wallet_api::update_monitored_asset ( string  symbol,
string  new_issuer,
string  description,
uint32_t  feed_lifetime_sec,
uint8_t  minimum_feeds,
bool  broadcast = false 
)

Update the options specific to a BitAsset.

BitAssets have some options which are not relevant to other asset types. This operation is used to update those options an an existing BitAsset.

Parameters
symbolthe name or id of the asset to update, which must be a market-issued asset
new_issuerif the asset is to be given a new issuer, specify his ID here
descriptionasset description
feed_lifetime_sectime before a price feed expires
minimum_feedsminimum number of unexpired feeds required to extract a median feed from
broadcasttrue to broadcast the transaction on the network
Returns
the signed transaction updating the bitasset

Definition at line 3570 of file wallet.cpp.

◆ upload_package()

std::string graphene::wallet::wallet_api::upload_package ( const std::string &  package_hash,
const std::string &  protocol 
) const

Start uploading package.

Parameters
package_hashHash of package that needs to be extracted
protocolprotocol for uploading package ( ipfs )

Definition at line 4418 of file wallet.cpp.

◆ verify_signature()

bool graphene::wallet::wallet_api::verify_signature ( std::string const &  str_buffer,
std::string const &  str_publickey,
std::string const &  str_signature 
) const

Verify if the signature is valid.

Parameters
str_bufferThe original buffer
str_publickeyThe public key used for verification
str_signatureThe signed buffer
Returns
true if valid, otherwise false

Definition at line 4311 of file wallet.cpp.

◆ vote_for_miner()

signed_transaction graphene::wallet::wallet_api::vote_for_miner ( string  voting_account,
string  miner,
bool  approve,
bool  broadcast = false 
)

Vote for a given miner.

An account can publish a list of all miners they approve of. This command allows you to add or remove miners from this list. Each account's vote is weighted according to the number of shares of the core asset owned by that account at the time the votes are tallied.

Note
you cannot vote against a miner, you can only vote for the miner or not vote for the miner.
Parameters
voting_accountthe name or id of the account who is voting with their shares
minerthe name or id of the miner' owner account
approvetrue if you wish to vote in favor of that miner, false to remove your vote in favor of that miner
broadcasttrue if you wish to broadcast the transaction
Returns
the signed transaction changing your vote for the given miner

Definition at line 3628 of file wallet.cpp.

◆ withdraw_vesting()

signed_transaction graphene::wallet::wallet_api::withdraw_vesting ( string  miner_name,
string  amount,
string  asset_symbol,
bool  broadcast = false 
)

Withdraw a vesting balance.

Parameters
miner_nameThe account name of the miner, also accepts account ID or vesting balance ID type.
amountThe amount to withdraw.
asset_symbolThe symbol of the asset to withdraw.
broadcasttrue if you wish to broadcast the transaction

Definition at line 3619 of file wallet.cpp.