Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Compare: JSON RPC

Showing with 45 additions and 8 deletions.
  1. +30 −0 JSON-RPC.md
  2. +15 −8 Web3-Secret-Storage-Definition.md
30 changes: 30 additions & 0 deletions JSON-RPC.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ The following options are possible for the defaultBlock parameter:
* [eth_getUncleCountByBlockHash](#eth_getunclecountbyblockhash)
* [eth_getUncleCountByBlockNumber](#eth_getunclecountbyblocknumber)
* [eth_getCode](#eth_getcode)
* [eth_sign](#eth_sign)
* [eth_sendTransaction](#eth_sendtransaction)
* [eth_call](#eth_call)
* [eth_estimateGas](#eth_estimategas)
Expand Down Expand Up @@ -781,6 +782,35 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getCode","params":["0xa94f53
}
```

***

#### eth_sign

##### Parameters

1. `FROM`: 20 bytes - address
1. `DATA`: Data to sign

##### Returns

1. `DATA`: Signed data

##### Example

```js
// Request
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_sign","params":["0xd1ade25ccd3d550a7eb532ac759cac7be09c2719", "Schoolbus"],"id":1}'

// Result
{
"id":1,
"jsonrpc": "2.0",
"result": "0x2ac19db245478a06032e69cdbd2b54e648b78431d0a47bd1fbab18f79f820ba407466e37adbe9e84541cab97ab7d290f4a64a5825c876d22109f3bf813254e8601"
}
```



***

#### eth_sendTransaction
Expand Down