eth_syncing - Arbitrum
Example code for the eth_syncing JSON RPC method. Сomplete guide on how to use eth_syncing JSON RPC in GetBlock Web3 documentation.
Parameters
Request
curl --location 'https://go.getblock.us/<ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_signTransaction",
"params": [],
"id": "getblock.io"
}const axios = require('axios');
let data = JSON.stringify({
"jsonrpc": "2.0",
"method": "eth_syncing",
"params": [],
"id": "getblock.io"
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://go.getblock.us/<ACCESS_TOKEN>',
headers: {
'Content-Type': 'application/json'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Response
{
"jsonrpc": "2.0",
"id": "getblock.io",
"result": false
}Response Parameter Definition
Field
Type
Description
Error handling
Status Code
Error Message
Cause
Integration with Web3
Last updated
Was this helpful?