Skip to main content

Get started

Overview

This page outlines the initial steps for integrating your game with the MPC Solution:

  • Request permission to use the MPC service.
  • Request permission to use the Mavis Account service.
  • Register the addresses of the smart contracts that your client needs to interact with. Interactions with non-registered smart contracts are automatically rejected by the system.
  • Implement the flow that enables users to sign in to the game using their Mavis accounts, so that you can capture the users' access tokens.

Prerequisites

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

Steps

Step 1. Request access to MPC

Making requests to the MPC service requires permission. To obtain this permission, speak to your Sky Mavis partner engineer.

Step 2. Request access to Mavis Account

Authenticating users with Mavis Account requires permission, which you can request in the Developer Console. For more information, see Mavis Account documentation.

Step 3. Register your smart contracts

Before integrating with MPC Solution, you must register the addresses of the smart contracts with which your app or game needs to interact. The system automatically rejects calls to non-registered smart contracts.

To register your smart contracts, contact devsupport@skymavis.com.

For more information, see Transaction policies.

Step 4. Implement authentication with Mavis Account

To create MPC wallets and send transactions, your client needs to make API requests on user's behalf. This in turn requires that you capture the user's access token. This access token is returned by the Mavis Account service after the user signs in to your client with their Mavis account.

To implement authentication with Mavis Account, see Use OAuth 2.0 for authentication.

Next steps

Install and initialize the SDK

Was this page helpful?
Happy React is loading...