---
title: "Set LayerZero peers"
method: POST
path: "/tokenization/multichain/bridge/layerzero/config/peers"
tags: ["Tokenization"]
---

# Set LayerZero peers

`POST /tokenization/multichain/bridge/layerzero/config/peers`

## Request

- Base URL: `https://api.fireblocks.io/v1`
- URL: `https://api.fireblocks.io/v1/tokenization/multichain/bridge/layerzero/config/peers`
- Auth: none declared
- TypeScript: <https://skmtc.dev/fireblocks/apis/fireblocks-api/docs/tokenization/multichain/bridge/layerzero/config/peers/post.ts> (a function with typed inputs; its response is checked against the schema)

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

## Headers

- `Idempotency-Key` string

## Request body

- SetLayerZeroPeersRequest
  - `vaultAccountId` string, required: The id of the vault account that will be used to inititate transactions ot set peers
  - `sourceAdapterTokenLinkId` string, uuid, required: `token_link` ID of the source adapter contract
  - `destinationAdapterTokenLinkIds` string[], required: Array of `token_link` IDs for destination adapter contracts
  - `bidirectional` boolean, required: If true, also sets peers from destination(s) back to source

## Response `200`

LayerZero peers set successfully

- SetLayerZeroPeersResponse
  - `txnIds` string[], required: Array of fireblocks transaction IDs, each corresponding to an on-chain transaction to set peers

## Other responses

- `400`: Bad request, invalid input data or parameters
- `404`: Token link not found
- `409`: Token link preparation error
- `422`: Token link is not fungible
- `500`: Internal server error

---

[API](https://skmtc.dev/fireblocks/apis/fireblocks-api.md) - [All operations](https://skmtc.dev/fireblocks/apis/fireblocks-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fireblocks/apis/fireblocks-api/revisions/4eba9965659a?raw)
