快速上手

使用pip安装cli客户端

  • 安装
pip install v-cloud-market-cli-user
  • 在主网中使用用户cli客户端
vcloud
  • 在测试网中使用用户cli客户端
vcloud -t

使用代码安装cli 客户端

  • 先克隆代码库

    git clone git@github.com:virtualeconomy/v-cloud-market-cli-user.git
    
  • 进入到market-place-cli, 启动python虚拟环境

     source ./venv/bin/activate
    
  • 在主网中使用用户cli客户端

    python use_main_interface.py
    
  • 在测试网中使用用户cli客户端

    python use_main_interface.py -t
    

准备v账户

1. 使用seed导入已有v账户

  • 输入1选择[1]Recover Wallet From Seed
  • 根据提示Please enter the number of addresses in the wallet (1-10):,输入要生成的账户数量,最多生成10个
  • 根据提示Please enter a password to encrypt your wallet (press ENTER for no encryption),设置钱包密码,直接回车则默认为无密码
  • 根据提示Please enter your wallet seed,输入已有的v账户seed

示例如下:

==================================================================================
||    __          __   _ _      _     _____       _ _   _       _ _             ||
||    \ \        / /  | | |    | |   |_   _|     (_) | (_)     | (_)            ||
||     \ \  /\  / /_ _| | | ___| |_    | |  _ __  _| |_ _  __ _| |_ _______     ||
||      \ \/  \/ / _` | | |/ _ \ __|   | | | '_ \| | __| |/ _` | | |_  / _ \    ||
||       \  /\  / (_| | | |  __/ |_   _| |_| | | | | |_| | (_| | | |/ /  __/    ||
||        \/  \/ \__,_|_|_|\___|\__| |_____|_| |_|_|\__|_|\__,_|_|_/___\___|    ||
||                                                                              ||
||                                                                              ||
==================================================================================
[1]    Recover Wallet From Seed
[2]    Generate New Wallet

Please Select Your Choice: 1
Please enter the number of addresses in the wallet (1-10): 1
Please enter a password to encrypt your wallet (press ENTER for no encryption): :
Please enter your wallet seed:
                                                                             Wallet Address Information

                Address                                 Account Seed                                   Private Key                                     Public Key
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  AU*********************************   3J******************************************   13******************************************   9y******************************************

                                                                      Wallet Address Balance Information-vsys

                           Address                                       Regular Balance             Minting Average              Available Balance              Effective Balance
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
             AU*********************************                                       0                           0                              0                              0

Press ENTER to continue...

2. 生成新账户

  • 可以在testnet (opens new window) or mainnet (opens new window) 上创建一个账号(注意:请妥善保管你的seed),为新账号充值;
  • 或者可以在cli上选择[2] Generate New Wallet,cli会引导你创建一个新账号(注意:请妥善保管你的seed),为新账号充值;

为账户充值

  1. testnet (opens new window) or mainnet (opens new window) 上登陆自己的账号,为对应账户转账。
  2. 前往VSwap (opens new window),通过交换获得余额

版本检查

  1. 启动时将默认进行版本检查
  • 如果有新版本,将显示版本更新提示界面。

  • 如果当前版本已经是最新版本,将跳过此界面显示

  • 如果cli版本高于最低支持版本,可以选择不更新继续使用

=========================================================================================
||     _    _           _       _                           _ _       _     _          ||
||    | |  | |         | |     | |           /\            (_) |     | |   | |         ||
||    | |  | |_ __   __| | __ _| |_ ___     /  \__   ____ _ _| | __ _| |__ | | ___     ||
||    | |  | | '_ \ / _` |/ _` | __/ _ \   / /\ \ \ / / _` | | |/ _` | '_ \| |/ _ \    ||
||    | |__| | |_) | (_| | (_| | ||  __/  / ____ \ V / (_| | | | (_| | |_) | |  __/    ||
||     \____/| .__/ \__,_|\__,_|\__\___| /_/    \_\_/ \__,_|_|_|\__,_|_.__/|_|\___|    ||
||           | |                                                                       ||
||           |_|                                                                       ||
=========================================================================================
Your current version:  0.0.7
The latest version:    0.1.0
Latest Change Log:
Basic functionality

Use the following command to upgrade:
pip install -U v-cloud-market-cli-user

Press ENTER to continue
  • 如果cli客户端版本低于最小支持版本,则必须退出并完成更新后,才能继续使用
=====================================================================================
||     _   _       _      _____                              _   _           _     ||
||    | \ | |     | |    / ____|                            | | | |         | |    ||
||    |  \| | ___ | |_  | (___  _   _ _ __  _ __   ___  _ __| |_| |_ ___  __| |    ||
||    | . ` |/ _ \| __|  \___ \| | | | '_ \| '_ \ / _ \| '__| __| __/ _ \/ _` |    ||
||    | |\  | (_) | |_   ____) | |_| | |_) | |_) | (_) | |  | |_| ||  __/ (_| |    ||
||    |_| \_|\___/ \__| |_____/ \__,_| .__/| .__/ \___/|_|   \__|\__\___|\__,_|    ||
||                                   | |   | |                                     ||
||                                   |_|   |_|                                     ||
=====================================================================================
Your current version:             0.0.1
The latest version:               0.1.0
The minimal supported version:    0.0.5

The current version is not supported.
Use the following command to upgrade:
pip install -U v-cloud-market-cli-user

Press ENTER to exit
  1. 主界面选择About Vcloud进行版本检查

示例如下:

Please Select Your Choice: 6
================================================================================
||              _                 _    __      __           _                 ||
||        /\   | |               | |   \ \    / /          (_)                ||
||       /  \  | |__   ___  _   _| |_   \ \  / /__ _ __ ___ _  ___  _ __      ||
||      / /\ \ | '_ \ / _ \| | | | __|   \ \/ / _ \ '__/ __| |/ _ \| '_ \     ||
||     / ____ \| |_) | (_) | |_| | |_     \  /  __/ |  \__ \ | (_) | | | |    ||
||    /_/    \_\_.__/ \___/ \__,_|\__|     \/ \___|_|  |___/_|\___/|_| |_|    ||
||                                                                            ||
||                                                                            ||
================================================================================
Your current version:  0.0.7
The latest version:    0.1.0
Latest Change Log:
Basic functionality

Use the following command to upgrade:
pip install -U v-cloud-market-cli-user

Press ENTER to continue...
  1. 版本更新

可以使用下面命令更新cli客户端:

pip install -U v-cloud-market-cli-user

解锁钱包

  • 如果已设置密码,将进入Unlock Wallet页面
  1. 输入1选择[1]Input Password
  2. 根据提示Please enter your password for decrypting the wallet,输入密码并按回车确认
  3. 如果解锁成功将看到成功提示Wallet decrypted successfully
  4. 根据提示Please enter the index of address that you want to use,输入要使用的钱包账户序号
  • 如果无密码将直接跳过此步骤

示例如下

===========================================================================
||     _    _       _            _     __          __   _ _      _       ||
||    | |  | |     | |          | |    \ \        / /  | | |    | |      ||
||    | |  | |_ __ | | ___   ___| | __  \ \  /\  / /_ _| | | ___| |_     ||
||    | |  | | '_ \| |/ _ \ / __| |/ /   \ \/  \/ / _` | | |/ _ \ __|    ||
||    | |__| | | | | | (_) | (__|   <     \  /\  / (_| | | |  __/ |_     ||
||     \____/|_| |_|_|\___/ \___|_|\_\     \/  \/ \__,_|_|_|\___|\__|    ||
||                                                                       ||
||                                                                       ||
===========================================================================
[1]    Input Password
[2]    Restore Wallet with Seed

Please Select Your Choice: 1
Please enter your password for decrypting the wallet:
Wallet decrypted successfully.
Please enter the index of address that you want to use (1-3): 1
Success. Address index is set to 1. Press ENTER to continue...
===========================================================================
||     __  __       _          _____                 _                   ||
||    |  \/  |     (_)        / ____|               (_)                  ||
||    | \  / | __ _ _ _ __   | (___   ___ _ ____   ___  ___ ___  ___     ||
||    | |\/| |/ _` | | '_ \   \___ \ / _ \ '__\ \ / / |/ __/ _ \/ __|    ||
||    | |  | | (_| | | | | |  ____) |  __/ |   \ V /| | (_|  __/\__ \    ||
||    |_|  |_|\__,_|_|_| |_| |_____/ \___|_|    \_/ |_|\___\___||___/    ||
||                                                                       ||
||                                                                       ||
===========================================================================
[1]    Market Service
[2]    Order Service
[3]    Wallet Service
[4]    User Service
[5]    Cart Service
[6]    About Vcloud

Please Select Your Choice:
上次更新: 2023/2/14 上午7:45:31