Guides
Mint USDT on Arbitrum
A step-by-step guide to mint USDT on Arbitrum using the Execution API.
Prerequisites
- Node.js and npm installed
- An Ethereum wallet with private key
- API key from Aarc
- Basic understanding of TypeScript and Ethereum
Setup
1
Environment Setup
Create a .env
file with your credentials:
2
Install Dependencies
Install the required packages:
Implementation
1
Configure Constants
Define the necessary constants for the USDT contract and destination details:
2
Generate Mint Call Data
Create a function to generate the calldata for minting USDT:
3
Implement Minting Function
Create the main function that handles the minting process:
4
Execute the Minting
Call the function with the desired amount:
Understanding the Flow
- Generate Calldata: Creates the encoded function call for minting USDT.
- Get Deposit Address: Obtains a unique deposit address from Aarc for the transaction.
- Schedule Transaction: Notifies Aarc about the upcoming transaction for faster processing.
- Execute Transaction: Sends the transaction to the blockchain.
Complete Example
For the complete implementation, including utility functions and more detailed error handling, check out our [example repository]https://github.com/aarc-xyz/execution-api-examples/blob/main/src/examples/mint-stablecoin.ts).