How to opt an application address into an asset ID

This is done in steps.

  1. create the app.
  2. run program to get app address.
  3. send algo to app address.
  4. run program to optin.
  5. send asset to address.