Last active
June 17, 2023 22:03
-
-
Save overcat/bee2e08941587d7f89dd3c9d07482c06 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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