Skip to content

Ability to use an onion endpoint for Esplora client. #927

@Fonta1n3

Description

@Fonta1n3

I am using Tor and would like to utilize Esplora over Tor like:
let client = EsploraClient(url: "http://explorerzydxu5ecjrkwceayqybizmpjjznk5izmitf2modhcusuqlid.onion/testnet/api/", proxy: "socks5h://127.0.0.1:19050")

I have tried numerous variations, like socks5://127.0.0.1:19050 and replaced 127.0.0.1 with localhost, yet always get:

BitcoinDevKit.EsploraError.Minreq(errorMessage: "the provided proxy information is malformed")

Are onions supported in BDK? Tor is working fine via 19050 for me fetching the Esplora endpoint manually via URLSession.

What proxy format works with BDK?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions