Skip to content

Commit 67e68c8

Browse files
author
lizekun
committed
sendRawTransaction
1 parent 09acbd2 commit 67e68c8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

geth.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ import (
66
"strconv"
77
)
88

9+
func (c *Client) GetTransactionCount(address string) (count uint64, err error) {
10+
param := M{
11+
"address": address,
12+
"tag": "latest",
13+
}
14+
err = c.call("proxy", "eth_getTransactionCount", param, &count)
15+
return
16+
}
17+
918
func (c *Client) GetBlockByNumber(blockNum int64) (block Block, err error) {
1019
param := M{
1120
"boolean": "true",

0 commit comments

Comments
 (0)