Save 37% off PRO during our Black Friday Sale! »

Pancake Swap with LINE Chatbot

Pancake Swap with LINE Chatbot

B29f42636a5f1249b640473d49aa4514?s=128

LINE Developers Thailand

October 16, 2021
Tweet

Transcript

  1. None
  2. PANCAKE SWAP WITH LINE CHATBOT

  3. • DeFi, Yield Farming & PancakeSwap • Smart Contract Query

    • Designing Flex Message • Rich Menu Switch Action AGENDA
  4. What is DeFi? Decentralized finance is a system by which

    financial products become available on a public decentralized blockchain network.
  5. What is Blockchain?

  6. What is Yield Farming? The practice of staking or lending

    crypto assets in order to generate high returns or rewards in the form of additional cryptocurrency (CoinMarketCap
  7. What is PancakeSwap?

  8. The Problem 😢 😭 😱 Most DeFi live on web

    Hard to check portfolio on mobile device on native app
  9. Let’s Build Your Own DeFi Tracker

  10. SMART CONTRACT QUERY PART 1

  11. What is Smart Contract?

  12. What is MasterChef?

  13. Connecting to Smart Contract with Web3 JSON RPC Views, Submit

    Transaction RPC Node Blockchain Client
  14. Writing the Query Using Web3 https://medium.com/linedevth/eed4951679f3

  15. DESIGNING FLEX MESSAGE PART 2

  16. Designing Flex Message

  17. Using function to represent Flex content

  18. Using function to represent Flex content

  19. Using function to represent Flex content

  20. Voila!

  21. Some Improvement? 🤔 I still need to remember my wallet

    address What if I have multiple wallet address? Any easy way to store them.
  22. RICH MENU SWITCH ACTION PART 3

  23. What Is Rich Menu Switch Action?

  24. 1. Do an action 2. Webhook event Bot application 3.

    Request Rich menu 4. Set Rich menu LINE server Client Richmenu Switching With Webhook
  25. Richmenu Switch Action 1. Richmenu 
 Switch Action 2. Set

    Rich Menu LINE server Client
  26. Richmenu with Wallet Address richmenu-alias-wallet1 richmenu-alias-wallet2

  27. Richmenu with Wallet Address Message Action: 0x1234...5678 richmenu-alias-wallet1 richmenu-alias-wallet2

  28. Richmenu with Wallet Address Richmenu Switch Action: richmenu-alias-wallet2 richmenu-alias-wallet1 richmenu-alias-wallet2

  29. Richmenu with Wallet Address Richmenu Switch Action: richmenu-alias-wallet1 richmenu-alias-wallet1 richmenu-alias-wallet2

  30. Richmenu with Wallet Address

  31. Create Richmenu and set Image

  32. Create Richmenu and set Image

  33. Richmenu with Wallet Address

  34. No need to remember address now!

  35. medium.com/linedevth

  36. THANK YOU!