UNPKG

652 BMarkdownView Raw
1<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
2
3# blockFromRpc
4
5Creates a new block object from Ethereum JSON RPC.
6
7**Parameters**
8
9- `blockParams` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** Ethereum JSON RPC of block (eth_getBlockByNumber)
10- `Optional` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)>** list of Ethereum JSON RPC of uncles (eth_getUncleByBlockHashAndIndex)
11- `uncles`