You can find your bank account details — including your transit number, institution (bank) number and account number — by logging into your online banking portal and downloading a direct deposit form or by getting a printout of this form from your local bank branch.
If you have cheques, you can also find your bank account details at the bottom. There, you'll find several strings of numbers starting with a 3-digit cheque number followed by a 3-digit cheque number, 5-digit transit number, 3-digit institution (bank) number and a 7- to 12-digit account number.