Hi y'all ...
So I am trying to convert some code that uses an outdated API to any other API service but I need some help desciphering what the original code is intending to do, so here it is:
listfile="\n".join(f'wget -qO- https://chain.so/api/v2/get_tx_spent/BTC/{line.rstrip()[:]} > index.data' for line in myfile)So I know all APIs are different, but not having access to the original API documents I am having to guess (here it is my question): What data is the code trying to access from the online block explorer?
Is it the transaction hash? is it all transactions for that wallet? is it outputs of transactions? When I know what the code is tring to find, Ill be able to replicate that for another API that I actually have access to.
Please give me your reading of it. many thanks. m.