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 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. Request access to MPC

Signing transactions with MPC requires permission. To obtain this permission, speak to your Sky Mavis partner engineer.

Step 2. Request access to Mavis Account

Go to the Developer Console and request permission to use the Mavis Account service. This service allows you to authenticate users with their Mavis accounts.

Step 3. Implement user authentication flow

Implement the flow that enables users to sign in to the game using their Mavis Account. This flow captures the users' access tokens, which are required for authenticating with Lockbox.

For integration, see Use OAuth 2.0 for authentication.

Step 4. Deploy and register smart contracts

Deploy smart contracts that your game will interact with. Share the addresses of these contracts with your Sky Mavis partner engineer. 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 Transaction policies.

Next steps

Install and initialize the SDK