Hey everyone.
I just came across this blog looking for some help about the issue that i'm having developing a payment gateway via BTC, so, jumping into it:
I'm creating (listing the address available txs outputs), signing and sending tx's via btc-cli, using the legacy commands. Even for the wallet creations (bech32) i'm using the cli, however wheh i send a transaction to the network and get it's details it always returns a JSON like this:
{
"amount": 0.00000000,
"fee": 0.00000000,
"confirmations": 0,
"trusted": true,
"txid": "48c67f340414a3e8beb74aa20fa282c9f8b47dab5c8f6a2b8331c58302d746fe",
"walletconflicts": [
],
"time": 1635813636,
"timereceived": 1635813636,
"bip125-replaceable": "no",
"details": [
{
"address": "tb1qkvf2k3yd5mc46gf7znwnpx7vty2pfmt9ezrg6m",
"category": "send",
"amount": -0.00041105,
"label": "",
"vout": 0,
"fee": 0.00000000,
"abandoned": false
},
{
"address": "tb1qydzefuvmycm2sx5ngjy6ayjnudu3r2ezu62gnx",
"category": "send",
"amount": -0.00028895,
"label": "",
"vout": 1,
"fee": 0.00000000,
"abandoned": false
},
{
"address": "tb1qkvf2k3yd5mc46gf7znwnpx7vty2pfmt9ezrg6m",
"category": "receive",
"amount": 0.00041105,
"label": "",
"vout": 0
},
{
"address": "tb1qydzefuvmycm2sx5ngjy6ayjnudu3r2ezu62gnx",
"category": "receive",
"amount": 0.00028895,
"label": "",
"vout": 1
}
],
"hex": "02000000000101561b05e6ea871cf34b1bce09a623138b558a13b17cb82387be4613b09a0e95b60100000000ffffffff0291a0000000000000160014b312ab448da6f15d213e14dd309bcc591414ed65df70000000000000160014234594f19b2636a81a934489ae9253e37911ab2202473044022012ecb312379eaed3d45b83ca31447be1e59eb3f70bd4a2eab1a45d417400a049022036e790e564897d9c975f81bbeeb5225b54cac81effe619817f88a10a403755ca0121023325d7e56c02f2ddac211972c140b4c004f690ef995cc8fc7be4fdadf320faa000000000"
}
I'm setting a fee of 0.00280 BTC/KvB but it doesn't matter which fee i'm using on the node, it never gets confirmed or even broadcasted so i can't find neither tx on a explorer.
I don't really know what might causing this behaviour so i'd be grateful for any help.
Greetings!