Scenario: The burn address is provided the permissions of send and receive
Executing command 'sendfrom burnaddress someaddress 0', executes fine, but the source and destinations are same. For example:
echo $burn
1XXXXXXWs6XXXXXXEXXXXXXXXXXXXXXXdKRi3S
echo $admin
1XCj5SYCgQwtodUXu9weWXS8YyLcpZx99RTqui
multichain-cli test sendfrom $burn $admin 0
{"method":"sendfrom","params":["1XXXXXXWs6XXXXXXEXXXXXXXXXXXXXXXdKRi3S","1XCj5SYCgQwtodUXu9weWXS8YyLcpZx99RTqui",0],"id":1,"chain_name":"test"}
f1446c3deb52caf8f5e54748209b7b0fd328fbeecac9716765981775ca8fc48b
If we analyze the transaction using gettransaction method:
details" : [
{
"account" : "1XXXXXXWs6XXXXXXEXXXXXXXXXXXXXXXdKRi3S",
"address" : "1XCj5SYCgQwtodUXu9weWXS8YyLcpZx99RTqui",
"category" : "send",
"amount" : 0.00000000,
"vout" : 0,
"fee" : 0.00000000
},
{
"account" : "1XXXXXXWs6XXXXXXEXXXXXXXXXXXXXXXdKRi3S",
"address" : "1XCj5SYCgQwtodUXu9weWXS8YyLcpZx99RTqui",
"category" : "send",
"amount" : 0.00000000,
"vout" : 1,
"fee" : 0.00000000
},
{
"account" : "",
"address" : "1XCj5SYCgQwtodUXu9weWXS8YyLcpZx99RTqui",
"category" : "receive",
"amount" : 0.00000000,
"vout" : 0
},
{
"account" : "",
"address" : "1XCj5SYCgQwtodUXu9weWXS8YyLcpZx99RTqui",
"category" : "receive",
"amount" : 0.00000000,
"vout" : 1
}
Auto mapping of source address with account is performed.