# Eth\_signTransaction

## eth\_signTransaction

> Signs a transaction locally with the private key of the specified account.<br>

```json
{"openapi":"3.0.0","info":{"title":"Ethereum JSON-RPC","version":"1.0.0"},"servers":[{"url":"https://zksync.nownodes.io"}],"security":[{"api-keyAuth":[]}],"components":{"securitySchemes":{"api-keyAuth":{"type":"apiKey","in":"header","name":"api-key"}}},"paths":{"/":{"post":{"tags":["eth_signTransaction"],"summary":"eth_signTransaction","description":"Signs a transaction locally with the private key of the specified account.\n","operationId":"eth_signTransaction","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","params","id"],"properties":{"jsonrpc":{"type":"string"},"method":{"type":"string","enum":["eth_signTransaction"]},"params":{"type":"array","description":"Array with a single object representing the transaction to sign.\n","items":{"type":"object","required":["from"],"properties":{"from":{"type":"string","description":"The address of the account that will sign the transaction.\n"},"to":{"type":"string","description":"The destination address of the transaction.\n"},"gas":{"type":"string","description":"Gas limit for the transaction, as a hex string.\n"},"gasPrice":{"type":"string","description":"Gas price in wei, as a hex string.\n"},"value":{"type":"string","description":"Amount of wei to send, as a hex string.\n"},"data":{"type":"string","description":"Data payload of the transaction, hex encoded.\n"},"nonce":{"type":"string","description":"Nonce of the transaction, as a hex string.\n"},"chainId":{"type":"integer","description":"The chain ID to protect against replay attacks.\n"}}},"minItems":1,"maxItems":1},"id":{"type":"integer"}}}}}},"responses":{"200":{"description":"JSON-RPC response with the signed transaction data","content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","id","result"],"properties":{"jsonrpc":{"type":"string"},"id":{"type":"integer"},"result":{"type":"string","description":"The signed transaction serialized and encoded as a hex string, ready to be sent via `eth_sendRawTransaction`.\n"}}}}}}}}}}}
```
