Blockchain sendSignedTransaction不提供返回值

Blockchain sendSignedTransaction不提供返回值,blockchain,ethereum,solidity,smartcontracts,web3js,Blockchain,Ethereum,Solidity,Smartcontracts,Web3js,我正在制作一个dapp,它有注册、登录功能。(我使用的是ropsten infura) 注册功能是状态更改功能,所以我必须使用 web3.method.signup().send()方法 但是由于我们不能使用send(),所以我必须使用sendSignedTransaction()。 (=>等待web3.eth.sendSignedTransaction(0x${serialTx.toString('hex')}) 我想在注册函数之后获得返回值,但sendSignedTransaction没有给

我正在制作一个dapp,它有注册、登录功能。(我使用的是ropsten infura) 注册功能是状态更改功能,所以我必须使用

web3.method.signup().send()方法

但是由于我们不能使用send(),所以我必须使用sendSignedTransaction()。 (=>等待web3.eth.sendSignedTransaction(
0x${serialTx.toString('hex')}

我想在注册函数之后获得返回值,但sendSignedTransaction没有给我返回值

我该怎么做???

以太坊“写入”事务没有返回值。相反,您需要做的是在Solidity代码中发出事件。前端监听这些事件,然后对它们做出反应

您可以通过合同函数或直接从
web3.eth.getTransactionReceive()
获取事件

以太坊“写入”事务没有返回值。相反,您需要做的是在Solidity代码中发出事件。前端监听这些事件,然后对它们做出反应

您可以通过合同函数或直接从
web3.eth.getTransactionReceive()
获取事件