April 25, 2023

Context (matters)

Tutorial #1: Quick intro to Mentaport SDK

Tutorial #1: Quick intro to Mentaport SDK

(3 min read)

To help jump-start your creative process and streamline your integration with our powerful platform, we're excited to announce the release of our first tutorial! This step-by-step guide will walk you through all the necessary steps to get started with both Mentaport’s Core and Supplement SDKs.

Our goal is to make the integration process as seamless and enjoyable as possible, so you can focus on what you do best building your product and fostering your community. 

So what are you waiting for? Let's get started!

SDK documentation at docs.mentaport.xyz

In this tutorial you will learn what functions are currently available in Mentaport SDKs and how to call them. 

Video Tutorial: https://www.youtube.com/watch?v=FVXU2VUwo6s

GitHub Code: https://github.com/mentaport/sdk-web-tutorials

Documentation: https://docs.mentaport.xyz

Mentaport Core SDK

At Mentaport, we believe that seeing is believing. That's why we've created a Next.js application to showcase the power and simplicity of our Core SDK. With just the click of a button, you can interact with all of our SDK's functions and see firsthand how they work. 

Our UI is designed to be intuitive and user-friendly, making it easy for you to experiment and test out different features. And if you're a developer who loves to dive deep into the code, you'll be pleased to know that our application includes examples of how just one line of code can execute each function.

The code sample shows how the Mentaport SDK is initialized on both the client and server sides with our provider and our server routes: 

  • SDK Provider: @lib/mentaport 
  • SDK router : @pages/api/mentaport

The rest of the code inside @components/ui shows how the SDK functions are called.

Supplement SDK

The cmd application runs our supplement SDK. Main functionalities:

  1. Create a contract
  2. Add and update rules
  3. Activate/pause contracts
  4. Extract mint lists 

Recap

To launch your first location-aware smart contract follow these steps:

  1. Sign Up for beta to get your API key
  2. Clone the GitHub tutorial repo 
  3. Create your contract rules
  4. Deploy
  5. Share your project with your community. And remember to tweet @MentaportInc for us to amplify your project launch!

Don't forget to check out the documentation for a more detailed explanation.

Looking forward to seeing what you build!

Mariale

--

Mentaport Inc | Co-Founder & CTO

We are in Private Beta
Sign up for early access
We are in Private Beta
Sign up for early access
We are in Private Beta
Sign up for early access
We are in Private Beta
Sign up for early access
We are in Private Beta
Sign up for early access
We are in Private Beta
Sign up for early access