以太坊兼容接口
eth_getTransactionCount在线调用
POST
eth_getTransactionCount
(eth_getTransactionCount)
参数
DATA - 20字节,地址
QUANTITY|TAG - 整数块编号,或字符串"latest"、"earliest"或"pending"params: [ '0x407d73d8a49eeb85d32cf465507dd71d507100c1', 'latest' // state at the latest block]
返回值
Result: nonce
示例代码
{
"jsonrpc": "2.0",
"method": "eth_getTransactionCount",
"params": [
"0x407d73d8a49eeb85d32cf465507dd71d507100c1",
"latest"
],
"id": "1"
}{
"jsonrpc": "2.0",
"id": "1",
"result": "0x30a"
}