Mint tgUSD
This guide demonstrates how to use USDT to mint tgUSD
Step 1: Import modules & Initialize Engine Contract
Step 2: Request Mint Order Payload via API
HTTP Request
POST
/mint
Request Parameters
Parameter
Type
Required
Description
userAddress
String
✅ Yes
minter address
collateralAssetID
String
✅ Yes
Asset ID of the collateral (must be generated using Asset.ID
from Torch SDK)
collateralAmount
String
✅ Yes
The collateral amount needed for this minting process (ensure decimals are included)
Response Fields
Field
Type
Description
signature
String
Hex-encoded signature for on-chain verification
payload
String
Hex-encoded serialized payload
tgUSDAmount
String
The amount of tgUSD to be minted
collateralAmount
String
collateralAmount submitted by the minter
Example
The returned payload will expire after 300 seconds.
Step 3: Build Mint Payload
Last updated