Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 887 Bytes

createLegacyTransaction.md

File metadata and controls

35 lines (26 loc) · 887 Bytes

< EON API Documentation

transaction/createLegacyTransaction

Creates and signs a legacy transaction.
These are the type0 "old" legacy version ethereum transactions without replay protection.

Parameters

See request body below.

Example request

curl -sX POST 'http://127.0.0.1:9085/transaction/createLegacyTransaction' -H 'Content-Type: application/json' -H 'accept: application/json' -d <requestBody>

The request body format is like this:

{
    "from": fromAddress,
    "to": toAddress,
    "nonce": nonce,
    "gasLimit": gasLimit,
    "gasPrice": gasPrice,
    "value": value,
    "data": data,
    "signature_v": signature_v,
    "signature_r": signature_r,
    "signature_s": signature_s,
    "outputRawBytes": true
}

Example response

{ "transactionId": "xxxxxxxxxxxxxxxxx" }