Prerequisites
Ensure you have the following:- An Aarc API key from the developer dashboard
- Basic understanding of blockchain transactions and NFT smart contracts
- The NFT contract address and ABI of the collection you want to mint from
Setup
- Create a new project directory and initialize it:
- Install required dependencies:
- Create a
.envfile with your Aarc API key:
- Create an
index.jsfile for your implementation:
Implementation Steps
1
Setup Environment
First, set up your development environment with the necessary configurations:
2
Generate Mint Call Data
Before getting the deposit address, generate the calldata for the NFT mint:
The deposit address generated will be active only for 30 minutes.
3
Get Deposit Address
Get a deposit address with the NFT minting details:
4
Handle User Deposit and Monitor Mint
After getting the deposit address, handle the user deposit and monitor the minting process:
Error Handling
Handle NFT-specific errors in addition to standard bridge errors:For additional support or questions, refer to our support documentation.
