返回到文章

采纳

编辑于

eth_gasPrice

ethereumj
命令

eth_gasPrice,每个gas的当前价格,单位wei。

参数:

  • none

返回:

  • QUANTITY - 当前gas的价格整数。

例子:

// Request
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":73}'

// Result
{
  "id":73,
  "jsonrpc": "2.0",
  "result": "0x09184e72a000" // 10000000000000
}