Page cover image

POST /api/transaction/bridge-request

Use this API to request a IDRX bridge transaction.

Check this page to see the list of chains where IDRX is available

Parameters

  1. txHashBurn (String):

    This parameter represents the unique transaction hash or identifier associated with the burning (redeeming) of IDRX tokens.

  2. bridgeToChainId (Number):

    This parameter identifies the target blockchain network where the stable tokens are being bridged.

  3. bridgeFromChainId (Number):

    This parameter indicates the source blockchain network from which the stable tokens are being bridged.

  4. amount (String):

    This parameter specifies the quantity or value of stable tokens being bridged.

  5. 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.

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"
}

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