It is telling you that your inputs don't contain any coins... "sum of inputs == 0"... You can't magically make 0 satoshis into 20000000 satoshis
It seems like your input is invalid... what transaction and which UTXO are you attempting to spend from?
I can't seem to find any matching transaction/UTXO that you are trying to include as your input.
Addtionally, I'm not sure why you are quoting/reading from
documentation on using multisig transaction?
That's not how you spend from multiple addresses in one transaction. To spend from multiple addresses, you simply include UTXOs from the addresses you want to spend from.
Let's say you want to send 3 BTC to AddressC... you already have AddressA and AddressB, and want to spend 1.5 BTC from both... and you have the following UTXOs in each Address:
AddressA:UTXO-A1 => 1 BTC
UTXO-A2 => 1 BTC
AddressB:UTXO-B1 => 5 BTC
You would simply create a transaction that includes the following inputs:
{inputs: UTXO-A1 value:100000000, UTXO-A2 value: 100000000, UTXO-B1 value:500000000} <-- NOTE: you have to spend ALL of an UTXO and create a NEW UTXO output!
and create the following outputs (
NOTE: ignoring transaction fees for now):
{outputs: AddressC value: 300000000, AddressA value: 50000000, AddressB Value 350000000}
This would result in:
AddressA:UTXO-A
3 => 0.5 BTC
AddressB:UTXO-B
2 => 3.5 BTC
AddressC:UTXO-C1 => 3.0 BTC
NOTE how the UTXO numbers in AddressA and AddressB are different... they are newly created. Remember, when you spend a UTXO, you have to spend the WHOLE thing... and create a completely new UTXO in the output section of your transaction.