Transaction is not listed
See original GitHub issueI run NBXplorer with the following parameters while running a local Bitcoin node on Mainnet: ‘–btcrpcuser=myuser --btcrpcpassword=mypassword --btcstartheight=556452 --btcrescan=1’
This rescanned the Mainnet since the very end of 2018 without any errors.
Then I use Postman to run queries. Authentication works fine and NBXlporer looks synced, because I get back this while getting http://localhost:4774/v1/cryptos/btc/status
{ “bitcoinStatus”: { “blocks”: 592280, “headers”: 592280, “verificationProgress”: 0.999996599640577, “isSynched”: true, “incrementalRelayFee”: 1, “minRelayTxFee”: 1, “externalAddresses”: [ “2001:4c4e:2a11:2e00::806:8333”, “2001:4c4e:2a11:2e00:d44:5de0:ae2f:70d:8333”, “2001:4c4e:2a11:2e00:ac9c:6946:2f31:c729:8333” ], “capabilities”: { “canScanTxoutSet”: true, “canSupportSegwit”: true } }, “repositoryPingTime”: 0.00029, “isFullySynched”: true, “chainHeight”: 592280, “syncHeight”: 592280, “networkType”: “Mainnet”, “cryptoCode”: “BTC”, “supportedCryptoCodes”: [ “BTC” ], “version”: “2.0.0.56” }
I’d like to get some information about one particular transaction trying these two methods:
#A
GET http://localhost:4774/v1/cryptos/btc/transactions/86394fa887bc615919e5c945d8e7977f64d77e7d7d4871683d0470120aaa82d9
It returns a 404 Not found error (although if I debug the code it enters the GetTransaction
method on the MainController
).
#B
GET http://localhost:4774/v1/cryptos/btc/addresses/3BXnQJd46uRCNBq9YjxBroWeGyd9zqnoXN/transactions
It returns this:
{ “height”: 592280, “confirmedTransactions”: { “transactions”: [] }, “unconfirmedTransactions”: { “transactions”: [] }, “replacedTransactions”: { “transactions”: [] } }
If you look at the transaction in a public explorer here, you can see that it’s there and valid.
What do I miss here?
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (9 by maintainers)
This is long story that requires you to understand BIP-32 (https://programmingblockchain.gitbook.io/programmingblockchain/)
I read the API docs, and it’s surely my lack of knowledge, but I still don’t know how to use derivation schemes without seeing actual samples. It would be great to have same basic (maybe Postman) samples with the GET/POST requests and their typical responses there, so that we could imagine its workings better. For example I first thought that I need to paste the actual
xpub1
orxpub-[legacy]
string into the {dericationScheme} section of the URL. Later I realized that it must be some kind of identifier instead generated somewhere, but in the end I still couldn’t use that API. I’m still not sure if it would work with a non-HD wallet or an altcoin? Some clarification would be great in the documentation 😉