Skip to main content

Getting Started

Here you will find tutorials and tools that help you build on LUKSO. As LUKSO is an EVM-based Blockchain, all tools and tutorials for Ethereum also work well for LUKSO. If you need EVM and Smart Contract knowledge, we advise you to look at these great resources from the Ethereum Foundation.

Other than most EVM chains, you're encouraged on LUKSO to mainly use Universal Profiles as the account solution for dApps and as a gateway for your users to the LUKSO Blockchain. It is discouraged to use simple EOAs as accounts, as they are insecure, inflexible and don't track incoming assets. If you need a more general understanding of why we build our accounts on the smart contract level, we advise you to read about the LUKSO Ecosystem concept.


All guides in this section feature code snippets that can be seen at lukso-playground to give you a headstart. You can run the code as standalone JavaScript files within the terminal or the browser using the correlated StackBlitz page.

UP in 1-2-3

This little tutorial will show you how to deploy and interact with a Universal Profile. To maximize your learning, you can:

  • run this tutorial in the console of the profile explorer,
  • clone the up-sample-react-app repo and work in it,
  • write your own JavaScript or TypeScript code snippets on top, and
  • check the demo app for some first impressions.

The profile explorer has all necessary entities under the contracts object. Take a look at different profiles and assets you want to experiment with within your code.


We will use the @erc725/erc725.js NPM package in order to get quick access to reading keys, values and ABIs.

Generate a key that will control your Universal Profile.

Load web3
import Web3 from 'web3';

const web3 = new Web3('');

const myDummyPassword = 'mypassword';

// Here we try to load an already created key from the localstorage

// If none exists we create a new key
if (!web3.eth.accounts.wallet.length) {

// Then we log the address and send test LYX from the L16 faucet here:
console.log('My new key address ', web3.eth.accounts.wallet[0].address);

// If we already have a key created we display it, with its current balance
} else {
const myKeyAddress = web3.eth.accounts.wallet[0].address;

console.log('Loaded existing key address ', myKeyAddress);
'Balance ',
web3.utils.fromWei(await web3.eth.getBalance(myKeyAddress), 'ether'),

// Stop here if our key is yet created and funded
if (!myKeyAddress) return;

Fund the Universal Profile by using the L16 Faucet.

Deploy your UP smart contracts using @lukso/lsp-factory.js.

Deploy and configure contracts with lsp-factory.js
import { LSPFactory } from '@lukso/lsp-factory.js';

// We initialize the LSPFactory with the right chain RPC endpoint and a private key from which we will deploy the UPs
const lspFactory = new LSPFactory('', {
chainId: 2828, // L16s chain Id
deployKey: web3.eth.accounts.wallet[0].privateKey,

const deployedContracts = await lspFactory.LSP3UniversalProfile.deploy({
controllerAddresses: [myKeyAddress], // our key will be controlling our UP in the beginning
lsp3Profile: {
name: 'My Universal Profile',
description: 'My Cool Universal Profile',
profileImage: [fileBlob], // got some Image uploaded?
backgroundImage: [],
tags: ['Public Profile'],
links: [
title: 'My Website',
url: '',

// Get the UP address
const myUPAddress = deployedContracts.ERC725Account.address;
// 0xB46BBD556589565730C06bB4B7454B1596c9E70A

Read the UP smart contract ERC725Y data keys and values with @erc725/erc725.js.

Read Universal Profile ERC725 keys/values with erc725.js
import { ERC725 } from '@erc725/erc725.js';

// Part of LSP3-UniversalProfile Schema
const schema = [
name: 'SupportedStandards:LSP3UniversalProfile',
key: '0xeafec4d89fa9619884b6b89135626455000000000000000000000000abe425d6',
keyType: 'Mapping',
valueContent: '0xabe425d6',
valueType: 'bytes',
name: 'LSP3Profile',
key: '0x5ef83ad9559033e6e941db7d7c495acdce616347d28e90c7ce47cbfcfcad3bc5',
keyType: 'Singleton',
valueContent: 'JSONURL',
valueType: 'bytes',
name: 'LSP1UniversalReceiverDelegate',
key: '0x0cfc51aec37c55a4d0b1a65c6255c4bf2fbdf6277f3cc0730c45b828b6db8b47',
keyType: 'Singleton',
valueContent: 'Address',
valueType: 'address',

const provider = new Web3.providers.HttpProvider(

const erc725 = new ERC725(schema, myUPAddress, provider);
const config = {
ipfsGateway: '',

const data = await erc725.fetchData();

"SupportedStandards:LSP3UniversalProfile": "0xabe425d6",
"LSP3Profile": {
"LSP3Profile": {
"name": "My Universal Profile",
"description": "My Cool Universal Profile",
"backgroundImage": [],
"tags": ["Public Profile"],
"links": [
"title": "My Website",
"url": ""
"LSP1UniversalReceiverDelegate": "0x9A668677384CD4F5c49Cb057f0cEB2b783Ed670F"

Interact directly with any smart contract through your UP, by loading the ABIs from @lukso/lsp-smart-contracts.

Interact directly through your UP
import UniversalProfile from '@lukso/lsp-smart-contracts/artifacts/UniversalProfile.json';
import KeyManager from '@lukso/lsp-smart-contracts/artifacts/LSP6KeyManager.json';

const myUP = new web3.eth.Contract(UniversalProfile.abi, erc725Address);

const keyManagerAddress = await myUP.methods.owner().call();

// e.g. 0x72662E4da74278430123cE51405c1e7A1B87C294

const myKeyManager = new web3.eth.Contract(KeyManager.abi, keyManagerAddress);

// Set data on your own UP, though the key manager
const abi = myUP.methods
['0x5ef83ad9559033e6e941db7d7c495acdce616347d28e90c7ce47cbfcfcad3bc5'], // LSP3Profile
], // encoded JSONURL:

// send your tx to the blockchain, from the controlling key address, through the key manager
await myKeyManager.methods.execute(abi).send({
from: web3.eth.accounts.wallet[0].address,
gas: 200_000,
gasPrice: web3.utils.toWei('20', 'gwei'),

// OR interact with another contract
let myOtherSC = new web3.eth.Contract(MyOtherSC.abi, myOtherSCAddress);

// get the ABI of the call on the other contract
let abi = myOtherSC.methods.myCoolfunction('dummyParameter').encodeABI();

// call the execute function on your UP (operation = 0 = CALL, to, value, calldata)
abi = myUP.methods.execute(0, myOtherSCAddress, 0, abi).encodeABI();

// send your tx to the blockchain, from the controlling key address, through the key manager
from: web3.eth.accounts.wallet[0].address,
gas: 200_000,
gasPrice: web3.utils.toWei(20, 'gwei'),