Random Number Generator (RNG)
Other Documentation
Privacy Mode

Privacy Mode

set_key_label

These methods are used for stealth transfers This method can be used to set a label for a public key
Note: No two keys can have the same label.
1
bool graphene::wallet::wallet_api::set_key_label(
2
public_key_type key,
3
string label)
Copied!
Parameters
Return
  • key: a public key
  • label: a user-defined string as label
True if the label was set, otherwise false

get_key_label

Get label of a public key.
1
string graphene::wallet::wallet_api::get_key_label(
2
public_key_type key)const
Copied!
Parameters
Return
  • key: a public key
The label if already set by set_key_label(), or an empty string if not set

get_public_key

Get the public key associated with a given label
1
public_key_type graphene::wallet::wallet_api::get_public_key(
2
string label)const
Copied!
Parameters
Return
  • label: a label
The public key associated with the given label.

get_blind_accounts

Get all blind accounts.
1
map<string, public_key_type> graphene::
2
wallet
3
::
4
wallet_api
5
::get_blind_accounts()const
Copied!
Return
All blind accounts

get_my_blind_accounts

Get all blind accounts for which this wallet has the private key.
1
map<string, public_key_type> graphene::wallet::wallet_api::get_my_blind_accounts()const
Copied!
Return
All blind accounts for which this wallet has the private key.

get_blind_balances

Return the total balances of all blinded commitments that can be claimed by the given account key or label.
1
vector<asset> graphene::wallet::wallet_api::get_blind_balances(
2
string key_or_label)
Copied!
Parameters
Return
  • key_or_label: a public key in Base58 format or a label
The total balances of all blinded commitments that can be claimed by the given account key or label

create_blind_account

Generates a new blind account for the given brain key and assigns it the given label
1
public_key_type graphene::
2
wallet
3
::
4
wallet_api
5
::create_blind_account(string label, string brain_key)
Copied!
Parameters
Return
  • label: a label
  • brain_key: the brain key to be used to generate a new blind account
The public key of the new account

transfer_to_blind

Transfers a public balance from from_account_id_or_name to one or more blinded balances using a stealth transfer.
1
blind_confirmationgraphene::wallet::wallet_api::transfer_to_blind(
2
string from_account_id_or_name,
3
string asset_symbol,
4
vector<pair<string, string>> to_amounts,
5
bool broadcast = false)
Copied!
Parameters
Return
  • from_account_id_or_name: ID or name of an account to transfer from
  • asset_symbol: symbol or ID of the asset to be transferred
  • to_amounts: map from key or label to amount
  • broadcast: true to broadcast the transaction on the network
A blind confirmation

transfer_from_blind

Transfers funds from a set of blinded balances to a public account balance.
1
blind_confirmationgraphene::wallet::wallet_api::transfer_from_blind(
2
string from_blind_account_key_or_label,
3
string to_account_id_or_name,
4
string amount,
5
string asset_symbol,
6
bool broadcast = false)
Copied!
Parameters
Return
  • from_blind_account_key_or_label: a public key in Base58 format or a label to transfer from
  • to_account_id_or_name: ID or name of an account to transfer to
  • amount: the amount to be transferred
  • asset_symbol: symbol or ID of the asset to be transferred
  • broadcast: true to broadcast the transaction on the network
A blind confirmation.

blind_transfer

Transfer from one set of blinded balances to another.
1
blind_confirmationgraphene::wallet::wallet_api::blind_transfer(
2
string from_key_or_label,
3
string to_key_or_label,
4
string amount,
5
string symbol,
6
bool broadcast = false)
Copied!
Parameters
Return
  • from_key_or_label: a public key in Base58 format or a label to transfer from
  • to_key_or_label: a public key in Base58 format or a label to transfer to
  • amount: the amount to be transferred
  • symbol: symbol or ID of the asset to be transferred
  • broadcast: true to broadcast the transaction on the network
A blind confirmation

blind_history

Get all blind receipts to/form a particular account.
1
vector<blind_receipt> graphene::wallet::wallet_api::blind_history(
2
string key_or_account)
Copied!
Parameters
Return
  • key_or_account: a public key in Base58 format or an account
All blind receipts to/form the account.

receive_blind_transfer

Given a confirmation receipt, this method will parse it for a blinded balance and confirm that it exists in the blockchain. If it exists then it will report the amount received and who sent it.
1
blind_receipt graphene::
2
wallet
3
::
4
wallet_api
5
::receive_blind_transfer(string confirmation_receipt, string opt_from, string opt_memo)
Copied!
Parameters
Return
  • confirmation_receipt: a base58 encoded stealth confirmation
  • opt_from: if not empty and the sender is a unknown public key, then the unknown public key will be given the label opt_from
  • opt_memo: a self-defined label for this transfer to be saved in local wallet file
A blind receipt.