Open Georgi87 opened 7 years ago
I fully support this and in web3.js 1.0 it will be already called eth.sendSignedTransaction()
@bas-vk @obscuren can we change that and deprecate the old name?
The name was initially given by @silentcicero who just came up with the name and i didn't had much time to think about a better one back then.
parity recently introduced eth_submitTransaction
as an alias to eth_sendRawTransaction
https://github.com/ethcore/parity/blob/8404edb656693270ec1cd3956d204f625d28ec7c/rpc/src/v1/traits/eth.rs#L108-L109
Good to see parity also sees this as an issue. I think the difference between submitTransaction
and sendTransaction
is not really obvious with this naming but it is much better than sendRawTransaction
.
The naming for the RPC call
eth_sendRawTransaction
is misleading as this call allows to send a signed transaction. The termraw
is used in the context of transactions for unsigned data (raw transaction hash). Changing the RPC name toeth_sendSignedTransaction
would make the usage more clear and prevent misuse.