question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: return a balance

See original GitHub issue

Example:

curl rate.sx/1Nh7uHdvY6fNwtQtM1G5EZAFPLC33B59rB

Returns:

474.27659636 BTC

Instead of a user specifying the coin, you could check a bunch of chains.

curl rate.sx/1Nh7uHdvY6fNwtQtM1G5EZAFPLC33B59rB
474.27659636 BTC + 27.00474466 BCH

Like this service does: https://blockchair.com/search?q=1Nh7uHdvY6fNwtQtM1G5EZAFPLC33B59rB for BTC and BCH.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chubincommented, Dec 5, 2017

Yes, I accept your idea to access state/balance of some ID or TXID.

But my idea was that you could specify the id direct in some expression (I don’t know if we need it, but maybe it could be useful). Something like 1BTC+BTC:1Nh7…rB something like that, so you could directly manipulate with balances, convert them, sum together and so on.

Probably in some cases you don’t need any prefix, you just write as it is and that is it.

So if you write something like this:

curl rate.sx/1Nh7uHdvY6fNwtQtM1G5EZAFPLC33B59rB

you get 474.27659636 BTC + 27.00474466 BCH, and if you want convert it, you jut write usd.rate.sx or something like that,

curl usd.rate.sx/1Nh7uHdvY6fNwtQtM1G5EZAFPLC33B59rB
0reactions
westonalcommented, Dec 6, 2017

I’d say accept one at first. If people want to see multiple, for the meantime they can just:

curl usd.rate.sx/btc.1Nh7uHdvY6fNwtQtM1G5EZAFPLC33B59rB+bch.1Nh7uHdvY6fNwtQtM1G5EZAFPLC33B59rB
Read more comments on GitHub >

github_iconTop Results From Across the Web

Support querying claimable balances by creating account ...
The logic exists to query claimable balances by other accounts and it's intuitive to expect that same filter to be available to the...
Read more >
Stripe API reference – List customer balance transactions – curl
Returns a list of transactions that updated the customer's balances. ... For instance, if you make a list request and receive 100 objects,...
Read more >
Creating returns and refunds - Shopify Help Center
You can create returns for orders, and fully or partially refund fulfilled orders. ... If your Shopify Payments account displays a negative balance, ......
Read more >
Learn about refunds on Google Play
If you bought movies, books, or other content: You may be able to request a refund more than 48 hours after your purchase...
Read more >
Try Not To Be A Slave To Feature Requests - ProdPad
When you're a product manager, you're the boss. Treat feature requests the same way you'd treat any other customer feedback.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found