coinbase.go
func (c Client) GetAllAddresses(params *AddressesParams) (*addresses, error) {
	holder := addressesHolder{}
	if err := c.Get("addresses", params, &holder); err != nil {
		return nil, err
	}
	addresses := addresses{
		paginationStats: holder.paginationStats,
	}
	// Remove one layer of nesting
	for _, addr := range holder.Addresses {
		addresses.Addresses = append(addresses.Addresses, addr.Address)
	}
	return &addresses, nil
}
func (c Client) GetAllAddresses(params *AddressesParams) (*addresses, error) {
	holder := addressesHolder{}
	if err := c.Get("addresses", params, &holder); err != nil {
		return nil, err
	}
	addresses := addresses{
		paginationStats: holder.paginationStats,
	}
	// Remove one layer of nesting
	for _, addr := range holder.Addresses {
		addresses.Addresses = append(addresses.Addresses, addr.Address)
	}
	return &addresses, nil
}
func ( c Client ) GetAllAddresses ( params * AddressesParams ) ( * addresses , error ) { holder := addressesHolder { } if err := c . Get ( " " , params , & holder ) ; err != nil { return nil , err } addresses := addresses { paginationStats : holder . paginationStats , } // Remove one layer of nesting for _ , addr := range holder . Addresses { addresses . Addresses = append ( addresses . Addresses , addr . Address ) } return & addresses , nil }
// GetAllAddresses returns bitcoin addresses associated with client account
GetAllAddresses returns bitcoin addresses associated with client account