curl --request POST \
--url https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_bigBlockGasPrice",
"params": [],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x3b9aca00"
}
Returns the gas price for large blocks on Hyperliquid EVM.
curl --request POST \
--url https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_bigBlockGasPrice",
"params": [],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x3b9aca00"
}
eth_bigBlockGasPrice
JSON-RPC method returns the base fee for the next big block on Hyperliquid EVM. This is a Hyperliquid-specific method that provides gas pricing for addresses using big blocks.
result
— The base fee for the next big block in wei as a hexadecimal string0x
prefix// Convert big block gas price to different units
const bigBlockGasPriceWei = parseInt("0x3b9aca00", 16); // 1000000000 wei
const bigBlockGasPriceGwei = bigBlockGasPriceWei / 1e9; // 1 gwei
const bigBlockGasPriceEther = bigBlockGasPriceWei / 1e18; // 0.000000001 ether
eth_bigBlockGasPrice
method returns the base fee specifically for these big blocks.
Key differences:
eth_gasPrice
)eth_usingBigBlocks
to check if an address is using big blockseth_usingBigBlocks
— returns whether an address is using big blockseth_gasPrice
— returns the base fee for standard (small) blocks// Get big block gas price
const getBigBlockGasPrice = async () => {
const response = await fetch('https://hyperliquid-mainnet.core.chainstack.com/YOUR_ENDPOINT/evm', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
jsonrpc: '2.0',
method: 'eth_bigBlockGasPrice',
params: [],
id: 1
})
});
const data = await response.json();
return data.result;
};
// Compare with standard gas price
const compareGasPrices = async () => {
const [standardPrice, bigBlockPrice] = await Promise.all([
// Standard gas price call
fetch('https://hyperliquid-mainnet.core.chainstack.com/YOUR_ENDPOINT/evm', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0',
method: 'eth_gasPrice',
params: [],
id: 1
})
}).then(r => r.json()),
// Big block gas price call
getBigBlockGasPrice()
]);
return {
standard: standardPrice.result,
bigBlock: bigBlockPrice,
standardGwei: parseInt(standardPrice.result, 16) / 1e9,
bigBlockGwei: parseInt(bigBlockPrice, 16) / 1e9
};
};
curl -X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_bigBlockGasPrice","params":[],"id":1}' \
https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm
eth_bigBlockGasPrice
method is useful for:
eth_usingBigBlocks
to check if an address is using big blocks, and compare with eth_gasPrice
for standard block pricing.Successful response with the big block gas price
The response is of type object
.