eth_getTransactionCount

返回一个地址发送的交易数量。

Parameters

  • ADDRESS [必须] 地址。

  • BLOCK-NUMBER [必须] 十六进制块号,或字符串latest, earliest or pending默认块号参数

Request

curl https://eth-mainnet.solarpath.io/v1/YOUR-API-KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "id": 1, "method": "eth_getTransactionCount", "params": ["0xea674fdde714fd979de3edf0f56aa9716b898ec8", "0x658a13"]}'

Response

{
  "id": 1,
  "jsonrpc": "2.0",
  "result": "0xf8685e"
}

最后更新于