POST /api/transaction/mint-request
Use this API to request a IDRX minting transaction in one of our supported chains.
Parameters
toBeMinted
(String):This parameter represents the amount or quantity of tokens that the user wishes to mint.
destinationWalletAddress
(String):This parameter refers to the wallet address where the newly minted tokens will be transferred. It represents the recipient's digital wallet on the blockchain network.
networkChainId
(String):This parameter identifies the blockchain network on which the minting request is being made. Each blockchain network has a unique identifier known as the chain ID, which helps in distinguishing between different networks (e.g. Polygon or BNB Smart Chain).
expiryPeriod
(Number):This parameter sets the expiry duration of the payment.
requestType
(String): This parameter is optional, you can leave it empty, or "idrx" for a idrx minting request. You can put "usdt" in this parameter to receive USDT in the destination wallet address.
Example Request
Payload
Response
If the request is successful, the response will be as shown below:
The returned amount
value will be different from the request in toBeMinted
parameter. This is the amount after fees and will be the amount that the user are going to pay.
Use the payment page in paymentUrl
to pay the amount required. Shortly after the payment is done, IDRX tokens will be minted and sent to the specified destination wallet address. In case of "usdt" requestType
, USDT tokens will be sent to the wallet address.
To check the status of the transaction, you can use the Transaction History API.
Last updated