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.

Allow looking up the price through tor

See original GitHub issue

Hey, I’ve been trying to wrap spark-wallet in torsocks to only allow outbound connections through tor, in particular getting the price from bitstamp. However, I’m getting the following error:

$ torsocks spark-wallet --ln-path /var/lib/clightning/
1556879472 WARNING torsocks[31447]: [syscall] Unsupported syscall number 293. Denying the call (in tsocks_syscall() at syscall.c:568)
1556879472 WARNING torsocks[31447]: [syscall] Unsupported syscall number 292. Denying the call (in tsocks_syscall() at syscall.c:568)
Connected to c-lightning v0.7.0 with id 03c6467e1eeb4076cf22c44ffefbe8cd9ea32513be7886bb7e2677934c353dfcf2 on network bitcoin at /var/lib/clightning/lightning-rpc
Loading login credentials from /root/.spark-wallet/cookie

HTTP server running on http://localhost:9737
Error: Forbidden
    at Request.callback (/nix/store/3mghavqs65nqckif57py60ws1v2vpij7-node-spark-wallet-0.2.5/lib/node_modules/spark-wallet/node_modules/superagent/lib/node/index.js:706:15)
    at IncomingMessage.parser (/nix/store/3mghavqs65nqckif57py60ws1v2vpij7-node-spark-wallet-0.2.5/lib/node_modules/spark-wallet/node_modules/superagent/lib/node/index.js:916:18)
    at IncomingMessage.emit (events.js:194:15)
    at endReadableNT (_stream_readable.js:1125:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

Spark wallet works as usual, but my wallet balance (in usd) remains n/a. I’ve been trying to debug this, but I have no idea why it shouldn’t just work. So I’m wondering if superagent does something fancy in the background.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jonasnickcommented, May 18, 2019

Wasabi Wallet provides an API for the USD rate 😬

torsocks curl -X GET "http://wasabiukrxmkdgve5kynjztuovbg43uxcbcxn6y2okcrsg7gb6jdmbad.onion/api/v3/btc/Offchain/exchange-rates" -H "accept: application/json"                                                                                                                                                  
[{"ticker":"USD","rate":7272.75}]

(see https://wasabiwallet.io/swagger/index.html)

0reactions
jonasnickcommented, Jun 7, 2019

Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Use Tor Browser Safely in 2022: A Beginner's Guide
They are similar because both can be used as a way to maintain a level of anonymity online. And like a VPN, Tor...
Read more >
What is the dark web? How to use Tor to access the dark web
Worried about your privacy online? Here's how to access the dark web using Tor and protect yourself from prying eyes.
Read more >
Your Ultimate Guide to Tor Browser - All you Need to Know
In this guide youn will learn everything you need to know about he TOR browser. Find out how to use TOR to increase...
Read more >
Tor Is For Everyone: Why You Should Use Tor
Tor is a network and a software package that helps you anonymously use the Internet. Specifically Tor hides the source and destination of...
Read more >
Tor over VPN: Is it useful if you're not a whistleblower?
Tor (Onion) over VPN is a method to make your connection absolutely anonymous. Learn all there is to know about this method of...
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