POST /api/transaction/bridge-request
Use this API to request a IDRX bridge transaction.
Parameters
txHashBurn(String):This parameter represents the unique transaction hash or identifier associated with the burning (redeeming) of IDRX tokens.
bridgeToChainId(Number):This parameter identifies the target blockchain network where the stable tokens are being bridged.
bridgeFromChainId(Number):This parameter indicates the source blockchain network from which the stable tokens are being bridged.
amount(String):This parameter specifies the quantity or value of stable tokens being bridged.
bridgeNonce(String):This parameter is a unique identifier received from the burning transaction event. It acts as a nonce, ensuring the uniqueness of the bridging transaction.
destinationWalletAddress(String):This wallet address that will receive the bridged amount.
Example Request
curl -X POST '<https://idrx.co/api/transaction/mint-bridge-request>' --header 'idrx-api-key: <API_KEY>' --header 'idrx-api-sig: <signature>' --header 'idrx-api-ts': <timestamp>'Payload
{
  "txHashBurn": "string",
  "bridgeToChainId": 0,
  "bridgeFromChainId": 0,
  "amount": "string",
  "bridgeNonce": "string",
  "destinationWalletAddress": "string"
}Response
If the request is successful, the response will be as shown below:
{
  "statusCode": 201,
  "message": "success",
  "data": {
    "id": 3,
    "userId": 1,
    "bridgeFromChainId": 80001,
    "bridgeToChainId": 97,
    "txHashBurn": "0x38ef6a20db393505fbae51f5f9ec9197013cee21bccafabf8ef37261aa2039d9",
    "txHashMint": null,
    "qredoTxId": null,
    "signedTx": null,
    "bridgeNonce": "0",
    "amount": "100000",
    "bridgeStatus": "REQUESTED",
    "deleted": false
  }
}To check the status of your transaction, you can use the Transaction History API.
Last updated
