简体   繁体   English

我可以将solidity合约与后端Node.js连接起来吗

[英]Can I connect solidity contract with backend Node.js

I am a beginner, Can anyone please guide me that how can I connect my smart contract (erc721) with node.js.我是初学者,谁能指导我如何将我的智能合约(erc721)与 node.js 连接起来。 Please guide through steps or links.请指导步骤或链接。 Thanks a lot.非常感谢。

If you want to start developing smart contracts in a local network and test those contracts you should use these frameworks: truffle and hardhat .如果您想开始在本地网络中开发智能合约并测试这些合约,您应该使用这些框架: trufflehardhat You may check out both of them but and the end you will use only one, so the one you like the most.您可以同时查看它们,但最后您将只使用一个,所以您最喜欢的那个。

And the libraries you should use to interact with smart contracts using NodeJS are: web3 or ethers .您应该使用 NodeJS 与智能合约交互的库是: web3ethers

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM