Skip to content

string eth_sendRawTransaction(string _trRLPWithSig) #6

@winsvega

Description

@winsvega
Contributor

string eth_sendRawTransaction(string _transactionRLP)

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.

Activity

changed the title [-]test_addTransaction[/-] [+]string test_addTransaction(string _jsonTransaction)[/+] on Feb 28, 2018
winsvega

winsvega commented on Mar 29, 2018

@winsvega
ContributorAuthor

rename to test_signAndSendTransaction by proposal of @gumb0?

pirapira

pirapira commented on Mar 29, 2018

@pirapira
Member

test_signAndAppendTransaction?

chfast

chfast commented on Mar 29, 2018

@chfast
Member

secretKey -> privateKey?

winsvega

winsvega commented on Mar 29, 2018

@winsvega
ContributorAuthor

test files has this field named "secretKey". that might be confusing but doable

chfast

chfast commented on Mar 29, 2018

@chfast
Member

The "secret key" is confusing by itself. Nobody knows what it is except ~5 people.

cdetrio

cdetrio commented on Mar 29, 2018

@cdetrio
Member

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

winsvega commented on Mar 29, 2018

@winsvega
ContributorAuthor

that would require test runner to implement crypto libs, making it heavier

pirapira

pirapira commented on Mar 29, 2018

@pirapira
Member

@winsvega why? There is signTransaction RPC method.

winsvega

winsvega commented on Mar 29, 2018

@winsvega
ContributorAuthor

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

winsvega commented on Apr 4, 2018

@winsvega
ContributorAuthor

@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

changed the title [-]string test_addTransaction(string _jsonTransaction)[/-] [+]string eth_sendRawTransaction(string _trRLPWithSig)[/+] on Apr 9, 2018
winsvega

winsvega commented on Apr 9, 2018

@winsvega
ContributorAuthor

replacing this requirement with standart eth_sendRawTransaction

winsvega

winsvega commented on Sep 1, 2019

@winsvega
ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @pirapira@chfast@cdetrio@winsvega

        Issue actions

          string eth_sendRawTransaction(string _trRLPWithSig) · Issue #6 · ethereum/retesteth