Make sure that MESG Engine is installed and running on your computer. You can run the following command to install and start the Core:
npm install -g @mesg/cli
Download the source code of the application. You can clone this repository by using the following command:
git clone https://github.com/mesg-foundation/application-erc20-notification.git
Copy the .env.example
to .env
.
This file contains required configurations needed for the application.
You need to replace the ...
by the right value.
You need to replace email at '__YOUR_EMAIL_HERE__'
by your email.
...
- type: task
instance:
src: https://github.com/mesg-foundation/service-email-sendgrid
env:
- SENDGRID_API_KEY=$(env:SENDGRID_API_KEY)
taskKey: send
inputs:
from: '[email protected]'
to: '__YOUR_EMAIL_HERE__'
subject: 'ERC20 transfer'
text:
key: result
...
mesg-cli process:dev application.yml --env PROVIDER_ENDPOINT=$PROVIDER_ENDPOINT --env SENDGRID_API_KEY=$SENDGRID_API_KEY