Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add /decode/<txid> and maybe /encode #3676

Closed
simongltr opened this issue Apr 24, 2024 · 1 comment
Closed

Add /decode/<txid> and maybe /encode #3676

simongltr opened this issue Apr 24, 2024 · 1 comment

Comments

@simongltr
Copy link

Hi,

I'm running a python monitoring tool for runes where I compute stats based on transactions in the block template and in the mempool.

Currently it works by running a subprocess calling the command ord --data-dir /home/ubuntu/ord_data decode --txid {txid} | jq '.runestone.Runestone' on transactions of the template/mempool.

It would be better to have access to a decode endpoint.

Optionnally, I would like to access an encode endpoint to generate a mint runestone when needed. I currently have to run a rust server accessing the internal runestone encoding function, and I make API requests with my python monitoring tool.

It's not urgent because everything is working well with the workarounds I described, but it would definitely help simplifying my code and allow non rust devs to build cool tools.

Best,
Simon

@raphjaph
Copy link
Collaborator

Closed by #3733

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants