Luniverse User Guide

루니버스 사용을 환영합니다!
이 페이지에서는 루니버스 서비스 사용 가이드를 제공합니다.
루니버스를 사용하여 다양한 디앱(DApp)을 제작해보세요.

Welcome to Luniverse!
This page provides a guide to using the Luniverse service.
Try to create various DApps by utilizing Luniverse.

Get Started

Using Account Bridge

Use Account Bridge to switch an app to a DApp without changing the membership structure of the existing service.

When switching from the existing application or service to a blockchain-based DApp (Decentralized Application), developers experience inconvenience as they have to change and manage the existing membership system in order to directly manage the information about blockchain wallet addresses of the users, which cannot be managed in the existing membership system.

Luniverse Account Bridge enables them to call user’s wallet address and generate transactions on the Luniverse Side Chain without changing the existing membership system.

Applying for Luniverse Account Bridge

Currently, Luniverse Account Bridge is only available for the DApp developers using the Luniverse PKMS service of Wallet Bridge. Please note that Luniverse Account Bridge is not provided to developers using integrated external wallets.

  1. Click the “USER MGMT SERVICE” menu at the top of Luniverse Console.
  2. Click [Apply] at the bottom of the Luniverse Account Bridge page.

Before integrating Luniverse Account Bridge, make sure you click [Apply].

When you click [Apply], the Account Bridge service instantly starts. A user wallet address created before you start using Account Bridge will not be stored in Luniverse.

Creating a user wallet address

  1. Call the TX API to create a wallet address for the user. When you use curl, the API can be called as follows:
curl -X POST 'https://dev-api.luniverse.io/tx/v1.0/wallets' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer DAPP_API_KEY' \
-- data '{
   "userKey": "...",
  "walletType": "LPKMS"
}'
  1. Specify DApp’s API, user’s userKey and walletType to call the API to create a wallet address for the user. The submitted userKey will be mapped with user’s wallet address in Luniverse Account Bridge and stored safely.
    • Here, let’s use the following information about the new wallet address as an example:
DApp API Key : KcUSCE7iCZoJfud8iLdmBLdZBrRyVai4e5o6x8d9c4ZpYu2h5mwtmhEPm6285f23
userKey : aacff550-4fa7-43c5-9f31-554db722e3a5
walletType : LPKMS
  1. Call the API by using the information as described below.
curl -X POST 'https://dev-api.luniverse.io/tx/v1.0/wallets' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer KcUSCE7iCZoJfud8iLdmBLdZBrRyVai4e5o6x8d9c4ZpYu2h5mwtmhEPm6285f23' \
--data ' 
{
   "userKey": "aacff550-4fa7-43c5-9f31-554db722e3a5",
  "walletType": "LPKMS"
}' 
  1. When the request is processed successfully, the result of calling the API will be returned as follows: The “address” in the result refers to the wallet address created for the user. This address will be mapped with the userKey, which was submitted upon calling the API, and stored in Luniverse Account Bridge.
{
  "result": true,
  "data": {
    "address": "0xab9ccaBe5075273d0D422236176ffb28A15C470F"
  }
}

Using Account Bridge

  1. When calling the REST API to create a transaction, enter the userKey, which you used when creating the wallet address, in the part where you would enter the wallet address.

For example, when Alice sends one token to Bob, the information that is entered to call the API will be changed as follows:
Enter the userKey of Alice, the sender, in “From” and the userKey of Bob, the recipient, in “recieverAddress.”

curl -X POST 'https://stg-api.luniverse.io/tx/v1.0/transactions/transfer' \
--header 'Authorization: Bearer DApp_API_KEY' \
--header 'Content-Type: application/json' \
--data '{   
     "from": {
                    "userKey": "aacff550-4fa7-43c5-9f31-554db722e3a5"
                    "walletType" : "LPKMS"
               },
     "inputs": { 
               "receiverAddress": {
                    "userKey" : "bd99de9e-b8dd-4cfc-87ce-1088427749ff",
                    "walletType" : "LPKMS"
               },
               "valueAmount": "1000000000000000000" 
     }
}'
  1. When the API is called according to the information described in 1, Luniverse Transaction Service searches for the wallet address of the DApp user registered to Luniverse.
  2. Using the found wallet address, Luniverse changes the userKey of the transaction to user’s wallet address and requests the transaction.
  3. The requested transaction is signed through the PKMS service and executed. The hash of the corresponding transaction is returned to the DApp developer.

Using Account Bridge


Use Account Bridge to switch an app to a DApp without changing the membership structure of the existing service.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.