func (a *AccountService) GetAccountsInfo(ctx context.Context, addresses []*Address) ([]*AccountInfo, error) {
	if len(addresses) == 0 {
		return nil, ErrEmptyAddressesIds
	}
	addrs := struct {
		Messages []string `json:"addresses"`
	}{
		Messages: make([]string, len(addresses)),
	}
	for i, address := range addresses {
		addrs.Messages[i] = address.Address
	}
	dtos := accountInfoDTOs(make([]*accountInfoDTO, 0))
	resp, err := a.client.DoNewRequest(ctx, http.MethodPost, accountsRoute, addrs, &dtos)
	if err != nil {
		return nil, err
	}
	if err = handleResponseStatusCode(resp, map[int]error{404: ErrResourceNotFound, 409: ErrArgumentNotValid}); err != nil {
		return nil, err
	}
	return dtos.toStruct()
}
GetAccountsInfo return AccountsInfo for different accounts.
package sdk
import (
	"bytes"
	"context"
	"fmt"
	"github.com/proximax-storage/proximax-utils-go/net"
	"net/http"
)
type AccountService service
func (a *AccountService) GetAccountInfo(ctx context.Context, address *Address) (*AccountInfo, error) {
	if address == nil {
		return nil, ErrNilAddress
	}
	if len(address.Address) == 0 {
		return nil, ErrBlankAddress
	}
	url := net.NewUrl(fmt.Sprintf(accountRoute, address.Address))
	dto := &accountInfoDTO{}
	resp, err := a.client.DoNewRequest(ctx, http.MethodGet, url.Encode(), nil, dto)
	if err != nil {
		return nil, err
	}
	if err = handleResponseStatusCode(resp, map[int]error{404: ErrResourceNotFound, 409: ErrArgumentNotValid}); err != nil {
		return nil, err
	}
	return dto.toStruct()
}