Closed inzider closed 4 years ago
Solved. I should read docs / commands.js better. It need to be amount, no qty, for native curreny using sendFrom.
Yet, the test.js don't include this method.
const tx = await multichain.sendFrom({
from: addr1,
to: addr2,
amount: 1
});
Hi,
For native currency transfer :
1 - using sendFrom return { code: -1, message: 'value is type null, expected real' } or 2- using sendAssetFrom wih asset:"", return { code: -8, message: 'Invalid asset reference' }
Since native currency don't have a name only a chain name, code wont run a command that process in CLI / terminal. Seems referencing as " " wont do.
Cli command : sendfrom 14gRJk8Sis7oByZ6m72JZErXRBfoWXEfGnoNdU
1KyzhGzMHSSZoLRNW4GxQp3Kf6KswrgCY8kxxD 1
Return success with txid: {"method":"sendfrom","params":
["14gRJk8Sis7oByZ6m72JZErXRBfoWXEfGnoNdE", "1KyzhGzMHSSZoLRNW4GxQp3Kf6KswrgCY
8kxxD",1],"id":"28780236-1588651856","chain_name":"INX"}
Yet this wont :
Please help, thx! ; )