$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Pancake Swap with LINE Chatbot
Search
LINE Developers Thailand
October 16, 2021
Technology
0
240
Pancake Swap with LINE Chatbot
LINE Developers Thailand
October 16, 2021
Tweet
Share
More Decks by LINE Developers Thailand
See All by LINE Developers Thailand
Welcome & Tech Vision Keynote
linedevth
0
110
Building the Future: LINE API Updates in 2024
linedevth
0
86
Revolutionizing Telepharmacy with The POWER of Gen AI and LINE API
linedevth
0
110
Seamless Inventory Management with ChatGPT and LINE SHOPPING API
linedevth
0
57
The Future of LINE Retail Chatbot using Gemini AI
linedevth
0
130
Domain Data Platform for Scalable Data Management
linedevth
0
53
Building a Fortune Teller App with OpenAI From Chatbot to Voice Assistant
linedevth
0
51
B.A.A.S - BeTask AI and Automation for SMEs
linedevth
0
47
Boosting Development Quality through Continuous Documentation Integration
linedevth
0
65
Other Decks in Technology
See All in Technology
2024年のAmazon Bedrockアップデート一挙おさらい 〜まだ間に合う! re:Invent直前までの重大ニュースを速習しよう〜
minorun365
PRO
3
160
RDRAとLLM
kanzaki
4
490
MediaPipe と ML Kit ってどう ちがうの? / What is the difference between MediaPipe and ML Kit?
yanzm
0
220
ご挨拶
iotcomjpadmin
0
290
AWS re:Invent 2024 予選落ちのBedrockアプデをまとめて解説!
minorun365
PRO
2
230
データ共有による新しい価値の創造
iotcomjpadmin
0
300
もう一度、 事業を支えるシステムに。
leveragestech
6
3k
4年で17倍に成長したエンジニア組織を支えるアーキテクチャの過去と未来
sansantech
PRO
1
4.8k
データ基盤の負債解消のためのリプレイス
livesense
PRO
0
130
241130紅白ぺぱ合戦LT「編集の技術」
toya524287
5
570
Bytebaseで実現する データベース管理の効率化
shogo452
1
290
Amazon ECSとCloud Runの相互理解で広げるクラウドネイティブの景色 / Mutually understanding Amazon ECS and Cloud Run
iselegant
18
2.3k
Featured
See All Featured
YesSQL, Process and Tooling at Scale
rocio
169
14k
Statistics for Hackers
jakevdp
796
220k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.3k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
Rails Girls Zürich Keynote
gr2m
94
13k
Speed Design
sergeychernyshev
25
640
Making the Leap to Tech Lead
cromwellryan
133
8.9k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
For a Future-Friendly Web
brad_frost
175
9.4k
Art, The Web, and Tiny UX
lynnandtonic
297
20k
Making Projects Easy
brettharned
115
5.9k
Transcript
None
PANCAKE SWAP WITH LINE CHATBOT
• DeFi, Yield Farming & PancakeSwap • Smart Contract Query
• Designing Flex Message • Rich Menu Switch Action AGENDA
What is DeFi? Decentralized finance is a system by which
financial products become available on a public decentralized blockchain network.
What is Blockchain?
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
What is PancakeSwap?
The Problem 😢 😭 😱 Most DeFi live on web
Hard to check portfolio on mobile device on native app
Let’s Build Your Own DeFi Tracker
SMART CONTRACT QUERY PART 1
What is Smart Contract?
What is MasterChef?
Connecting to Smart Contract with Web3 JSON RPC Views, Submit
Transaction RPC Node Blockchain Client
Writing the Query Using Web3 https://medium.com/linedevth/eed4951679f3
DESIGNING FLEX MESSAGE PART 2
Designing Flex Message
Using function to represent Flex content
Using function to represent Flex content
Using function to represent Flex content
Voila!
Some Improvement? 🤔 I still need to remember my wallet
address What if I have multiple wallet address? Any easy way to store them.
RICH MENU SWITCH ACTION PART 3
What Is Rich Menu Switch Action?
1. Do an action 2. Webhook event Bot application 3.
Request Rich menu 4. Set Rich menu LINE server Client Richmenu Switching With Webhook
Richmenu Switch Action 1. Richmenu Switch Action 2. Set
Rich Menu LINE server Client
Richmenu with Wallet Address richmenu-alias-wallet1 richmenu-alias-wallet2
Richmenu with Wallet Address Message Action: 0x1234...5678 richmenu-alias-wallet1 richmenu-alias-wallet2
Richmenu with Wallet Address Richmenu Switch Action: richmenu-alias-wallet2 richmenu-alias-wallet1 richmenu-alias-wallet2
Richmenu with Wallet Address Richmenu Switch Action: richmenu-alias-wallet1 richmenu-alias-wallet1 richmenu-alias-wallet2
Richmenu with Wallet Address
Create Richmenu and set Image
Create Richmenu and set Image
Richmenu with Wallet Address
No need to remember address now!
medium.com/linedevth
THANK YOU!