I want to iterate (from a Python program) over all the outputs of all the transactions on the blockchain. Is there any RCP command or something like that, that returns a structure of transactions as is and not their hashes?
Thank you all!
Monero Stack Exchange is a question and answer site for developers and users of the secure, private and untraceable cryptocurrency Monero. It only takes a minute to sign up.
Sign up to join this communityI want to iterate (from a Python program) over all the outputs of all the transactions on the blockchain. Is there any RCP command or something like that, that returns a structure of transactions as is and not their hashes?
Thank you all!
https://getmonero.org/resources/developer-guides/daemon-rpc.html
Documents all the API methods you would need.
You would first use get_block_count then iterate calling get_block, then calling get_transactions with the returned tx_hashes
from get_block
.
curl -X POST http://127.0.0.1:28081/get_transactions -d '{"txs_hashes":["80ba003b5115a66e3aa77b6e6d4c8d5ef71e8a9806b4a9a1c69dc4c3f325251e"],"decode_as_json":true}' -H 'Content-Type: application/json
works fine for me.
– jtgrassie♦
Oct 16 '18 at 13:36