I have lnd connected to a bitcoind fullnode.
Unconfirmed transactions do not have any dest_addresses.
So i have no way to tell which unconfirmed payment belongs to which address.
I don't know if this is the same for btcd fullnodes.
$ lncli newaddress p2wkh
{
"address": "tb1qd2fsgxldz40cuzs5wfdlatujudjlwlsyy5uxzl"
}
Send btc to that address.
$ lncli listchaintxns
...},
{
"tx_hash": "4a5797233bf6d43573568dcea7f23caeb29a48a26e6ffac6e61d66543bde3d47",
"amount": "100000",
"num_confirmations": 0,
"block_hash": "",
"block_height": 0,
"time_stamp": "1547047478",
"total_fees": "0",
"dest_addresses": [
]
}
]
}
Wait 10 minutes for the first confirmation
$ lncli listchaintxns
...},
{
"tx_hash": "4a5797233bf6d43573568dcea7f23caeb29a48a26e6ffac6e61d66543bde3d47",
"amount": "100000",
"num_confirmations": 1,
"block_hash": "000000000014c64124fdce7cc4f49cf18db1e48788ec1b05a3e985b6fad8720c",
"block_height": 1451661,
"time_stamp": "1547048177",
"total_fees": "0",
"dest_addresses": [
"msCLtVFL7isVMjEkg4HdAU7smYDFdoxtQu",
"tb1qd2fsgxldz40cuzs5wfdlatujudjlwlsyy5uxzl"
]
}
]
}
dest_addresses should be available for unconfirmed transactions.
that would make accepting on-chain payments much simpler.
dest_addresses are only available once the transaction has 1 confirmation.
I'd be happy to pick this one up
Most helpful comment
I'd be happy to pick this one up