Comments (5)
@kenshin-samourai Fair enough, using active
seems to work. I feel like the documentation for active
could be improved as it does not mention that they will be imported at all:
active - string - A pipe-separated list of extended public keys and/or loose addresses and/or pubkeys (xpub1|address1|address2|pubkey1|...)
@pxsocs Dojo is only able to acquire UTXOs, not STXOs, without using oxt.me
(which is disabled by default for privacy reasons, I believe). This is a limitation of bitcoind's scantxoutset
from samourai-dojo.
addresses are restored by passing the addresses to /multiaddr through the "active" parameter.
as you will notice step 1 doesn't process active addresses.
others parameters of the endpoint (new, bip49, bip84, pubkey) are for new addresses/xpubs.
from samourai-dojo.
I'm going to try to detail here the steps I'm taking. Both with the Dojo Maintenance Tool as well as with the API and the results I'm getting. I just can't get the transaction details correctly or reliably. Not sure what I'm missing. Tried many different things and still not getting reliable transaction data.
Importing with the Maintenance Tool
Test 1
Sample random address: 3BMEXqGpG4FxBA1KWhRFufXfSTRgzfDBhJ
OXT Shows the following activity:
- Click on Tab MULTIADDR and enter:
active=3BMEXqGpG4FxBA1KWhRFufXfSTRgzfDBhJ
Result:
Notice the hash of the single transaction is the hash of the last transaction in this address (on July 3rd).
Result with this address: Correct Balance (since last tx is ok) but only 1 tx listed
Test 2
Sample random address: 1Ckq6GXGWMoALRV4hLTcoJTKX5rVUDbNLz
Result with this address: Correct Balance (zero) but no tx listed.
Alternative method tried with the Maintenance Tool
. Step 1: MULTIADDR: new=[add]
. Step 2: ADDR. RESCAN
. Step 3: MULTIADDR: pubkey=[add]
This method works some times returning all txs (but doesn't work consistently)
Importing with the API
Test 1
Sample random address: 1JFzLv56GqDgxg8S88t9Mt46x19sD9P9zP
- Send Get request:
GET /multiaddr?active=1JFzLv56GqDgxg8S88t9Mt46x19sD9P9zP&at=[token]
API LOG Returns:
Importing 1JFzLv56GqDgxg8S88t9Mt46x19sD9P9zP
Got 0 transactions
Imported 1 addresses in 44.3s (44335 ms/addr)
- List Transactions:
GET /txs?active=1JFzLv56GqDgxg8S88t9Mt46x19sD9P9zP&at=[token
Returns:
{"n_tx": 0, "address": "1JFzLv56GqDgxg8S88t9Mt46x19sD9P9zP", "balance": 0}
Result with this address: No Txs seem to be imported.
from samourai-dojo.
@Technifocal that would explain the missing transactions. Thanks.
from samourai-dojo.
@Technifocal ACK for the doc
@pxsocs Technifocal is 100% correct about the limitations of dojo when using bitcoind's scantxoutset.
from samourai-dojo.
Related Issues (20)
- BTCPayServer-Docker integration HOT 3
- External bticoind not tracking new blocks HOT 10
- Dojo API: /auth/refresh throws error when refreshToken is supplied in request body HOT 5
- my-dojo tracker stops adding blocks and the db container shows connection abortion error HOT 6
- Failed import/rescan of unconfirmed transactions
- Maintenance Tool - XPUB & ADDRESS INFO check return NO tx & balance
- Dojo can't start after update HOT 1
- Add the option to use an Electrum server as a backend HOT 1
- Remove/uninstall btc-rpc-explorer HOT 4
- Add Dojo version number to admin UI HOT 1
- Change to doc/DOCKER_setup.md
- Make node services listen on localhost only by default HOT 1
- Avoid printing xpubs in the logs HOT 1
- ECONNREFUSED from external bitcoind HOT 2
- Can I change the password on the explorer service? HOT 2
- Dojo tracker no working on MyNode HOT 1
- Unable to connect to Dojo HOT 1
- Upgrade to version 1.18.0 fails
- Using Dojo with Electrum Personal Server HOT 2
- Add option --nolog to dojo.sh install command
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from samourai-dojo.