How To Connect to Arbitrum Node
Hello everyone, today we’re going to demonstrate what is under the hood of GetBlock’s API nodes connection instruments.
Developed by OffChain Labs, Arbitrum is an ETH-compatible second-layer solution. Arbitrum ‘rolls up’ transactions into compressed data sets and broadcasts them to the mainnet in order to verify the results of these computations.
With GetBlock, Arbitrum shared and dedicated nodes can be seamlessly integrated into your decentralized product, starting today, by both beginners in web3 developers and professional veterans. GetBlock offers user-friendly solutions for all types of clients.
Now we are going to demonstrate how GetBlock users can interact with Shared nodes for Arbitrum.
First and foremost, let’s open the ‘Nodes’ folder located on the main page of the website and click ‘Shared nodes’.From there, search for Arbitrum and click ‘More Info’.
In the Arbitrum dashboard we need to find and copy the URL link to the Arbitrum mainnet API endpoint and paste it into the Postman terminal. We use Postman to demonstrate the abilities of GetBlock. It is also necessary to set ‘POST’ as the type of command.
Once this is done, we should type ‘x-api-key’ in the KEY field below. Copy the API Key and paste it into the ‘Value’ column of Postman.
As API data is filled, let’s set the rest of the parameters in the ‘Body’ tab. Please choose ‘RAW’ as a type of data requested — as we need the unprocessed ‘raw’ data from the Arbitrum blockchain — and JSON as data format.
Then let’s go back to the Arbitrum Shared Nodes folder and select JSON RPC as your API interface.
In the drop-down menu ‘Available Nodes Methods’ in the left section of the screen, find Arbitrum and choose ‘eth_blocknumber’ command designed to return the number of the most recent block. Copy the code of request.
Fill in the command by pasting the request into the Postman terminal and click ‘Send’ to authorize the request.
The request is complete!