eth_getTransactionCount,返回从该地址发送的交易数量。
参数:
- DATA, 20 Bytes - 地址.
- QUANTITY|TAG - 区块号, 或"latest", "earliest" , "pending"
params: [ '0x407d73d8a49eeb85d32cf465507dd71d507100c1', 'latest' // state at the latest block ]
返回
- QUANTITY - 返回从该地址发送的交易数量。
例子:
// Request
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getTransactionCount","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1","latest"],"id":1}'
// Result
{
"id":1,
"jsonrpc": "2.0",
"result": "0x1" // 1
}