A frontend talks to the blockchain through a provider.
Calling a function that changes state sends a transaction.