bitcoinjs / bitcoinjs-lib

A javascript Bitcoin library for node.js and browsers.
MIT License
5.67k stars 2.1k forks source link

258: txn-mempool-conflict #2093

Closed A2DNEW closed 1 month ago

A2DNEW commented 5 months ago

Hi I use this code to send dogecoin:

('sendrawtransaction', [
      psbt.extractTransaction().toHex(),
      true,
    ]);

And i get this result:

6dcdfb42022c829eca72a61267b1bae8621bcc2922201ab347bef66675aa0aa3

but this TX not found on blockchain

I change my FEE and try to generate again, but i get error:

error: { code: -26, message: '258: txn-mempool-conflict' },

Note: I set fee 3000

jasonandjay commented 5 months ago

From error "txn-mempool-conflict" indicate your transaction has been broadcast

jasonandjay commented 5 months ago

By the way

  1. You can try to search you transaction with your address
  2. It seems this issue has no relation with bitcoinjs
A2DNEW commented 5 months ago

From error "txn-mempool-conflict" indicate your transaction has been broadcast

But this txid not found in dogescan: Sorry, '6dcdfb42022c829eca72a61267b1bae8621bcc2922201ab347bef66675aa0aa3' is not a valid transaction or block hash for doge

A2DNEW commented 5 months ago

By the way

  1. You can try to search you transaction with your address
  2. It seems this issue has no relation with bitcoinjs

how can i search by address? because i don't see anything and i can't create new transaction because i don't have the data

jasonandjay commented 5 months ago

From error "txn-mempool-conflict" indicate your transaction has been broadcast

But this txid not found in dogescan: Sorry, '6dcdfb42022c829eca72a61267b1bae8621bcc2922201ab347bef66675aa0aa3' is not a valid transaction or block hash for doge

bitcoinjs is designed for bitcoin and i am not familar with doge chain. So i don`t know txid generate is right or this libs suitable for doge chain.

A2DNEW commented 5 months ago

From error "txn-mempool-conflict" indicate your transaction has been broadcast

But this txid not found in dogescan: Sorry, '6dcdfb42022c829eca72a61267b1bae8621bcc2922201ab347bef66675aa0aa3' is not a valid transaction or block hash for doge

bitcoinjs is designed for bitcoin and i am not familar with doge chain. So i don`t know txid generate is right or this libs suitable for doge chain.

but i use your recommend code:

const dogecoin = { // <-------- ADD THIS messagePrefix: '\x19Dogecoin Signed Message:\n', bech32: 'doge', bip32: { public: 0x02facafd, private: 0x02fac398, }, pubKeyHash: 0x1e, scriptHash: 0x16, wif: 0x9e, }

at this: https://github.com/bitcoinjs/bitcoinjs-lib/issues/1990#issuecomment-1755940168

jasonandjay commented 1 month ago

@junderw might need your help here.

junderw commented 1 month ago

There's not enough information to solve this.