post https://eth-mainnet.nodereal.io/v1/
Returns information about a block by block number.
Response
Returns information about a block by block number.
xxxxxxxxxx
10const options = {
method: 'POST',
headers: {accept: 'application/json', 'content-type': 'application/json'},
body: JSON.stringify({id: 1, jsonrpc: '2.0', method: 'eth_getBlockByNumber'})
};
fetch('https://eth-mainnet.nodereal.io/v1/1659dfb40aa24bbb8153a677b98064d7', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));