Send a Message from Space with MESG!

hackathon

#1

Screenshot%20from%202019-02-17%2022-49-14

Once you submit payment, a webhook is sent to the MESG app and is stored temporarily. When the payment is confirmed on Ethereum, the erc20 services alerts the MESG app and then will send the unsent message to the satellite service. Once the satellite service responds with an invoice to be paid, we forward that to our lightning service which is using opennode.co’s api.

Architecture

This app is broken up into 4 services, 1 MESG application, 1 front end react app.

  • ERC20 service - Standard MESG service that just tracks transfers for the MESG ERC20 Contract.

  • Webhook service - Standard webhook service we use to send the message from the front end to the MESG app. If we could embed the message in the ERC20 transaction that would of been better.

  • Satellite service - Wrapper for the [blockstream satellite api](https:// blockstream .com/)

  • Lightning service - Wrapper for Opennode’s [lightning api](https:// opennode .co), a custodial service that allows you to send and receive bitcoin and lightning network transactions.

  • React front end to interact with web3 and metamask

  • One small MESG app