如何在Binance的测试网上使用API​​密钥/秘密?

发布于 2025-01-25 09:48:36 字数 562 浏览 3 评论 0原文

按照此处的说明, https://docs.binance.org/smart-chain-chain-chain-chain-chain-chain /wallet/arkane.html ,我使用其“ 0x”前缀的钱包地址创建了一个Binance SmartChain帐户。然后,我增加了资金。我不知道是如何获得TestNet API键和秘密,以便我可以测试我的Python API调用。我像这样创建客户端,

from binance.client import Client
...
auth_client = Client(key, b64secret)
 if account.testing:
    auth_client.API_URL = 'https://testnet.binance.vision/api'

如何获得与我的Binance SmartChain地址相关的API键?

Following the instructions here, https://docs.binance.org/smart-chain/wallet/arkane.html, I created a Binance SmartChain account with its "0x" prefixed wallet address. I then added funds. What I can't figure out is how I get a TestNet API key and secret so that I can test my Python API calls. I create the client like so

from binance.client import Client
...
auth_client = Client(key, b64secret)
 if account.testing:
    auth_client.API_URL = 'https://testnet.binance.vision/api'

How do I get an API key tied to my Binance SmartChain address?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

櫻之舞 2025-02-01 09:48:36

您必须从

auth_client = Client(key, b64secret, testnet=True)

做工作。

You have to create your API credentials from here and pass the testnet variable into the Client constructor. See the
documentation.

auth_client = Client(key, b64secret, testnet=True)

does the job.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文