unwriter / datacash

The simplest way to write data to Bitcoin Cash blockchain
58 stars 17 forks source link

Transaction sending failing #4

Open FreeTrade opened 6 years ago

FreeTrade commented 6 years ago

Basic example generates following transaction - data: ["0x6d02","hello world"],

01000000011e1b52f4da233e921b99b1b156f6d76e2105539c4d8b376034ce300932bfa169010000006a47304402201f1ba5f9169d394f5ad1c7935147c985840c8487f765884d33eefb40151fbe110220403f7dbb0f285af1b4019dc8f6c2aec3c2e2bd6f6af582bf75c34f0b9dfc2a934121024e40f988cede264bc37f8dc04b03e74342e252be3143173e4cdef1aa893b522effffffff020000000000000000106a026d020b68656c6c6f20776f726c64c8000000000000001976a9145c7a23e14a81666beccd146b073672a40785b8e188ac00000000

but it is getting a 400(Bad Request) error back when trying to broadcast this trx. Is it generating invalid transactions?

I get a similar error when trying to broadcast it here - https://pool.viabtc.com/tools/BCH/broadcast/

FreeTrade commented 6 years ago

Hmm, bitcoin.com regards it as a dust transaction - have to set the fee up to 1000 sats to get it accepted.

FreeTrade commented 6 years ago

Actually I think it is not the trx fee that is too low - it's the change output it regards as dust, and won't accept the trx.