RPC Request Builder
The RPC Request Builder in Tenderly Node lets you execute RPC methods in your browser. Check out the list of all supported RPC methods on Tenderly Node in our RPC Reference.
In this quick guide, you’ll learn how to use the RPC Request Builder to query the Ethereum Mainnet to get the number of the latest block.
Go to Tenderly Node
Log into the Tenderly Dashboard and click Node on the left-side menu. This is where you’ll find a list of all the supported networks and their corresponding RPC URLs.
The access token is managed automatically for you and appended to the end of the RPC URL.
Scroll down to reveal the RPC Request Builder.
Select the Ethereum Mainnet network
From the first drop-down, select the Ethereum Mainnet.
Select the eth_blockNumber
RPC method
From the second dropdown, select eth_blockNumber
. This JSON RPC method will return the latest block number on the network.
Send the request
Click Send Request. The result with the latest block number will show up in the lower pane. Results are shown in JSON RPC response format.
View decoded results
Click the Decoded tab to see results in a more human-readable form.
Run from the Terminal
In the Request Preview click cURL and click Copy. You can also copy the Ethers.js for JavaScript and Web3.py for Python code snippets.
The cURL command calling the eth_blockNumber
will be in your clipboard.
Open the Terminal, paste the command, and hit Enter.
You just queried the Ethereum Mainnet to get the number of the latest block using Tenderly Node.