You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Accepts a transaction RLP list of the following items:
u256 nonce;
u256 gasPrice;
u256 gasLimit;
hash32 toAddress (could be empty)
u256 value
bytes data;
byte v (in form 27 + (0|1) and so on)
h256 r
h256 s
and apply on top of the current chain configuration. (add it to a block which is yet not finalized)
returns the hash of the imported transaction if transaction is valid. or 0 if it's not.
Why not sign the tx in the test runner and then send it to the client with eth_sendRawTransaction? Fewer RPC methods makes it easier to support more clients.
ok. then I should study how it works. so maybe there is no need in this method.
I see, I've remembered. @pirapira is there a method to add account by private key via RPC ? signTransaction wont work if there is no account
Activity
[-]test_addTransaction[/-][+]string test_addTransaction(string _jsonTransaction)[/+]winsvega commentedon Mar 29, 2018
rename to
test_signAndSendTransaction
by proposal of @gumb0?pirapira commentedon Mar 29, 2018
test_signAndAppendTransaction
?chfast commentedon Mar 29, 2018
secretKey
->privateKey
?winsvega commentedon Mar 29, 2018
test files has this field named "secretKey". that might be confusing but doable
chfast commentedon Mar 29, 2018
The "secret key" is confusing by itself. Nobody knows what it is except ~5 people.
cdetrio commentedon Mar 29, 2018
Why not sign the tx in the test runner and then send it to the client with
eth_sendRawTransaction
? Fewer RPC methods makes it easier to support more clients.winsvega commentedon Mar 29, 2018
that would require test runner to implement crypto libs, making it heavier
pirapira commentedon Mar 29, 2018
@winsvega why? There is
signTransaction
RPC method.winsvega commentedon Mar 29, 2018
ok. then I should study how it works. so maybe there is no need in this method.
I see, I've remembered.
@pirapira is there a method to add account by private key via RPC ? signTransaction wont work if there is no account
winsvega commentedon Apr 4, 2018
@pirapira @cdetrio @holiman
ok. what if instead of adding this new method. there would be a
test_registerAccount(Privatekey)
then it would be possible to use existing signTransaction and sendRawTransaction
[-]string test_addTransaction(string _jsonTransaction)[/-][+]string eth_sendRawTransaction(string _trRLPWithSig)[/+]winsvega commentedon Apr 9, 2018
replacing this requirement with standart
eth_sendRawTransaction
winsvega commentedon Sep 1, 2019
https://github.com/ethereum/retesteth/wiki/RPC-Methods