Description
This pen shows how to pass a trustline opening request from a simple HTML button. It uses the CosmicLink protocol.
Link: https://codepen.io/cosmic-plus/pen/QWLQLBG?editors=1000#0
Hint: use "Change View" to pick a layout that fits your screen.
Concepts
- Trustline: A declaration that you accept to hold a given asset.
- CosmicLink: A protocol to encode Stellar transactions into URIs.
About
Pens of the Week are code snippets that show how to implement a Stellar-related feature in JavaScript.
The end-goal is to provide a wide collection of examples that support developers in coding their applications; And to trigger community discussions around the showcased features.
Popular pens | Follow on Twitter | Read more...