⚡ We welcome businesses to test our enterprise-grade service

avax
Avalanche (AVAX)

Method: POST rollup_gasPrices

dropdown

方法 RPC rollup_gasPrices 例如 Avalanche (AVAX)

POST rollup_gasPrices

Method not allowed

返回测序仪使用的L1和L2气价来计算费用。

Parameters

-

Request

curl --location --request POST 'https://avax.getblock.io/mainnet/ext/bc/C/rpc' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "rollup_gasPrices",
"params": [],
"id": "getblock.io"}'


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}