更新时间:2024-09-03 GMT+08:00
        
          
          
        
      
      
      
      
      
      
      
      
  
      
      
      
        
eth_getTransactionCount
简介
返回从某一地址发送的交易数。该API所消耗的计算单元为26。
参数说明
| 
        参数  | 
      
        类型  | 
      
        说明  | 
     
|---|---|---|
| 
        地址  | 
      
        String  | 
      
        要检查的交易计数的地址。  | 
     
| 
        区块编号  | 
      
        String  | 
      
        想要查询的区块的十六进制的编号,或者是字符串 "earliest"、"latest"、"pending"。  | 
     
返回值
从地址发送的十六进制编码的交易数量
请求样式
curl https://your-http-endpoint/v1/<API-KEY> \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_getTransactionCount","params":["0x8D97689C9818892B700e27F316cc3E41e17fBeb9", "latest"],"id":1,"jsonrpc":"2.0"}'
 
   父主题: 共享版