fix axios parser

This commit is contained in:
thloyi
2026-01-07 13:16:22 +08:00
parent 122d474524
commit 214d9e984e
3 changed files with 92 additions and 31 deletions

View File

@@ -84,8 +84,13 @@ func main() {
case txBatch := <-txCh:
//jsonData, _ := json.MarshalIndent(txBatch, "", " ")
for _, tx := range txBatch {
if tx.Label == "jupiterV6" {
fmt.Println("===============", tx.TxHash, tx.Token0Address, tx.Token0Amount)
if tx.Label == "flas" {
if tx.Event == "buy" {
fmt.Println("===============", tx.TxHash, tx.Program, tx.Event, tx.Token0Address, "token:", tx.Token0Amount, "sol:", tx.Token1Amount)
} else if tx.Event == "sell" {
fmt.Println("===============", tx.TxHash, tx.Program, tx.Event, tx.Token0Address, "token:", tx.Token0Amount)
}
}
}
//fmt.Println(txBatch[0].TxHash)