Skip to content

Instantly share code, notes, and snippets.

@overcat
Last active June 17, 2023 22:03
Show Gist options
  • Save overcat/bee2e08941587d7f89dd3c9d07482c06 to your computer and use it in GitHub Desktop.
Save overcat/bee2e08941587d7f89dd3c9d07482c06 to your computer and use it in GitHub Desktop.
import requests
from stellar_sdk import Server
from stellar_sdk.client.requests_client import RequestsClient
session = requests.Session()
session.proxies = {
'https': 'http://your_proxy_ip:port',
}
client = RequestsClient(session=session)
# Print proxy ip
print(client.get('https://httpbin.org/ip').json())
server = Server(horizon_url="https://horizon-testnet.stellar.org", client=client)
print(server.fetch_base_fee())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment