Bitcoin-com / bitbox-sdk

BITBOX SDK for Bitcoin Cash
https://developer.bitcoin.com/bitbox
MIT License
89 stars 62 forks source link

bitbox.RawTransactions.sendRawTransaction can not send which tx has many UTXOs and trigger request entity too large error ! #137

Open passionofvc opened 5 years ago

passionofvc commented 5 years ago

bitbox.RawTransactions.sendRawTransaction can not send transaction which tx has many UTXOs and trigger request entity too large error ! Does this is bitcoin-abc daemon limit in sendrawtransaction? I also even limit UTXOs to 500 numbers. I can spend the UTXOs with Electron-cash4.0.9.

the script is in below gist. https://gist.github.com/passionofvc/5f79f1083ed20a43a154d7a879aaa289

npm install bitbox-sdk

node spend_bcc_p2pkh.js 
error:  { status: 413, message: 'request entity too large’ }
christroutner commented 5 years ago

I believe this error is coming from the full node, and we don't have direct control over this error with BITBOX. It seems like you're probably exceeded the maximum transaction size limit of 100kb, or some similar constraint.