Skip to main content

Get started

Overview

This page lists the initial steps for integrating your game with Lockbox. To get started, you need to request access to the MPC service and the Sky Mavis Account service. Once you have access, you can implement the user authentication flow and deploy smart contracts that your game will interact with.

Prerequisites

Create an app in the Developer Console. For more information, see Create an app.

Steps

Step 1. Sign up for a Sky Mavis Account

Your first step is to sign up for a Sky Mavis Account as a developer:

  1. Go to the Developer Console.
  2. Create an account using an email and password or social login.
  3. Optionally, complete a short survey.

Your Sky Mavis Account is ready to use.

Step 2. Create an app

Next, create an app in the Developer Console to get your client ID and API key:

  1. In the Developer Console, click Create application.
  2. Enter your app's name, then click Create.
  3. Select the app you created, then click Edit, and then fill in the app details, including the app description, website, and logo.
  4. Click Save.

Step 3. Request access to MPC service

Signing transactions with MPC requires permission. To obtain this permission, speak to your Sky Mavis point of contact.

Step 4. Implement user authentication with Sky Mavis Account

  1. In the Developer Console, select your app, then App Permission > Sky Mavis Account (OAuth 2.0) > Request Access. When your request is approved, you see OAuth 2.0 under Products.
  2. With access to the Sky Mavis Account service, configure your OAuth 2.0 settings. For more information, see Configure OAuth 2.0 settings.
  3. Implement the user authentication flow with Sky Mavis Account. This flow lets you capture the users' access tokens, which are required for authenticating with Lockbox.

Step 5. Deploy and register smart contracts

Deploy smart contracts that your game will interact with. Share the addresses of these contracts with your Sky Mavis point of contact. This will allow the system to recognize and accept transactions to these contracts.

caution

Calls to non-registered smart contracts are automatically rejected by the system.

For more information, see About transaction policies.

Next steps

Install and initialize the SDK