Skip to content

Code snippets to interact with Universal Profiles and other LSP standards

Notifications You must be signed in to change notification settings

CJ42/lukso-playground

 
 

Repository files navigation

🤹 LUKSO Playground

Convenient code snippets to interact with LSP standards on LUKSO. Code examples are taken from the LUKSO Tech Docs and are working as standalone scripts.

Contents

📑 Smart contracts

LUKSO Libraries

Please check the versions used in the package.json

Development

A lot of these scripts should run with ts-node in development environnements, but you might be encountering issues because of ESM dependencies.

This repository uses the bun toolkit to manage packages and run scripts.Make sure to install it first.

Then clone this repository and install its dependencies.

git clone https://github.com/lukso-network/lukso-playground.git

cd lukso-playground && bun install

Run locally

Run the TypeScript code of one file within the terminal using bun.

bun file-path/script.ts

IPFS Server

We highly recommend that developers fetch and store profile or asset data using their own IPFS gateway solutions like Pinata or Infura. For development purposes, this repository uses the following RPC to fetch mainnet and testnet data:

  • IPFS Gateway: https://api.universalprofile.cloud/ipfs

LUKSO does not provide an official gateway for uploading asset data.

About

Code snippets to interact with Universal Profiles and other LSP standards

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 78.7%
  • Solidity 21.3%