📄Make Your First Contract Call (deployContract)
This guide will walk you through making your first contract call using the Mintbase JS SDK.
Mintbase offers a streamlined way to deploy your very own token smart contract equipped with all the necessary methods you might need. This can be achieved by making a call to our factory contract with the provided deployContract SDK method. For more documentation regarding how to call other methods check out the SDK documentation.
A prerequisite is to be able to have a wallet connection mechanism in your application. For that, you can check out a small guide on how to Add wallet connection to your react app.
Step 1: Get wallet instance
Step 2: Construct the contract call object
The SDK offers wrappers to make executing contract calls as easy as possible. These were specifically made to facilitate Mintbase market and token contract interaction.
In this case we are building a deployContract object with the specified fields that can be referenced here
Note: this does not call the method
Step 3: Execute the contract call
The execute method takes any number of contract call objects and executes them using a provided wallet instance.
Congratulations! Now that you have deployed your very own token contract you can interact with it by calling any of the SDK methods! Try minting a token.
Join Us and Build the Future
Have feedback or perhaps need a hand? Reach out on our Telegram public developer support channel where we are happy to help!
Building something cool? Consider applying for a grant.
Last updated