【发布时间】:2022-10-20 15:01:11
【问题描述】:
我需要从 python 代码中监听某个钱包上的新交易(solana 转账) 从这些交易中,我需要获取发件人的钱包以及转移了多少 solan
我还需要从某些钱包中获取交易(solana 转账)
我需要通过 solana 付款(在我的 react+django 中) web-app) 也许我的方法不是最正确的
在文档中我发现了
accountSubscribe、logsSubscribe和signatureSubscribe,但我不明白什么是签名、日志,我可以从我订阅的帐户中获得新的转账吗async with connect("wss://api.devnet.solana.com") as websocket: # this code works with devnet, how can i subscribe on mainnet? await websocket.logs_subscribe() first_resp = await websocket.recv() print(f'{first_resp = }') subscription_id = first_resp.result print(f'{subscription_id = }') next_resp = await websocket.recv() print(next_resp)
【问题讨论】:
标签: python payment solana solana-py