// ListTransactions calls the /tx endpoint of the API to list all transactions.
// The arguments are optional, zero values would default them.
ListTransactions calls the /tx endpoint of the API to list all transactions.
The arguments are optional, zero values would default them.
// ListTransactions calls the / tx endpoint of the API to list all transactions . // The arguments are optional zero values would default them .
func (c *Client) ListTransactions(
	senderID string, creatorID string, offset uint64, limit uint64,
) ([]Transaction, error) {
	vals := url.Values{}
	if senderID != "" {
		vals.Set("sender", senderID)
	}
	if creatorID != "" {
		vals.Set("creator", creatorID)
	}
	if offset != 0 {
		vals.Set("offset", strconv.FormatUint(offset, 10))
	}
	if limit != 0 {
		vals.Set("limit", strconv.FormatUint(limit, 10))
	}
	path := RouteTxList + "?" + vals.Encode()
	var res TransactionList
	if err := c.RequestJSON(path, ReqGet, nil, &res); err != nil {
		return nil, err
	}
	return res, nil
}
func ( c * Client ) ListTransactions ( senderID string , creatorID string , offset uint64 , limit uint64 , ) ( [ ] Transaction , error ) { vals := url . Values { } if senderID != " " { vals . Set ( " " , senderID ) } if creatorID != " " { vals . Set ( " " , creatorID ) } if offset != 0 { vals . Set ( " " , strconv . FormatUint ( offset , 10 ) ) } if limit != 0 { vals . Set ( " " , strconv . FormatUint ( limit , 10 ) ) } path := RouteTxList + " " + vals . Encode ( ) var res TransactionList if err := c . RequestJSON ( path , ReqGet , nil , & res ) ; err != nil { return nil , err } return res , nil }
ListTransactions calls the /tx endpoint of the API to list all transactions.
ListTransactions calls the / tx endpoint of the API to list all transactions .