以太坊 事务ID txID transaction ID transaction hash怎么计算

The transaction can then be sent to the network and will be tracked by a 256 bit transaction id. This transaction can be viewed at Etherscan. The transaction id is the hash of the transaction

console.log(util.bufferToHex(transaction.hash(true)));
//0x8b69a0ca303305a92d8d028704d65e4942b7ccc9a99917c8c9e940c9d57a9662

Notice that the from address is not specified, it will be derived from the signature after signing with the private key.

https://medium.com/@codetractio/inside-an-ethereum-transaction-fa94ffca912f

猜你喜欢

转载自blog.csdn.net/u013288190/article/details/129076243