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

Support get sats/BTC balance for address (REST API) #3875

Closed
kevinfaveri opened this issue Jul 25, 2024 · 9 comments
Closed

Support get sats/BTC balance for address (REST API) #3875

kevinfaveri opened this issue Jul 25, 2024 · 9 comments

Comments

@kevinfaveri
Copy link

Similar to get runes balances API, could we have one that returns sats?

@cryptoni9n
Copy link
Collaborator

Similar to get runes balances API, could we have one that returns sats?

this curl command works for me - how about you?

curl -s 'https://ordinals.com/address/bc1pqaxt572lqqrpvvxajfxltjhq0et37ynczfxty8zz53phnqyuht4sutx04y' | grep -A 1 '<dt>sat balance</dt>' | tail -n 1 | sed 's/<\/\?dd>//g; s/^[ \t]*//; s/[ \t]*$//'

@raphjaph
Copy link
Collaborator

We should put it in the JSON API though. Should be a super easy PR. Does one of you want to try it? @cryptoni9n @kevinfaveri

@cryptoni9n
Copy link
Collaborator

We should put it in the JSON API though. Should be a super easy PR. Does one of you want to try it? @cryptoni9n @kevinfaveri

thanks raph, I'll take a stab at it shortly.

@cryptoni9n
Copy link
Collaborator

@raphjaph @kevinfaveri how does this look?

image
image

@raphjaph
Copy link
Collaborator

Perfect!

@twosatsmaxi
Copy link
Contributor

while we are at it, can we also add rune balances too? to have it with the parity of html page. @cryptoni9n @raphjaph

@raphjaph
Copy link
Collaborator

while we are at it, can we also add rune balances too? to have it with the parity of html page. @cryptoni9n @raphjaph

yes and also inscription ids

@twosatsmaxi
Copy link
Contributor

while we are at it, can we also add rune balances too? to have it with the parity of html page. @cryptoni9n @raphjaph

yes and also inscription ids

I have added it in this PR by the way 🤝 #3924

@cryptoni9n
Copy link
Collaborator

I have added it in this PR by the way 🤝 #3924

merged

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

No branches or pull requests

4 participants