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 }