⚡ We welcome businesses to test our enterprise-grade service

/

KuCoin Community Chain (KCC)

kcc
KuCoin Community Chain (KCC)

Method: POST rollup_gasPrices

dropdown

方法 RPC rollup_gasPrices 例如 KuCoin Community Chain (KCC)

POST rollup_gasPrices

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

Parameters

-

Request

curl --location --request POST 'https://kcc.getblock.io/mainnet/' \
--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

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "l1GasPrice": "0x95b1ec61f",
        "l2GasPrice": "0xf4240"
    }
}