Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

CardanoTx

Create a bridging transaction

post

Builds a bridging transaction with all required fees and metadata. The transaction must be signed and submitted separately.

Authorizations
X-API-KeystringRequired
Body
bridgingFeeintegerOptional

Fee covering the submission of the transaction on the destination chain, expressed in Lovelace

destinationChainIdstringRequired

Destination chain ID

operationFeeintegerOptional

Fee covering the operational cost of processing the bridging request, expressed in Lovelace

senderAddrstringRequired

Address that initiates the bridging request on the source chain

sourceChainIdstringRequired

Source chain ID

useFallbackbooleanOptional

Indicates if fallback mechanism should be used

utxoCacheKeystringOptional

Key used to enable caching of spent UTXOs

Responses
200

OK - Returns the raw transaction data, transaction hash, and calculated bridging fee and amounts.

application/json
amountintegerOptional

Amount of currency to be bridged, expressed in Lovelace

bridgingFeeintegerOptional

Bridging fee for covering submission on the destination chain, expressed in Lovelace

nativeTokenAmountintegerOptional

Amount of native token to be bridged

txHashstringOptional

Transaction hash

txRawstringOptional

Raw transaction data, encoded as a hexadecimal string

post/CardanoTx/CreateBridgingTx
POST /api/CardanoTx/CreateBridgingTx HTTP/1.1
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 251

{
  "bridgingFee": 1,
  "destinationChainId": "text",
  "operationFee": 1,
  "senderAddr": "text",
  "skipUtxos": [
    {
      "hash": "text",
      "index": 1
    }
  ],
  "sourceChainId": "text",
  "transactions": [
    {
      "addr": "text",
      "amount": 1,
      "isNativeToken": true
    }
  ],
  "useFallback": true,
  "utxoCacheKey": "text"
}
{
  "amount": 1,
  "bridgingFee": 1,
  "nativeTokenAmount": 1,
  "txHash": "text",
  "txRaw": "text"
}

Get fees required for a bridging transaction

post

Returns the transaction and bridging fees that the sender must pay on the source chain. The bridging fee covers the cost for the fee payer to submit the transaction on the destination chain.

Authorizations
X-API-KeystringRequired
Body
bridgingFeeintegerOptional

Fee covering the submission of the transaction on the destination chain, expressed in Lovelace

destinationChainIdstringRequired

Destination chain ID

operationFeeintegerOptional

Fee covering the operational cost of processing the bridging request, expressed in Lovelace

senderAddrstringRequired

Address that initiates the bridging request on the source chain

sourceChainIdstringRequired

Source chain ID

useFallbackbooleanOptional

Indicates if fallback mechanism should be used

utxoCacheKeystringOptional

Key used to enable caching of spent UTXOs

Responses
200

OK - Returns calculated fees.

application/json
bridgingFeeintegerOptional

Bridging fee for covering submission on the destination chain, expressed in Lovelace

feeintegerOptional

Transaction fee on the source chain, expressed in Lovelace

post/CardanoTx/GetBridgingTx
POST /api/CardanoTx/GetBridgingTx HTTP/1.1
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 251

{
  "bridgingFee": 1,
  "destinationChainId": "text",
  "operationFee": 1,
  "senderAddr": "text",
  "skipUtxos": [
    {
      "hash": "text",
      "index": 1
    }
  ],
  "sourceChainId": "text",
  "transactions": [
    {
      "addr": "text",
      "amount": 1,
      "isNativeToken": true
    }
  ],
  "useFallback": true,
  "utxoCacheKey": "text"
}
{
  "bridgingFee": 1,
  "fee": 1
}

Get bridge settings

get

Returns the participating chains with their specific settings, global bridge configuration (such as minimum and maximum allowed bridging amounts), and, for each source chain, the native token that will be received on the destination chain.

Authorizations
X-API-KeystringRequired
Responses
200

OK - Returns the configuration settings.

application/json
enabledChainsstring[]Optional

Participating chains in the bridge

runModestring · enumOptionalPossible values:
get/CardanoTx/GetSettings
GET /api/CardanoTx/GetSettings HTTP/1.1
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "bridgingSettings": {
    "maxAmountAllowedToBridge": "text",
    "maxReceiversPerBridgingRequest": 1,
    "maxTokenAmountAllowedToBridge": "text",
    "minChainFeeForBridging": {
      "ANY_ADDITIONAL_PROPERTY": 1
    },
    "minOperationFee": {
      "ANY_ADDITIONAL_PROPERTY": 1
    },
    "minUtxoChainValue": {
      "ANY_ADDITIONAL_PROPERTY": 1
    },
    "minValueToBridge": 1
  },
  "cardanoChainsNativeTokens": {
    "ANY_ADDITIONAL_PROPERTY": [
      {
        "dstChainID": "text",
        "tokenName": "text"
      }
    ]
  },
  "enabledChains": [
    "text"
  ],
  "runMode": "reactor"
}

Last updated

Was this helpful?