Author Topic: 'wallet_asset_create' help  (Read 1430 times)

0 Members and 1 Guest are viewing this topic.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
from the help
Quote
wallet_asset_create <symbol> <asset_name> <issuer_name> [description] [data] [maximum_share_supply] [precision] [is_market_issued]

so you need to do like this
Quote
wallet_asset_create "ABC" "alphabet" "myaccount" "description" "{}"  2000000 100000 true

think the 'data' field has to be valid json ... so try "{}"  or without quotes .. just {}

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3308
    • View Profile
Non tech person here. Tried many variants of the command 'wallet_asset_create' .

wallet_asset_create "ABC","ABCShares",acc1,"Real value!","null",2000000,100000,true;

wallet_asset_create 'ABC','ABCShares',acc1,'Real value!',null,2000000,100000,true

wallet_asset_create 'ABC' 'ABCShares' acc1 'Real value!' null 2000000 100000 true


etc.


None seem to work. All lead to the following error:
Code: [Select]
13 class boost::exception_detail::clone_impl<struct boost::exception_detail::error_info_injector<class boost::bad_lexical_cast> >: bad lexical cast: source type value could not be interpreted as target
bad lexical cast: source type value could not be interpreted as target:  => double
    {"i":"","what":"bad lexical cast: source type value could not be interpreted as target"}
    bitshares  string.cpp:104 fc::to_double

    {"command":"wallet_asset_create"}
    bitshares  cli.cpp:471 bts::cli::detail::cli_impl::execute_command


 Can somebody provide example...formatting mainly.

Lack of arbitrage is the problem, isn't it. And this 'should' solves it.