coinbase.go
func (c Client) GetTransfers(page int) (*transfers, error) {
	params := map[string]int{
		"page": page,
	}
	holder := transfersHolder{}
	if err := c.Get("transfers", params, &holder); err != nil {
		return nil, err
	}
	transfers := transfers{
		paginationStats: holder.paginationStats,
	}
	// Remove one layer of nesting
	for _, t := range holder.Transfers {
		transfers.Transfers = append(transfers.Transfers, t.Transfer)
	}
	return &transfers, nil
}
func (c Client) GetTransfers(page int) (*transfers, error) {
	params := map[string]int{
		"page": page,
	}
	holder := transfersHolder{}
	if err := c.Get("transfers", params, &holder); err != nil {
		return nil, err
	}
	transfers := transfers{
		paginationStats: holder.paginationStats,
	}
	// Remove one layer of nesting
	for _, t := range holder.Transfers {
		transfers.Transfers = append(transfers.Transfers, t.Transfer)
	}
	return &transfers, nil
}
func ( c Client ) GetTransfers ( page int ) ( * transfers , error ) { params := map [ string ] int { " " : page , } holder := transfersHolder { } if err := c . Get ( " " , params , & holder ) ; err != nil { return nil , err } transfers := transfers { paginationStats : holder . paginationStats , } // Remove one layer of nesting for _ , t := range holder . Transfers { transfers . Transfers = append ( transfers . Transfers , t . Transfer ) } return & transfers , nil }
// GetTransfers get transfers associated with an account
GetTransfers get transfers associated with an account