简体   繁体   中英

Send Ethereum transaction, Web3.js without source address, but with source private key?

I've just started using Web3.js with node v8.10 and I wanted to check if a specific use-case was at all possible (and being the novice that I am, I probably haven't realised how to do it yet):

Is it at all possible to send a transaction from a source address, to a destination address, with ONLY the source address' private key & the destination address? and not the source address itself? Or is any transaction, RAW or SIGNED, only ever possible, with the source and destination address? (private key being optional in the case of signed transactions)?

Thanks a ton in advance!

You can derive the source address from the the private key. See answers on https://ethereum.stackexchange.com/questions/11253/ethereumjs-how-to-get-public-key-from-private-key

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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