Here's a quick reference on how you can earn XP for Legends of Runeterra, the new collectible card video game from Riot Games, the makers of League of Legends.
The main way to gain XP is through playing games against another player or the AI. There is currently no limit to the XP gain from winning or losing games versus the AI or against other players (except for Friend Challenges--see below).