NEXUS

eth_signTransaction

Returns an RLP-encoded transaction signed by the specified account.

Request Format

{
  "jsonrpc": "2.0",
  "method": "eth_signTransaction",
  "params": [
    {
      "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",
      "from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155",
      "gas": "0x76c0",
      "gasPrice": "0x9184e72a000",
      "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",
      "value": "0x9184e72a"
    }
  ],
  "id": 1
}

Response Format

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xa3f20717a250c2b0b729b7e5becbff67fdaef7e0699da4de7ca5895b02a170a12d887fd3b17bfdce3481f10bea41f45ba9f709d39ce8325427b57afcfc994cee1b"
}

Parameters

  • Transaction (GenericTransaction): The transaction object containing:
    • data (bytes): The transaction input data.
    • from (address): The sender's Ethereum address.
    • gas (uint): The gas limit for the transaction.
    • gasPrice (uint): The gas price in wei.
    • to (address): The recipient's Ethereum address.
    • value (uint): The amount of ETH to send.

Return Value

  • Encoded Transaction (bytes): The signed transaction encoded in RLP format.

Example

Request

{
  "jsonrpc": "2.0",
  "method": "eth_signTransaction",
  "params": [
    {
      "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",
      "from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155",
      "gas": "0x76c0",
      "gasPrice": "0x9184e72a000",
      "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",
      "value": "0x9184e72a"
    }
  ],
  "id": 1
}

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xa3f20717a250c2b0b729b7e5becbff67fdaef7e0699da4de7ca5895b02a170a12d887fd3b17bfdce3481f10bea41f45ba9f709d39ce8325427b57afcfc994cee1b"
}

Notes

  • This method signs a transaction without broadcasting it.
  • The signed transaction can be sent to the network using eth_sendRawTransaction.
© 2025 NEXUS Co., Ltd. All Rights Reserved.