简体   繁体   English

如何创建一个没有元掩码的 DAPP

[英]How to Create a DAPP without metamask

I want to make a voting system with ethereum.我想用以太坊制作一个投票系统。 I referred to this.我提到了这个。 : https://romeoh.tistory.com/entry/Solidity-Front-end-%EA%B5%AC%EB%8F%99%ED%95%98%EA%B8%B0?category=340661 It was possible to vote by implementing the Web. : https://romeoh.tistory.com/entry/Solidity-Front-end-%EA%B5%AC%EB%8F%99%ED%95%98%EA%B8%B0?category=340661这是可能的通过实施网络投票。 But I had to press the approval button directly using metamask.但我不得不直接使用 metamask 按下批准按钮。 Is it possible to proceed voting and pay gas without metamask extension program in Chrome?是否可以在 Chrome 中没有 metamask 扩展程序的情况下进行投票和支付 gas 费用?

If so, please let me know what method or algorithm you need.如果是这样,请告诉我您需要什么方法或算法。 Also, if you have a link to refer to, I'd appreciate it if you could attach a link.另外,如果您有可参考的链接,如果您能附上链接,我将不胜感激。

We use metamask to sign the transaction.我们使用元掩码来签署交易。 To sign your transaction without metamask u would need private key and public key of the account with which you want to make transaction.要在没有元掩码的情况下签署您的交易,您需要您要与之进行交易的帐户的私钥和公钥。 after that you can follow this etherum stack exchange link which shows how to make transaction with private key之后,您可以按照此以太坊堆栈交换链接,该链接显示了如何使用私钥进行交易

I don't think you can do this with out metamask, As you will be needing a wallet to connect with web3 and perform task on blockchain/ Calling functions in your smart contract.我认为没有 metamask 就无法做到这一点,因为您将需要一个钱包来连接 web3 并在您的智能合约中执行区块链/调用功能的任务。 It's like you want to ride a bicycle without peddles.这就像你想骑一辆没有兜售的自行车。

If you are looking for options other than metamask then you can try to use Mist browser.如果您正在寻找元掩码以外的选项,那么您可以尝试使用 Mist 浏览器。

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

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