15 请教下我照抄官方TronWeb的api,为何不会弹出授权

image.png 我是照着官方的api写的,实在找不出原因 image.png

请先 登录 后评论

最佳答案 2022-10-04 00:40

要和tronlink交互得使用注入的tronWeb,而不是你自己new的, 从privateKey 行到 setHeader都是不需要的,这些信息是取tronlink的当前账号。 具体文档链接 https://cn.developers.tron.network/docs/dapp-integrate-with-tronlink-introduction

请先 登录 后评论

其它 1 个回答

hjl8419
请先 登录 后评论