v1

latestOpenAPI 3.0.32026-07-2210020.3 KB
ofts

Create an OFT transfer transaction between chains

get/transfer

Query parameters

srcChainNamestring required

Source chain name where the OFT transfer originates

Example:ethereum

Source chain name where the OFT transfer originates

dstChainNamestring required

Destination chain name where the OFT will be received

Example:bera

Destination chain name where the OFT will be received

oftAddressstring required

Address of the OFT contract on the source chain

Example:0x6c96de32cea08842dcc4058c14d3aaad7fa41dee

Address of the OFT contract on the source chain

amountstring required

Amount to transfer in the smallest unit (wei/satoshi equivalent)

Example:1000000

Amount to transfer in the smallest unit (wei/satoshi equivalent)

fromstring required

Address of the sender wallet

Example:0xd8538FA8FDd5872E68c4040449F64452ae536fA6

Address of the sender wallet

tostring required

Address of the recipient wallet (EVM hex or Solana base58)

Example:0xd8538FA8FDd5872E68c4040449F64452ae536fA6

Address of the recipient wallet (EVM hex or Solana base58)

boolean
OR
string

Whether to validate balances before creating transaction

optionsstring

Structured LayerZero execution options as JSON string. EXECUTOR OPTIONS: - lzReceive: Set gas limit and optional native drop for lzReceive execution - nativeDrops: Array of native token drops to specific addresses - composeOptions: Array of compose message execution settings with gas and native drop All numeric values for gas limits and native drops should be strings or numbers. Native drop amounts are in wei (e.g., "1000000000000000" = 0.001 ETH).

Example:{"executor":{"lzReceive":{"gasLimit":300000},"nativeDrops":[{"amount":"1","receiver":"0xd8538fa8fdd5872e68c4040449f64452ae536fa6"}]}}

Structured LayerZero execution options as JSON string. EXECUTOR OPTIONS: - lzReceive: Set gas limit and optional native drop for lzReceive execution - nativeDrops: Array of native token drops to specific addresses - composeOptions: Array of compose message execution settings with gas and native drop All numeric values for gas limits and native drops should be strings or numbers. Native drop amounts are in wei (e.g., "1000000000000000" = 0.001 ETH).

composeMsgstring

Compose message for advanced OFT operations (hex encoded)

Example:0x

Compose message for advanced OFT operations (hex encoded)

oftCmdstring

OFT command for advanced operations (hex encoded)

Example:0x

OFT command for advanced operations (hex encoded)

Headers

x-layerzero-api-keystring

LayerZero API key for authentication

Example:c017d03d-5860-4b33-aeff-92e7bccb5d87

LayerZero API key for authentication

Response

Successfully created OFT transfer transaction

creatednumber required
dstChainNamestring required
dstTxErrorstring
nextInlineSincenumber
transactionTypestring
parallelizingKeystring

Example response

{
  "created": 1750332889266,
  "dstChainName": "ethereum",
  "metadata": {
    "properties": {
      "dstOftAddress": "0x3dc96399109df5ceb2c226664a086140bd0379cb",
      "dstOftType": "OFT_ADAPTER",
      "dstChainName": "bera",
      "approvalRequired": true,
      "amount": "1000000",
      "sharedDecimals": 6,
      "localDecimals": 6
    },
    "timestamps": {
      "created": 1750332889266
    }
  },
  "transactionData": {
    "populatedTransaction": {
      "data": "0xc7c7f5b30000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000007625075988a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d8538fa8fdd5872e68c4040449f64452ae536fa6000000000000000000000000000000000000000000000000000000000000769a000000000000000000000000d8538fa8fdd5872e68c4040449f64452ae536fa600000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
      "to": "0x6C96dE32CEa08842dcc4058c14d3aaAD7Fa41dee",
      "gasLimit": "500000",
      "value": "8118838073482"
    },
    "approvalTransaction": {
      "data": "0x095ea7b30000000000000000000000006c96de32cea08842dcc4058c14d3aaad7fa41dee00000000000000000000000000000000000000000000000000000000000f4240",
      "to": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
      "gasLimit": "100000"
    }
  },
  "transactionType": "OFT_SEND"
}