I am working on an automated solution that relies on the creation of a native currency. The native currency has been created and when I run listassets i get
{"method":"listassets","params":[],"id":"60385047-XXXXXX","chain_name":"demoChain"}
[
]
But if I specifically ask for a wallet balance using:
getaddressbalances 1NYNSkfDcWMrkCESLvbPamUa19e6XafgE64bZu
The response is :
{"method":"getaddressbalances","params":["1NYNSkfDcWMrkCESLvbPamUa19e6XafgE64bZu"],"id":"38421608-1566442653","chain_name":"demoChain"}
[
{
"assetref" : "",
"qty" : 50,
"raw" : 5000000000
}
]
If I try and send the native from one address to another (global send, receive) using
sendassetfrom 1NYNSkfDcWMrkCESLvbPamUa19e6XafgE64bZu 19ycRXuYttRQeQ318Utt6hXmVYk6N1gfGZKhMa "" 0.005
The request fails with:
method":"sendassetfrom","params":["1NYNSkfDcWMrkCESLvbPamUa19e6XafgE64bZu","19ycRXuYttRQeQ318Utt6hXmVYk6N1gfGZKhMa","",0.005],"id":"95668556-1566442594","chain_name":"demoChain"}
error code: -8
error message:
Invalid asset reference
no idea what is going on. Have tried all the forums with no luck. I am fairly certain this is a noob question.Probably using the wrong method but any help would be appreciated.