2024-08-26 12:31:20 +02:00
|
|
|
package models
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2024-10-17 11:49:51 +02:00
|
|
|
type Transaction struct {
|
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
TransferValue json.Number `json:"transferValue"`
|
|
|
|
TxHash string `json:"txHash"`
|
|
|
|
TxType string `json:"txType"`
|
|
|
|
}
|
2024-08-26 12:31:20 +02:00
|
|
|
|
|
|
|
type TrackStatusResponse struct {
|
|
|
|
Ok bool `json:"ok"`
|
|
|
|
Result struct {
|
|
|
|
Transaction struct {
|
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
TransferValue json.Number `json:"transferValue"`
|
|
|
|
TxHash string `json:"txHash"`
|
|
|
|
TxType string `json:"txType"`
|
|
|
|
}
|
|
|
|
} `json:"result"`
|
2024-10-17 11:49:51 +02:00
|
|
|
}
|