> For the complete documentation index, see [llms.txt](https://docs.ebs.ezat.io/ebs-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ebs.ezat.io/ebs-documentation/services/rpc/supported-networks/ethererum/eth_signtransaction.md).

# eth\_signTransaction

eth\_signTransaction RPC Method

**Parameters:**

*object* - The transaction response object which contains the following fields:

&#x20;    *from* - The address the transaction is sent from

&#x20;    *to* - (optional for contract creation) The address the transaction is directed to

&#x20;    *gas* - (default: 90000) The integer of the gas provided for the transaction execution

&#x20;    *gasPrice* - The integer of the gasPrice used for each paid gas, in wei

&#x20;    *value* - The integer of the value sent with this transaction, in wei

&#x20;    *data* - The compiled code of a contract or the hash of the invoked method signature and encoded parameters

&#x20;    *nonce* - The integer of a nonce. This allows overwriting the own pending transactions that use the same nonce

**Returns:**

*result* - The signed transaction object

**Code Examples:**

```
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
  "method": "eth_signTransaction",
  "params": [],
  "id": 1,
  "jsonrpc": "2.0"
});

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: raw,
  redirect: 'follow'
};

fetch("https://api.ebs.ezat.io/core/api/v1.0/rpc/ethererum/mainnet?x-api-key-id=API-KEY-ID&x-api-key=API-KEY", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
```
