Although many people thought E pluribus unum was the motto, there was no official US national motto before 1956.
“In God We Trust” had been on coins since the 1800s, but it was not officially the motto of the United States of America until the congressional act designating it so in 1956. Coincidentally, it is also the official motto of Nicaragua.