Hello,
We have problems when we try to make a TX with multisig address
bcapi.newTX({ inputs: [{ addresses: ['35wm5tDfFeEYjeeTZ17Lee16JCi9DkXBBG']}], outputs: [{ addresses: ['1AxY6mEfFn9r2ynScSyb3KRXRS7q6FBGX'], value: 2500 }] }, printResponse)
Output:
{ error: 'Error building input: Cannot use P2SH as input without \'script_type\' set to \'multisig-n-of-m\'' }, { error: 'Not enough funds in 1 inputs to pay for 1 outputs, missing -2500.' }, { error: 'Not enough funds after fees in 0 inputs to pay for 1 outputs, missing -11200.' }, { error: 'Error validating generated transaction: Transaction missing input or output.' } ],
Also, we try with 'script_type': 'multisig-2-of-3' any ideas how to solve it?
Hello,
We have problems when we try to make a TX with multisig address
bcapi.newTX({ inputs: [{ addresses: ['35wm5tDfFeEYjeeTZ17Lee16JCi9DkXBBG']}], outputs: [{ addresses: ['1AxY6mEfFn9r2ynScSyb3KRXRS7q6FBGX'], value: 2500 }] }, printResponse)Output:
{ error: 'Error building input: Cannot use P2SH as input without \'script_type\' set to \'multisig-n-of-m\'' }, { error: 'Not enough funds in 1 inputs to pay for 1 outputs, missing -2500.' }, { error: 'Not enough funds after fees in 0 inputs to pay for 1 outputs, missing -11200.' }, { error: 'Error validating generated transaction: Transaction missing input or output.' } ],Also, we try with 'script_type': 'multisig-2-of-3' any ideas how to solve it?