Provides a function for encoding an off-chain link from a String to a Cell.
String
Cell
To use this library, import @stdlib/content:
@stdlib/content
import "@stdlib/content";
fun createOffchainContent(link: String): Cell;
Encodes an off-chain link from a String to a Cell.
link
Source code:
fun createOffchainContent(link: String): Cell { let builder: StringBuilder = beginStringFromBuilder(beginCell().storeUint(0x01, 8)); builder.append(link); return builder.toCell();}