Tokenization

Set LayerZero peers

Set LayerZero peers to establish connections between adapter contracts. This endpoint creates peer relationships that enable cross-chain communication. It sets the destination adapter as a peer of the source adapter. If bidirectional is true, it also sets the source adapter as a peer of the destination adapter(s).

post/tokenization/multichain/bridge/layerzero/config/peers

Request

Headers

Idempotency-Keystring

A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.

Request body

vaultAccountIdstring required

The id of the vault account that will be used to inititate transactions ot set peers

sourceAdapterTokenLinkIdstring uuid required

token_link ID of the source adapter contract

destinationAdapterTokenLinkIdsstring[] required

Array of token_link IDs for destination adapter contracts

bidirectionalboolean required

If true, also sets peers from destination(s) back to source

Example request

{
  "vaultAccountId": "0",
  "sourceAdapterTokenLinkId": "123-432-1234-1234-123456789012",
  "destinationAdapterTokenLinkIds": [
    "123-432-1234-1234-123456789012",
    "123-432-1234-1234-123456789012"
  ],
  "bidirectional": true
}

Response

LayerZero peers set successfully

txnIdsstring[] required

Array of fireblocks transaction IDs, each corresponding to an on-chain transaction to set peers

Example response

{
  "txnIds": [
    "123-432-1234-1234-123456789012",
    "123-432-1234-1234-123456789012"
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.