Hello, Multichain developers:)
I found a strange thing during the test about the minimum send amount.
native-currency-multiple is 100000000 and minimum-relay-fee is 1000000 in params.dat
I’ve sent 0.000000001(0.1satoshi) through the 'send' API and confirmed that it has sent.
------------result------------
test: getbalance
{"method":"getbalance","params":[],"id":1,"chain_name":"test"}
1085699999.75523877
test: send HCwtvswP6YsrqUJg7sEhfySbNsh1mqhtje 0.000000001
{"method":"send","params":["HCwtvswP6YsrqUJg7sEhfySbNsh1mqhtje",0.00000000],"id":1,"chain_name":"test"}
0118bd59cd4c79ab8697746306a25c1b5d26824daddd34535f54ebb27a067b33
test: getbalance
{"method":"getbalance","params":[],"id":1,"chain_name":"test"}
1085699999.74523878
--------------------------------------
0.01 is a minimum fee in my blockchain.
balance before: 1085699999.75523877
balance after: 1085699999.74523878
as you can see above, the balance difference is -0.00999999, which is lower than the minimum fee(0.01).
And I was also able to send -0.1 satoshi.
------------result------------
test: send HCwtvswP6YsrqUJg7sEhfySbNsh1mqhtje -1
{"method":"send","params":["HCwtvswP6YsrqUJg7sEhfySbNsh1mqhtje",-1],"id":1,"chain_name":"test"}
error code: -8
error message:
Invalid amount
test: send HCwtvswP6YsrqUJg7sEhfySbNsh1mqhtje -0.000000001
{"method":"send","params":["HCwtvswP6YsrqUJg7sEhfySbNsh1mqhtje",-0.00000000],"id":1,"chain_name":"test"}
9c2fd783b8e661da02ceef6b608e9cd228b4586a8b6920c0a6ac151e09115165
------------------------------
Please check those result above and provide feedback.
Thank you.