micw/common/get_txs.go
2024-11-24 15:04:52 +01:00

35 lines
788 B
Go

package common
import "encoding/json"
const ()
type GetTxOpts struct {
TxHash []byte `param:"tx_hash"`
UserPubKey []byte `param:"user_pub_key"`
GetSent bool `param:"get_sent"`
GetReceived bool `param:"get_received"`
OrderAsc bool `param:"order_asc"`
Limit int `param:"limit"`
Offset int `param:"offset"`
Before int64 `param:"before"`
After int64 `param:"after"`
ByteEncoding string `param:"byte_encoding"`
}
type GetTxRespJson struct {
TXs []TxJson `json:"txs"`
PendingTXs []TxJson `json:"pending_txs"`
Count int `json:"count"`
ByteEncoding string `json:"byte_encoding"`
}
type GetTxResp struct {
TXs []Tx
PendingTXs []Tx
}
func (resp *GetTxResp) ToJson() ([]byte, error) {
return
}