func (k Keeper) GetDTagTransferRequests(ctx sdk.Context) (requests []types.DTagTransferRequest) {
	store := ctx.KVStore(k.storeKey)
	iterator := sdk.KVStorePrefixIterator(store, types.DTagTransferRequestPrefix)
	defer iterator.Close()
	for ; iterator.Valid(); iterator.Next() {
		request := types.MustUnmarshalDTagTransferRequest(k.cdc, iterator.Value())
		requests = append(requests, request)
	}
	return requests
}
GetDTagTransferRequests returns all the requests inside the given context
package keeper
import (
	sdk "github.com/cosmos/cosmos-sdk/types"
	sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
	"github.com/desmos-labs/desmos/v2/x/profiles/types"
)
func (k Keeper) SaveDTagTransferRequest(ctx sdk.Context, request types.DTagTransferRequest) error {
	if !k.HasProfile(ctx, request.Receiver) {
		return sdkerrors.Wrap(types.ErrProfileNotFound, "request receiver does not have a profile")
	}
	store := ctx.KVStore(k.storeKey)
	key := types.DTagTransferRequestStoreKey(request.Sender, request.Receiver)
	if store.Has(key) {
		return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest,
			"the transfer request from %s to %s has already been created",
			request.Sender, request.Receiver)
	}
	store.Set(key, k.cdc.MustMarshal(&request))
	k.Logger(ctx).Info("DTag transfer request", "sender", request.Sender, "receiver", request.Receiver)
	return nil
}
func (k Keeper) GetDTagTransferRequest(ctx sdk.Context, sender, receiver string) (types.DTagTransferRequest, bool, error) {
	store := ctx.KVStore(k.storeKey)
	key := types.DTagTransferRequestStoreKey(sender, receiver)
	if !store.Has(key) {
		return types.DTagTransferRequest{}, false, nil
	}
	var request types.DTagTransferRequest
	err := k.cdc.Unmarshal(store.Get(key), &request)
	if err != nil {
		return types.DTagTransferRequest{}, false, err
	}
	return request, true, nil
}