bitcoinjs-lib icon indicating copy to clipboard operation
bitcoinjs-lib copied to clipboard

258: txn-mempool-conflict

Open A2DNEW opened this issue 1 year ago • 6 comments
trafficstars

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

A2DNEW avatar May 01 '24 21:05 A2DNEW

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

jasonandjay avatar May 02 '24 02:05 jasonandjay

By the way

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

jasonandjay avatar May 02 '24 02:05 jasonandjay

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 avatar May 02 '24 07:05 A2DNEW

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

A2DNEW avatar May 02 '24 07:05 A2DNEW

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.

jasonandjay avatar May 02 '24 12:05 jasonandjay

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

A2DNEW avatar May 02 '24 21:05 A2DNEW

@junderw might need your help here.

jasonandjay avatar Aug 26 '24 11:08 jasonandjay

There's not enough information to solve this.

junderw avatar Aug 26 '24 15:08 junderw