txm, err := goethx.NewTxMgr(&logger.Log, ethClient, 6, 15* time.Minute, 1 * time.Second)
if err != nil {
log.Fatalf("goethx.NewTxMgr: %v", err)
}
chTx := make(chan goethx.TxMsg)
go txm.MonitorTx(common.HexToHash("0x123"), chTx)
msg := <- chTx
if msg.Err != nil {
log.Fatalf("goethx.MonitorTx(%s): %v", common.HexToHash("0x123").String(), msg.Err)
}
-
Notifications
You must be signed in to change notification settings - Fork 0
ethereum transactions listener
License
vincentserpoul/goethx
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
ethereum transactions listener
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published