-
hyc
reproducible GUI progress sounds promising TheCharlatan
-
philogy
Hey, I was wondering if anyone knew an easy way how to connect to a locally running full node through python and to then query the blockchain?
-
binaryFate
use the monero python lib
-
sarang
The explorer API can also provide similar functionality if you have it set up (or use a remote explorer)
-
binaryFate
-
moneromooo
You can also use utils/python/console PORTGOESHERE
-
moneromooo
then daemon.TABTAB
-
philogy
Thanks a lot, I'll check those things out!
-
moneromooo
The in-tree python stuff maps directly to RPC, while other things might be higher level.
-
sarang
What sort of data and quantity for the query?
-
philogy
I'm not sure yet but I'd like to play around and see how often transactions are referenced by other transactions in rings and data like that. I'm also curious to see how "traceable" some of my own transactions may be
-
sarang
Got it
-
philogy
I would just use a block explorer but the ones I've found don't support the ability to view all the transactions where outputs have been used as ring members
-
sarang
The explorer API can be slow for really large querying, but it's got a nice interface overall
-
philogy
What do you mean by the explorer API?
-
moneromooo
The db does not have an index for this, so it'll still be slow.
-
moneromooo
Isthmus: do you have this data (output -> what txes use it) ?
-
binaryFate
philogy if you get something usable, please share! I'm curious to see anything about that too
-
moneromooo
Actually I'm wondering if it's not what blockchain_ancestry.cpp does.
-
sarang
-
moneromooo
I totally forgot why I made this.
-
kayront
there's a small bug with the ledger app, it's been there maybe since forever
-
kayront
if you use a temporary passphrase, when/if the device goes into inactivity, after re-entering the pin, it's the default wallet (no password) that returns
-
kayront
another thing: would it technically be possible to have an "account viewkey", rather than a wallet-wide one? use cases would be services that require the viewkey to confirm payments, generate addresses etc, this is a fairly common use case; and for simplicity/backup/sanity reasons it's helpful to only have one underlying seed
-
selsta
kayront: please report to Ledger repo :)
-
kayront
will do selsta
-
philogy
kayront: I'll try to see if I can replicate it, but as far as I know the monero dev team doesn't have much to do with the development of the monero ledger app. Most of the work is done by the ledger team. Also as just mentioned bugs should be reported at the relevant repo :P
-
philogy
is any maintainer of the monero-ecosystem/monero-python repository in this chat by any chance?
-
philogy
how do I use offsets to find transactions in the blockchain?
-
hyc
hm, as I recall, transactions don't use offsets. outputs do.
-
moneromooo
Offsets are the 0 based index of an output in its set of outputs of equal amount in blockchain order (0 for rct outputs where the amount if not known).
-
moneromooo
For this purpose, v2 coinbase outs are deemed rct, even though their amount is known.
-
philogy
ah so basically if I count from the beginning of the block chain and assign a number to every output that is the offset, and then the numbers listed are relative to one another?
-
moneromooo
Yes.
-
philogy
I lost the chat history so I don't remember who you were but for the person who asked what I ended up using to query the blockchain from python is the monero library for python, while quite limited and simplistic it gives me a good starting interface I can use and build on.
-
philogy
I mean no offense to the library obviously it just seems like it's more targeted at people looking to use access wallet functionality through an API
-
philogy
How does the monero gui client efficiently find outputs/calculate offsets once it has selected them? Does it just go through the blockchain and calculate the offset as it goes along? Is it cached or stored somewhere if so can I access it through the rpc?
-
moneromooo
Stored.
-
moneromooo
You get them from get_blocks.bin, possibly other calls.