Coder Social home page Coder Social logo

Comments (5)

Technifocal avatar Technifocal commented on July 17, 2024 2

@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.

kenshin-samourai avatar kenshin-samourai commented on July 17, 2024

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.

pxsocs avatar pxsocs commented on July 17, 2024

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:
Screen Shot 2019-07-13 at 6 41 43 PM

  1. Click on Tab MULTIADDR and enter:
    active=3BMEXqGpG4FxBA1KWhRFufXfSTRgzfDBhJ
    Result:
    Screen Shot 2019-07-13 at 6 45 54 PM
    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

Screen Shot 2019-07-13 at 7 02 10 PM

  1. Click on Tab MULTIADDR and enter:
    active=1Ckq6GXGWMoALRV4hLTcoJTKX5rVUDbNLz
    Result:
    Screen Shot 2019-07-13 at 7 03 42 PM

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

Screen Shot 2019-07-13 at 7 09 53 PM

  1. 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)
  1. 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.

pxsocs avatar pxsocs commented on July 17, 2024

@Technifocal that would explain the missing transactions. Thanks.

from samourai-dojo.

kenshin-samourai avatar kenshin-samourai commented on July 17, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.