When using Sidekick, your private key is associated with a Sequence smart account. Before performing actions like minting NFTs or transferring tokens, ensure this smart account has the necessary permissions to execute these operations. Below we will illustrate the steps to prepare and mint ERC1155’s using Sidekick.Documentation Index
Fetch the complete documentation index at: https://sequence-0fb8d9e6-unreal-quickstart-with-marketplace.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
This example assumes the ERC1155 Access Control is Role Based.
Your Sidekick smart wallet should be the new
owner now if you plan to execute transactions from Sidekick. It won’t work to mint new tokens if you do not transfer ownership
to the Sidekick smart wallet or use Role Based Access Control and grant the minter role to the Sidekick smart wallet.Mint an NFT with Role Based Access Control
Complete Sidekick Setup
Make sure you have gone through the Sidekick Setup guide.
Get your Sidekick smart wallet address
Send a GET request to the
/sidekick/smart-account-address endpoint to retrieve your Sidekick smart wallet address. This address will be used to interact with your NFT contracts.If your NFT is not Role Based, instead of granting the minter role you will need to transfer ownership of the contract to the Sidekick smart wallet.