BitShares Forum

Main => Technical Support => Topic started by: tonyk on August 15, 2014, 01:25:10 am

Title: 'wallet_asset_create' help
Post by: tonyk on August 15, 2014, 01:25:10 am
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.

Title: Re: 'wallet_asset_create' help
Post by: xeroc on August 15, 2014, 06:52:07 am
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 {}