Main > Technical Support

'wallet_asset_create' help

(1/1)

xeroc:
from the help

--- Quote ---wallet_asset_create <symbol> <asset_name> <issuer_name> [description] [data] [maximum_share_supply] [precision] [is_market_issued]

--- End quote ---

so you need to do like this

--- Quote ---wallet_asset_create "ABC" "alphabet" "myaccount" "description" "{}"  2000000 100000 true

--- End quote ---

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

tonyk:
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: ---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
--- End code ---


 Can somebody provide example...formatting mainly.

Navigation

[0] Message Index

Go to full version