Loading...
Searching...
No Matches
utxo_client_tools.cpp File Reference
#include <glog/logging.h>
#include <google/protobuf/util/json_util.h>
#include "common/crypto/signature_utils.h"
#include "interface/utxo/utxo_client.h"
#include "platform/config/resdb_config_utils.h"

Go to the source code of this file.

Functions

void ShowUsage ()
 
void Transfer (UTXOClient *client, int64_t transaction_id, const std::string &address, const std::vector< std::string > &to_address, const std::vector< int64_t > &values, const std::string &private_key, const std::vector< std::string > &to_pub_key)
 
void GetList (UTXOClient *client, int64_t end_id, int num)
 
void GetWallet (UTXOClient *client, const std::string &address)
 
std::vector< std::string > ParseString (std::string str)
 
std::vector< int64_t > ParseValue (std::string str)
 
int main (int argc, char **argv)
 

Function Documentation

◆ GetList()

void GetList ( UTXOClient *  client,
int64_t  end_id,
int  num 
)

Definition at line 75 of file utxo_client_tools.cpp.

◆ GetWallet()

void GetWallet ( UTXOClient *  client,
const std::string &  address 
)

Definition at line 85 of file utxo_client_tools.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 118 of file utxo_client_tools.cpp.

◆ ParseString()

std::vector< std::string > ParseString ( std::string  str)

Definition at line 90 of file utxo_client_tools.cpp.

◆ ParseValue()

std::vector< int64_t > ParseValue ( std::string  str)

Definition at line 104 of file utxo_client_tools.cpp.

◆ ShowUsage()

void ShowUsage ( )

Definition at line 35 of file utxo_client_tools.cpp.

◆ Transfer()

void Transfer ( UTXOClient *  client,
int64_t  transaction_id,
const std::string &  address,
const std::vector< std::string > &  to_address,
const std::vector< int64_t > &  values,
const std::string &  private_key,
const std::vector< std::string > &  to_pub_key 
)

Definition at line 42 of file utxo_client_tools.cpp.