The Knave of Hearts is mentioned first in chapter 8, and later in chapters 11 and 12, which deal with his trial for a tart burglary in which the King of Hearts presides as judge.
The Knave rarely speaks during the trial.