【发布时间】:2021-08-16 13:50:48
【问题描述】:
如何通过本地私钥与智能合约交互并使用 Web3.js 发送交易?私钥是硬编码的还是来自环境 (.env) 文件?
这是 Node.js 和服务器端交互或使用 Ethereum/Polygon/Binance 智能链智能合约的批处理作业所必需的。
您可能会遇到例如错误
Error: The method eth_sendTransaction does not exist/is not available
【问题讨论】:
标签: ethereum web3js binance-smart-chain